Policy Data Type

Policy.

Namespace
(Default)
Abstract Type
Subtypes
CompliancePolicy, DefaultAttributesPolicy, DefaultOwnershipPolicy, EOLPolicy, ExpiryPolicy, SuspectPolicy, UnapprovedPolicy
Properties
name data type type namespace min/max occurs description
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

This data type is abstract. The example below may be incomplete. More accurate examples can be found in subtypes pages.
<Policy>
  <enabled>...</enabled>
  <name>...</name>
  <description>...</description>
  <policyType>...</policyType>
  <targets xsitype="...">
    <displayName>...</displayName>
    <type>...</type>
    <id>...</id>
  </targets>
  <global>...</global>
  <displayName>...</displayName>
  <type>...</type>
  <id>...</id>
</Policy>