PolicyEvent Class
Policy event record.
- Inheritance
-
msrest.serialization.ModelPolicyEvent
Constructor
PolicyEvent(*, additional_properties: Dict[str, object] | None = None, odata_id: str | None = None, odata_context: str | None = None, timestamp: datetime | None = None, resource_id: str | None = None, policy_assignment_id: str | None = None, policy_definition_id: str | None = None, effective_parameters: str | None = None, is_compliant: bool | None = None, subscription_id: str | None = None, resource_type: str | None = None, resource_location: str | None = None, resource_group: str | None = None, resource_tags: str | None = None, policy_assignment_name: str | None = None, policy_assignment_owner: str | None = None, policy_assignment_parameters: str | None = None, policy_assignment_scope: str | None = None, policy_definition_name: str | None = None, policy_definition_action: str | None = None, policy_definition_category: str | None = None, policy_set_definition_id: str | None = None, policy_set_definition_name: str | None = None, policy_set_definition_owner: str | None = None, policy_set_definition_category: str | None = None, policy_set_definition_parameters: str | None = None, management_group_ids: str | None = None, policy_definition_reference_id: str | None = None, compliance_state: str | None = None, tenant_id: str | None = None, principal_oid: str | None = None, components: List[ComponentEventDetails] | None = None, **kwargs)
Parameters
Name | Description |
---|---|
additional_properties
Required
|
Unmatched properties from the message are deserialized to this collection. |
odata_id
Required
|
OData entity ID; always set to null since policy event records do not have an entity ID. |
odata_context
Required
|
OData context string; used by OData clients to resolve type information based on metadata. |
timestamp
Required
|
Timestamp for the policy event record. |
resource_id
Required
|
Resource ID. |
policy_assignment_id
Required
|
Policy assignment ID. |
policy_definition_id
Required
|
Policy definition ID. |
effective_parameters
Required
|
Effective parameters for the policy assignment. |
is_compliant
Required
|
Flag which states whether the resource is compliant against the policy assignment it was evaluated against. |
subscription_id
Required
|
Subscription ID. |
resource_type
Required
|
Resource type. |
resource_location
Required
|
Resource location. |
resource_group
Required
|
Resource group name. |
resource_tags
Required
|
List of resource tags. |
policy_assignment_name
Required
|
Policy assignment name. |
policy_assignment_owner
Required
|
Policy assignment owner. |
policy_assignment_parameters
Required
|
Policy assignment parameters. |
policy_assignment_scope
Required
|
Policy assignment scope. |
policy_definition_name
Required
|
Policy definition name. |
policy_definition_action
Required
|
Policy definition action, i.e. effect. |
policy_definition_category
Required
|
Policy definition category. |
policy_set_definition_id
Required
|
Policy set definition ID, if the policy assignment is for a policy set. |
policy_set_definition_name
Required
|
Policy set definition name, if the policy assignment is for a policy set. |
policy_set_definition_owner
Required
|
Policy set definition owner, if the policy assignment is for a policy set. |
policy_set_definition_category
Required
|
Policy set definition category, if the policy assignment is for a policy set. |
policy_set_definition_parameters
Required
|
Policy set definition parameters, if the policy assignment is for a policy set. |
management_group_ids
Required
|
Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under. |
policy_definition_reference_id
Required
|
Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set. |
compliance_state
Required
|
Compliance state of the resource. |
tenant_id
Required
|
Tenant ID for the policy event record. |
principal_oid
Required
|
Principal object ID for the user who initiated the resource operation that triggered the policy event. |
components
Required
|
Components events records populated only when URL contains $expand=components clause. |
Keyword-Only Parameters
Name | Description |
---|---|
additional_properties
Required
|
|
odata_id
Required
|
|
odata_context
Required
|
|
timestamp
Required
|
|
resource_id
Required
|
|
policy_assignment_id
Required
|
|
policy_definition_id
Required
|
|
effective_parameters
Required
|
|
is_compliant
Required
|
|
subscription_id
Required
|
|
resource_type
Required
|
|
resource_location
Required
|
|
resource_group
Required
|
|
resource_tags
Required
|
|
policy_assignment_name
Required
|
|
policy_assignment_owner
Required
|
|
policy_assignment_parameters
Required
|
|
policy_assignment_scope
Required
|
|
policy_definition_name
Required
|
|
policy_definition_action
Required
|
|
policy_definition_category
Required
|
|
policy_set_definition_id
Required
|
|
policy_set_definition_name
Required
|
|
policy_set_definition_owner
Required
|
|
policy_set_definition_category
Required
|
|
policy_set_definition_parameters
Required
|
|
management_group_ids
Required
|
|
policy_definition_reference_id
Required
|
|
compliance_state
Required
|
|
tenant_id
Required
|
|
principal_oid
Required
|
|
components
Required
|
|
Azure SDK for Python