你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PolicyEvent interface
Policy event record.
Properties
compliance |
Compliance state of the resource. |
components | Components events 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. |
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 event 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 |
Policy definition action, i.e. effect. |
policy |
Policy definition category. |
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 |
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. |
principal |
Principal object ID for the user who initiated the resource operation that triggered the policy event. |
resource |
Resource group name. |
resource |
Resource ID. |
resource |
Resource location. |
resource |
List of resource tags. |
resource |
Resource type. |
subscription |
Subscription ID. |
tenant |
Tenant ID for the policy event record. |
timestamp | Timestamp for the policy event record. |
Property Details
complianceState
Compliance state of the resource.
complianceState?: string
Property Value
string
components
Components events records populated only when URL contains $expand=components clause.
components?: ComponentEventDetails[]
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.
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 event 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
policyDefinitionAction
Policy definition action, i.e. effect.
policyDefinitionAction?: string
Property Value
string
policyDefinitionCategory
Policy definition category.
policyDefinitionCategory?: 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
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
principalOid
Principal object ID for the user who initiated the resource operation that triggered the policy event.
principalOid?: 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
tenantId
Tenant ID for the policy event record.
tenantId?: string
Property Value
string
timestamp
Timestamp for the policy event record.
timestamp?: Date
Property Value
Date