通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PolicyAssignmentProperties interface

政策分配属性。

属性

assignmentType

策略分配的类型。 可能的值为 NotSpecified、System、SystemHidden 和 Custom。 不可变。

definitionVersion

要使用的策略定义的版本。

description

如果发生策略冲突,此消息将是响应的一部分。

displayName

策略分配的显示名称。

effectiveDefinitionVersion

所使用的政策定义的有效版本。 只有通过$expand查询参数请求时才会存在。

enforcementMode

策略分配强制模式。 可能的值为 Default、DoNotEnforce 和 Enroll

instanceId

策略分配的实例ID。 这个ID只有在分配被删除并重新创建时才会改变。

latestDefinitionVersion

最新版本的保单定义可供使用。 只有通过$expand查询参数请求时才会存在。

metadata

策略分配元数据。 元数据是一个开放结束的对象,通常是键值对的集合。

nonComplianceMessages

描述资源不符合策略的原因的消息。

notScopes

策略的排除范围。

overrides

策略属性值重写。

parameters

分配的策略规则的参数值。 键是参数名称。

policyDefinitionId

要分配的策略定义或策略集定义的 ID。

resourceSelectors

按资源属性筛选策略的资源选择器列表。

scope

策略分配的范围。

属性详细信息

assignmentType

策略分配的类型。 可能的值为 NotSpecified、System、SystemHidden 和 Custom。 不可变。

assignmentType?: string

属性值

string

definitionVersion

要使用的策略定义的版本。

definitionVersion?: string

属性值

string

description

如果发生策略冲突,此消息将是响应的一部分。

description?: string

属性值

string

displayName

策略分配的显示名称。

displayName?: string

属性值

string

effectiveDefinitionVersion

所使用的政策定义的有效版本。 只有通过$expand查询参数请求时才会存在。

effectiveDefinitionVersion?: string

属性值

string

enforcementMode

策略分配强制模式。 可能的值为 Default、DoNotEnforce 和 Enroll

enforcementMode?: string

属性值

string

instanceId

策略分配的实例ID。 这个ID只有在分配被删除并重新创建时才会改变。

instanceId?: string

属性值

string

latestDefinitionVersion

最新版本的保单定义可供使用。 只有通过$expand查询参数请求时才会存在。

latestDefinitionVersion?: string

属性值

string

metadata

策略分配元数据。 元数据是一个开放结束的对象,通常是键值对的集合。

metadata?: any

属性值

any

nonComplianceMessages

描述资源不符合策略的原因的消息。

nonComplianceMessages?: NonComplianceMessage[]

属性值

notScopes

策略的排除范围。

notScopes?: string[]

属性值

string[]

overrides

策略属性值重写。

overrides?: Override[]

属性值

parameters

分配的策略规则的参数值。 键是参数名称。

parameters?: Record<string, ParameterValuesValue>

属性值

Record<string, ParameterValuesValue>

policyDefinitionId

要分配的策略定义或策略集定义的 ID。

policyDefinitionId?: string

属性值

string

resourceSelectors

按资源属性筛选策略的资源选择器列表。

resourceSelectors?: ResourceSelector[]

属性值

scope

策略分配的范围。

scope?: string

属性值

string