次の方法で共有


GovernanceAssignments interface

GovernanceAssignmentsを表すインターフェース。

メソッド

createOrUpdate(string, string, string, GovernanceAssignment, GovernanceAssignmentsCreateOrUpdateOptionalParams)

特定のサブスクリプションのガバナンス割り当てを作成または更新します。

delete(string, string, string, GovernanceAssignmentsDeleteOptionalParams)

特定のスコープに対する GovernanceAssignment の削除

get(string, string, string, GovernanceAssignmentsGetOptionalParams)

AssignmentKey によって要求されたスコープの特定の governanceAssignment を取得する

list(string, string, GovernanceAssignmentsListOptionalParams)

スコープ内のすべてのリソースに対するガバナンスの割り当てを取得する

メソッドの詳細

createOrUpdate(string, string, string, GovernanceAssignment, GovernanceAssignmentsCreateOrUpdateOptionalParams)

特定のサブスクリプションのガバナンス割り当てを作成または更新します。

function createOrUpdate(scope: string, assessmentName: string, assignmentKey: string, governanceAssignment: GovernanceAssignment, options?: GovernanceAssignmentsCreateOrUpdateOptionalParams): Promise<GovernanceAssignment>

パラメーター

scope

string

ガバナンス割り当てのスコープ。 有効なスコープは、サブスクリプション (形式: 'subscriptions/{subscriptionId}') またはセキュリティ コネクタ (形式: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' です。

assessmentName

string

評価キー - 評価の種類の一意のキー

assignmentKey

string

ガバナンス割り当てキー - 必要なガバナンス割り当ての評価キー

governanceAssignment
GovernanceAssignment

サブスクリプション スコープに対するガバナンスの割り当て

options
GovernanceAssignmentsCreateOrUpdateOptionalParams

オプション パラメーター。

戻り値

delete(string, string, string, GovernanceAssignmentsDeleteOptionalParams)

特定のスコープに対する GovernanceAssignment の削除

function delete(scope: string, assessmentName: string, assignmentKey: string, options?: GovernanceAssignmentsDeleteOptionalParams): Promise<void>

パラメーター

scope

string

ガバナンス割り当てのスコープ。 有効なスコープは、サブスクリプション (形式: 'subscriptions/{subscriptionId}') またはセキュリティ コネクタ (形式: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' です。

assessmentName

string

評価キー - 評価の種類の一意のキー

assignmentKey

string

ガバナンス割り当てキー - 必要なガバナンス割り当ての評価キー

options
GovernanceAssignmentsDeleteOptionalParams

オプション パラメーター。

戻り値

Promise<void>

get(string, string, string, GovernanceAssignmentsGetOptionalParams)

AssignmentKey によって要求されたスコープの特定の governanceAssignment を取得する

function get(scope: string, assessmentName: string, assignmentKey: string, options?: GovernanceAssignmentsGetOptionalParams): Promise<GovernanceAssignment>

パラメーター

scope

string

ガバナンス割り当てのスコープ。 有効なスコープは、サブスクリプション (形式: 'subscriptions/{subscriptionId}') またはセキュリティ コネクタ (形式: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' です。

assessmentName

string

評価キー - 評価の種類の一意のキー

assignmentKey

string

ガバナンス割り当てキー - 必要なガバナンス割り当ての評価キー

options
GovernanceAssignmentsGetOptionalParams

オプション パラメーター。

戻り値

list(string, string, GovernanceAssignmentsListOptionalParams)

スコープ内のすべてのリソースに対するガバナンスの割り当てを取得する

function list(scope: string, assessmentName: string, options?: GovernanceAssignmentsListOptionalParams): PagedAsyncIterableIterator<GovernanceAssignment, GovernanceAssignment[], PageSettings>

パラメーター

scope

string

ガバナンス割り当てのスコープ。 有効なスコープは、サブスクリプション (形式: 'subscriptions/{subscriptionId}') またはセキュリティ コネクタ (形式: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' です。

assessmentName

string

評価キー - 評価の種類の一意のキー

options
GovernanceAssignmentsListOptionalParams

オプション パラメーター。

戻り値