The Class WSExpiryPolicy.
| name | data type | type | namespace | min/max occurs | description |
|---|---|---|---|---|---|
| expiryExtension | ExpiryExtension | element | 0/1 | Expiry extension : if this is set to null, then expiry extension is not enabled. | |
| expiryGroup | ManagedObjectReference | element | 0/1 | Gets the expiry group. | |
| expiryNotifications | ExpiryNotifications | element | 0/1 | Expiry notifications : if this is set to nul, then there is no notification. | |
| intervalActions | list of IntervalAndPolicyAction | element | 0/unbounded | Gets the interval actions. | |
| postExpiryLength | int | element | 1/1 | Days after the expiry date to take action. If not specify, the default of 30 will be used. | |
| preExpiryLength | int | element | 1/1 | Days before the expiry date to take action. If not specify, the default of 7 will be used. | |
Properties inherited from Policy |
|||||
| description | string | element | 0/1 | Gets the description. | |
| enabled | string | element | 0/1 | Checks if is enabled. | |
| global | string | element | 0/1 | Checks if is global. | |
| name | string | element | 0/1 | Gets the name. | |
| policyType | PolicyType | element | 0/1 | Gets the policy type. | |
| targets | list of ManagedObjectReference | element | 0/unbounded | Gets the targets. | |
Properties inherited from ManagedObjectReference |
|||||
| displayName | string | element | 0/1 | Gets the display name. | |
| id | long | element | 1/1 | The unique id of the managed object this refers to. | |
| type | ManagedObjectType | element | 0/1 | The type of managed object this refers to. | |
Properties inherited from supportTemplating |
|||||
| xsitype | string | attribute | 0/1 | ||
Example
<ExpiryPolicy>
<expiryGroup xsitype="...">
<displayName>...</displayName>
<type>...</type>
<id>...</id>
</expiryGroup>
<preExpiryLength>...</preExpiryLength>
<postExpiryLength>...</postExpiryLength>
<intervalActions xsitype="...">
<interval>...</interval>
<action>
<type>...</type>
</action>
</intervalActions>
<expiryNotifications xsitype="...">
<alertViaSNMP>...</alertViaSNMP>
<emailAllOwners>...</emailAllOwners>
<emailPrimaryOwner>...</emailPrimaryOwner>
<emailITContact>...</emailITContact>
<emailSubject>...</emailSubject>
<emailBody>...</emailBody>
</expiryNotifications>
<expiryExtension xsitype="...">
<extensionDays>...</extensionDays>
<vmStateToUnapproved>...</vmStateToUnapproved>
<expiryExtensionLimit>...</expiryExtensionLimit>
</expiryExtension>
<enabled>...</enabled>
<name>...</name>
<description>...</description>
<policyType>...</policyType>
<targets>
<displayName>...</displayName>
<type>...</type>
<id>...</id>
</targets>
<global>...</global>
</ExpiryPolicy>