共用方式為


PolicyAssignment interface

原則指派。

Extends

屬性

assignmentType

原則指派的類型。 可能的值為 NotSpecified、System、SystemHidden 和 Custom。 不可改變。

definitionVersion

要使用的原則定義版本。

description

如果違反原則,此訊息將會是回應的一部分。

displayName

原則指派的顯示名稱。

effectiveDefinitionVersion

目前使用的政策定義的有效版本。 只有在透過 $expand 查詢參數請求時才會存在。

enforcementMode

原則指派強制模式。 可能的值為 Default、DoNotEnforce 和 Enroll

identity

與原則指派相關聯的受控識別。

instanceId

政策指派的實例 ID。 這個 ID 只有在刪除並重新建立指派時才會改變。

latestDefinitionVersion

最新版本的保單定義可供參考。 只有在透過 $expand 查詢參數請求時才會存在。

location

原則指派的位置。 只有在使用受控識別時才需要。

metadata

原則指派元數據。 元數據是開放式物件,通常是索引鍵值組的集合。

nonComplianceMessages

描述資源不符合原則之原因的訊息。

notScopes

原則的排除範圍。

overrides

原則屬性值覆寫。

parameters

指派原則規則的參數值。 索引鍵是參數名稱。

policyDefinitionId

要指派的原則定義或原則集定義的標識碼。

resourceSelectors

依資源屬性篩選原則的資源選取器清單。

scope

原則指派的範圍。

繼承的屬性

id

資源的完整資源標識碼。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

資源的名稱

systemData

包含 createdBy 和 modifiedBy 資訊的 Azure Resource Manager 元數據。

type

資源的類型。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts”

屬性詳細資料

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

identity

與原則指派相關聯的受控識別。

identity?: Identity

屬性值

instanceId

政策指派的實例 ID。 這個 ID 只有在刪除並重新建立指派時才會改變。

instanceId?: string

屬性值

string

latestDefinitionVersion

最新版本的保單定義可供參考。 只有在透過 $expand 查詢參數請求時才會存在。

latestDefinitionVersion?: string

屬性值

string

location

原則指派的位置。 只有在使用受控識別時才需要。

location?: 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

要指派的原則定義或原則集定義的標識碼。

policyDefinitionId?: string

屬性值

string

resourceSelectors

依資源屬性篩選原則的資源選取器清單。

resourceSelectors?: ResourceSelector[]

屬性值

scope

原則指派的範圍。

scope?: string

屬性值

string

繼承的屬性詳細資料

id

資源的完整資源標識碼。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

id?: string

屬性值

string

繼承自ExtensionResource.id

name

資源的名稱

name?: string

屬性值

string

繼承自ExtensionResource.name

systemData

包含 createdBy 和 modifiedBy 資訊的 Azure Resource Manager 元數據。

systemData?: SystemData

屬性值

繼承自ExtensionResource.systemData

type

資源的類型。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts”

type?: string

屬性值

string

繼承自ExtensionResource.type