Default attributes policy.
name | data type | type | namespace | min/max occurs | description |
---|---|---|---|---|---|
action | PolicyAction | element | 0/1 | Gets the action. | |
allowsOverride | string | element | 0/1 | Checks if is allows override. | |
daysToExpire | int | element | 1/1 | Number of days after VM is added to inventory to expire. If value set is less than 1, then VM is set to never expires. The default is 30. | |
expiryGroup | ManagedObjectReference | element | 0/1 | Gets the expiry group. | |
maintenanceGroup | ManagedObjectReference | element | 0/1 | Gets the maintenance group. | |
powerScheduleGroup | ManagedObjectReference | element | 0/1 | Gets the power schedule group. | |
rightsizingGroup | ManagedObjectReference | element | 0/1 | Gets the rightsizing group. | |
treeViewType | TreeViewType | element | 0/1 | Gets the tree view type. | |
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
<DefaultAttributesPolicy> <action xsitype="..."> <type>...</type> </action> <allowsOverride>...</allowsOverride> <powerScheduleGroup xsitype="..."> <displayName>...</displayName> <type>...</type> <id>...</id> </powerScheduleGroup> <expiryGroup xsitype="..."> <displayName>...</displayName> <type>...</type> <id>...</id> </expiryGroup> <maintenanceGroup xsitype="..."> <displayName>...</displayName> <type>...</type> <id>...</id> </maintenanceGroup> <rightsizingGroup xsitype="..."> <displayName>...</displayName> <type>...</type> <id>...</id> </rightsizingGroup> <daysToExpire>...</daysToExpire> <treeViewType>...</treeViewType> <enabled>...</enabled> <name>...</name> <description>...</description> <policyType>...</policyType> <targets> <displayName>...</displayName> <type>...</type> <id>...</id> </targets> <global>...</global> </DefaultAttributesPolicy>