你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PolicyState interface
Policy state record.
Properties
compliance |
Compliance state of the resource. |
components | Components state compliance records populated only when URL contains $expand=components clause. |
effective |
Effective parameters for the policy assignment. |
is |
Flag which states whether the resource is compliant against the policy assignment it was evaluated against. This property is deprecated; please use ComplianceState instead. |
management |
Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under. |
odata |
OData context string; used by OData clients to resolve type information based on metadata. |
odata |
OData entity ID; always set to null since policy state records do not have an entity ID. |
policy |
Policy assignment ID. |
policy |
Policy assignment name. |
policy |
Policy assignment owner. |
policy |
Policy assignment parameters. |
policy |
Policy assignment scope. |
policy |
Evaluated policy assignment version. NOTE: This property will not be serialized. It can only be populated by the server. |
policy |
Policy definition action, i.e. effect. |
policy |
Policy definition category. |
policy |
Policy definition group names. |
policy |
Policy definition ID. |
policy |
Policy definition name. |
policy |
Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set. |
policy |
Evaluated policy definition version. NOTE: This property will not be serialized. It can only be populated by the server. |
policy |
Policy evaluation details. |
policy |
Policy set definition category, if the policy assignment is for a policy set. |
policy |
Policy set definition ID, if the policy assignment is for a policy set. |
policy |
Policy set definition name, if the policy assignment is for a policy set. |
policy |
Policy set definition owner, if the policy assignment is for a policy set. |
policy |
Policy set definition parameters, if the policy assignment is for a policy set. |
policy |
Evaluated policy set definition version. NOTE: This property will not be serialized. It can only be populated by the server. |
resource |
Resource group name. |
resource |
Resource ID. |
resource |
Resource location. |
resource |
List of resource tags. |
resource |
Resource type. |
subscription |
Subscription ID. |
timestamp | Timestamp for the policy state record. |
Property Details
complianceState
Compliance state of the resource.
complianceState?: string
Property Value
string
components
Components state compliance records populated only when URL contains $expand=components clause.
components?: ComponentStateDetails[]
Property Value
effectiveParameters
Effective parameters for the policy assignment.
effectiveParameters?: string
Property Value
string
isCompliant
Flag which states whether the resource is compliant against the policy assignment it was evaluated against. This property is deprecated; please use ComplianceState instead.
isCompliant?: boolean
Property Value
boolean
managementGroupIds
Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under.
managementGroupIds?: string
Property Value
string
odataContext
OData context string; used by OData clients to resolve type information based on metadata.
odataContext?: string
Property Value
string
odataId
OData entity ID; always set to null since policy state records do not have an entity ID.
odataId?: string
Property Value
string
policyAssignmentId
Policy assignment ID.
policyAssignmentId?: string
Property Value
string
policyAssignmentName
Policy assignment name.
policyAssignmentName?: string
Property Value
string
policyAssignmentOwner
Policy assignment owner.
policyAssignmentOwner?: string
Property Value
string
policyAssignmentParameters
Policy assignment parameters.
policyAssignmentParameters?: string
Property Value
string
policyAssignmentScope
Policy assignment scope.
policyAssignmentScope?: string
Property Value
string
policyAssignmentVersion
Evaluated policy assignment version. NOTE: This property will not be serialized. It can only be populated by the server.
policyAssignmentVersion?: string
Property Value
string
policyDefinitionAction
Policy definition action, i.e. effect.
policyDefinitionAction?: string
Property Value
string
policyDefinitionCategory
Policy definition category.
policyDefinitionCategory?: string
Property Value
string
policyDefinitionGroupNames
Policy definition group names.
policyDefinitionGroupNames?: string[]
Property Value
string[]
policyDefinitionId
Policy definition ID.
policyDefinitionId?: string
Property Value
string
policyDefinitionName
Policy definition name.
policyDefinitionName?: string
Property Value
string
policyDefinitionReferenceId
Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set.
policyDefinitionReferenceId?: string
Property Value
string
policyDefinitionVersion
Evaluated policy definition version. NOTE: This property will not be serialized. It can only be populated by the server.
policyDefinitionVersion?: string
Property Value
string
policyEvaluationDetails
Policy evaluation details.
policyEvaluationDetails?: PolicyEvaluationDetails
Property Value
policySetDefinitionCategory
Policy set definition category, if the policy assignment is for a policy set.
policySetDefinitionCategory?: string
Property Value
string
policySetDefinitionId
Policy set definition ID, if the policy assignment is for a policy set.
policySetDefinitionId?: string
Property Value
string
policySetDefinitionName
Policy set definition name, if the policy assignment is for a policy set.
policySetDefinitionName?: string
Property Value
string
policySetDefinitionOwner
Policy set definition owner, if the policy assignment is for a policy set.
policySetDefinitionOwner?: string
Property Value
string
policySetDefinitionParameters
Policy set definition parameters, if the policy assignment is for a policy set.
policySetDefinitionParameters?: string
Property Value
string
policySetDefinitionVersion
Evaluated policy set definition version. NOTE: This property will not be serialized. It can only be populated by the server.
policySetDefinitionVersion?: string
Property Value
string
resourceGroup
Resource group name.
resourceGroup?: string
Property Value
string
resourceId
Resource ID.
resourceId?: string
Property Value
string
resourceLocation
Resource location.
resourceLocation?: string
Property Value
string
resourceTags
List of resource tags.
resourceTags?: string
Property Value
string
resourceType
Resource type.
resourceType?: string
Property Value
string
subscriptionId
Subscription ID.
subscriptionId?: string
Property Value
string
timestamp
Timestamp for the policy state record.
timestamp?: Date
Property Value
Date