通过


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

PolicyDefinitionVersion interface

策略定义版本的 ID。

扩展

属性

description

策略定义说明。

displayName

策略定义的显示名称。

externalEvaluationEnforcementSettings

强制评估期间策略所需的外部评估结果源的详细信息。

metadata

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

mode

策略定义模式。 一些示例包括 All、Indexed、Microsoft.KeyVault.Data。

parameters

策略规则中使用的参数的参数定义。 键是参数名称。

policyRule

策略规则。

policyType

策略定义的类型。 可能的值为 NotSpecified、BuiltIn、Custom 和 Static。

version

#.#.# 格式的策略定义版本。

继承属性

id

资源的完全限定资源 ID。 示例 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

资源的名称

systemData

包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。

type

资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts”

属性详细信息

description

策略定义说明。

description?: string

属性值

string

displayName

策略定义的显示名称。

displayName?: string

属性值

string

externalEvaluationEnforcementSettings

强制评估期间策略所需的外部评估结果源的详细信息。

externalEvaluationEnforcementSettings?: ExternalEvaluationEnforcementSettings

属性值

metadata

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

metadata?: any

属性值

any

mode

策略定义模式。 一些示例包括 All、Indexed、Microsoft.KeyVault.Data。

mode?: string

属性值

string

parameters

策略规则中使用的参数的参数定义。 键是参数名称。

parameters?: Record<string, ParameterDefinitionsValue>

属性值

Record<string, ParameterDefinitionsValue>

policyRule

策略规则。

policyRule?: any

属性值

any

policyType

策略定义的类型。 可能的值为 NotSpecified、BuiltIn、Custom 和 Static。

policyType?: string

属性值

string

version

#.#.# 格式的策略定义版本。

version?: string

属性值

string

继承属性详细信息

id

资源的完全限定资源 ID。 示例 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

id?: string

属性值

string

继承自 ProxyResource.id

name

资源的名称

name?: string

属性值

string

继承自 ProxyResource.name

systemData

包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。

systemData?: SystemData

属性值

继承自ProxyResource.systemData

type

资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts”

type?: string

属性值

string

继承自ProxyResource.type