次の方法で共有


GovernanceRules interface

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

メソッド

beginDelete(string, string, GovernanceRulesDeleteOptionalParams)

特定のスコープに対するガバナンス ルールを削除する

beginDeleteAndWait(string, string, GovernanceRulesDeleteOptionalParams)

特定のスコープに対するガバナンス ルールを削除する

beginExecute(string, string, GovernanceRulesExecuteOptionalParams)

ガバナンス ルールを実行する

beginExecuteAndWait(string, string, GovernanceRulesExecuteOptionalParams)

ガバナンス ルールを実行する

createOrUpdate(string, string, GovernanceRule, GovernanceRulesCreateOrUpdateOptionalParams)

特定のスコープに対するガバナンス 規則を作成または更新します

get(string, string, GovernanceRulesGetOptionalParams)

ruleId によって要求されたスコープの特定のガバナンス 規則を取得する

list(string, GovernanceRulesListOptionalParams)

スコープに関連するすべてのガバナンス 規則の一覧を取得する

operationResults(string, string, string, GovernanceRulesOperationResultsOptionalParams)

ruleId と operationId を使用して、要求されたスコープのガバナンス ルールの実行時間の長い操作結果を取得する

メソッドの詳細

beginDelete(string, string, GovernanceRulesDeleteOptionalParams)

特定のスコープに対するガバナンス ルールを削除する

function beginDelete(scope: string, ruleId: string, options?: GovernanceRulesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

パラメーター

scope

string

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

ruleId

string

ガバナンス ルール キー - 標準ガバナンス 規則 (GUID) の一意のキー

options
GovernanceRulesDeleteOptionalParams

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

戻り値

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait(string, string, GovernanceRulesDeleteOptionalParams)

特定のスコープに対するガバナンス ルールを削除する

function beginDeleteAndWait(scope: string, ruleId: string, options?: GovernanceRulesDeleteOptionalParams): Promise<void>

パラメーター

scope

string

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

ruleId

string

ガバナンス ルール キー - 標準ガバナンス 規則 (GUID) の一意のキー

options
GovernanceRulesDeleteOptionalParams

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

戻り値

Promise<void>

beginExecute(string, string, GovernanceRulesExecuteOptionalParams)

ガバナンス ルールを実行する

function beginExecute(scope: string, ruleId: string, options?: GovernanceRulesExecuteOptionalParams): Promise<SimplePollerLike<OperationState<GovernanceRulesExecuteHeaders>, GovernanceRulesExecuteHeaders>>

パラメーター

scope

string

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

ruleId

string

ガバナンス ルール キー - 標準ガバナンス 規則 (GUID) の一意のキー

options
GovernanceRulesExecuteOptionalParams

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

戻り値

Promise<@azure/core-lro.SimplePollerLike<OperationState<GovernanceRulesExecuteHeaders>, GovernanceRulesExecuteHeaders>>

beginExecuteAndWait(string, string, GovernanceRulesExecuteOptionalParams)

ガバナンス ルールを実行する

function beginExecuteAndWait(scope: string, ruleId: string, options?: GovernanceRulesExecuteOptionalParams): Promise<GovernanceRulesExecuteHeaders>

パラメーター

scope

string

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

ruleId

string

ガバナンス ルール キー - 標準ガバナンス 規則 (GUID) の一意のキー

options
GovernanceRulesExecuteOptionalParams

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

戻り値

createOrUpdate(string, string, GovernanceRule, GovernanceRulesCreateOrUpdateOptionalParams)

特定のスコープに対するガバナンス 規則を作成または更新します

function createOrUpdate(scope: string, ruleId: string, governanceRule: GovernanceRule, options?: GovernanceRulesCreateOrUpdateOptionalParams): Promise<GovernanceRule>

パラメーター

scope

string

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

ruleId

string

ガバナンス ルール キー - 標準ガバナンス 規則 (GUID) の一意のキー

governanceRule
GovernanceRule

特定のスコープに対するガバナンス ルール

options
GovernanceRulesCreateOrUpdateOptionalParams

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

戻り値

Promise<GovernanceRule>

get(string, string, GovernanceRulesGetOptionalParams)

ruleId によって要求されたスコープの特定のガバナンス 規則を取得する

function get(scope: string, ruleId: string, options?: GovernanceRulesGetOptionalParams): Promise<GovernanceRule>

パラメーター

scope

string

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

ruleId

string

ガバナンス ルール キー - 標準ガバナンス 規則 (GUID) の一意のキー

options
GovernanceRulesGetOptionalParams

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

戻り値

Promise<GovernanceRule>

list(string, GovernanceRulesListOptionalParams)

スコープに関連するすべてのガバナンス 規則の一覧を取得する

function list(scope: string, options?: GovernanceRulesListOptionalParams): PagedAsyncIterableIterator<GovernanceRule, GovernanceRule[], PageSettings>

パラメーター

scope

string

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

options
GovernanceRulesListOptionalParams

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

戻り値

operationResults(string, string, string, GovernanceRulesOperationResultsOptionalParams)

ruleId と operationId を使用して、要求されたスコープのガバナンス ルールの実行時間の長い操作結果を取得する

function operationResults(scope: string, ruleId: string, operationId: string, options?: GovernanceRulesOperationResultsOptionalParams): Promise<OperationResultAutoGenerated>

パラメーター

scope

string

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

ruleId

string

ガバナンス ルール キー - 標準ガバナンス 規則 (GUID) の一意のキー

operationId

string

ガバナンス ルールの実行時間の長い操作の一意キー

options
GovernanceRulesOperationResultsOptionalParams

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

戻り値