CompliancePolicy Data Type

Compliance policy.

Namespace
(Default)
Properties
name data type type namespace min/max occurs description
action PolicyAction element 0/1 Gets the action.
alertViaSNMP string element 0/1 Checks if is alert via snmp.
allowsOverride string element 0/1 Checks if is allows override.
complianceRequirement ComplianceRequirement element 0/1 The compliance requirements for this policy.
generateVCenterAlerts string element 0/1 Checks if is generate v center alerts.
gracePeriodInHrs int element 1/1 The grace period in hours before policy action triggers. If not specified, the default of 24 hrs will be used. Allowable values are 1-24 hrs or a multiple of 24 up to a maximum of 168 hrs (7 days).
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

<CompliancePolicy>
  <action xsitype="...">
    <type>...</type>
  </action>
  <treeViewType>...</treeViewType>
  <generateVCenterAlerts>...</generateVCenterAlerts>
  <allowsOverride>...</allowsOverride>
  <alertViaSNMP>...</alertViaSNMP>
  <gracePeriodInHrs>...</gracePeriodInHrs>
  <complianceRequirement xsitype="...">
    <expiryDateRequired>...</expiryDateRequired>
    <primaryOwnerRequired>...</primaryOwnerRequired>
    <attributes>
      <displayName>...</displayName>
      <type>...</type>
      <id>...</id>
    </attributes>
  </complianceRequirement>
  <enabled>...</enabled>
  <name>...</name>
  <description>...</description>
  <policyType>...</policyType>
  <targets>
    <displayName>...</displayName>
    <type>...</type>
    <id>...</id>
  </targets>
  <global>...</global>
</CompliancePolicy>