다음을 통해 공유


PolicyAssignment Class

The policy assignment.

Variables are only populated by the server, and will be ignored when sending a request.

Constructor

PolicyAssignment(*, sku: _models.PolicySku | None = None, display_name: str | None = None, policy_definition_id: str | None = None, scope: str | None = None, not_scopes: List[str] | None = None, parameters: MutableMapping[str, Any] | None = None, description: str | None = None, metadata: MutableMapping[str, Any] | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
sku

The policy sku. This property is optional, obsolete, and will be ignored.

Default value: None
display_name
str

The display name of the policy assignment.

Default value: None
policy_definition_id
str

The ID of the policy definition or policy set definition being assigned.

Default value: None
scope
str

The scope for the policy assignment.

Default value: None
not_scopes

The policy's excluded scopes.

Default value: None
parameters

Required if a parameter is used in policy rule.

Default value: None
description
str

This message will be part of response in case of policy violation.

Default value: None
metadata

The policy assignment metadata.

Default value: None

Variables

Name Description
id
str

The ID of the policy assignment.

type
str

The type of the policy assignment.

name
str

The name of the policy assignment.

sku

The policy sku. This property is optional, obsolete, and will be ignored.

display_name
str

The display name of the policy assignment.

policy_definition_id
str

The ID of the policy definition or policy set definition being assigned.

scope
str

The scope for the policy assignment.

not_scopes

The policy's excluded scopes.

parameters
<xref:JSON>

Required if a parameter is used in policy rule.

description
str

This message will be part of response in case of policy violation.

metadata
<xref:JSON>

The policy assignment metadata.