GovernanceRules interface
GovernanceRulesを表すインターフェース。
メソッド
| begin |
特定のスコープに対するガバナンス ルールを削除する |
| begin |
特定のスコープに対するガバナンス ルールを削除する |
| begin |
ガバナンス ルールを実行する |
| begin |
ガバナンス ルールを実行する |
| create |
特定のスコープに対するガバナンス 規則を作成または更新します |
| get(string, string, Governance |
ruleId によって要求されたスコープの特定のガバナンス 規則を取得する |
| list(string, Governance |
スコープに関連するすべてのガバナンス 規則の一覧を取得する |
| operation |
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) の一意のキー
オプション パラメーター。
戻り値
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) の一意のキー
オプション パラメーター。
戻り値
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) の一意のキー
オプション パラメーター。
戻り値
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) の一意のキー
オプション パラメーター。
戻り値
Promise<GovernanceRulesExecuteHeaders>
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
特定のスコープに対するガバナンス ルール
オプション パラメーター。
戻り値
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})' です。
オプション パラメーター。
戻り値
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
ガバナンス ルールの実行時間の長い操作の一意キー
オプション パラメーター。
戻り値
Promise<OperationResultAutoGenerated>