PolicyInsightsExtensions.CheckPolicyRestrictions メソッド

定義

オーバーロード

CheckPolicyRestrictions(ManagementGroupResource, CheckManagementGroupPolicyRestrictionsContent, CancellationToken)

管理グループ内のリソースAzure Policyどのような制限が適用されるのかを確認します。

  • 要求パス/プロバイダー/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • 操作IdPolicyRestrictions_CheckAtManagementGroupScope
CheckPolicyRestrictions(ResourceGroupResource, CheckPolicyRestrictionsContent, CancellationToken)

リソース グループ内のリソースAzure Policyどのような制限が適用されるのかを確認します。 これは、リソースが作成されるリソース グループが既にわかっている場合に使用します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • 操作IdPolicyRestrictions_CheckAtResourceGroupScope
CheckPolicyRestrictions(SubscriptionResource, CheckPolicyRestrictionsContent, CancellationToken)

サブスクリプション内のリソースにAzure Policyどのような制限があるかを確認します。

  • 要求パス/サブスクリプション/{subscriptionId}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • 操作IdPolicyRestrictions_CheckAtSubscriptionScope

CheckPolicyRestrictions(ManagementGroupResource, CheckManagementGroupPolicyRestrictionsContent, CancellationToken)

管理グループ内のリソースAzure Policyどのような制限が適用されるのかを確認します。

  • 要求パス/プロバイダー/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • 操作IdPolicyRestrictions_CheckAtManagementGroupScope
public static Azure.Response<Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsResult> CheckPolicyRestrictions (this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, Azure.ResourceManager.PolicyInsights.Models.CheckManagementGroupPolicyRestrictionsContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckPolicyRestrictions : Azure.ResourceManager.ManagementGroups.ManagementGroupResource * Azure.ResourceManager.PolicyInsights.Models.CheckManagementGroupPolicyRestrictionsContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsResult>
<Extension()>
Public Function CheckPolicyRestrictions (managementGroupResource As ManagementGroupResource, content As CheckManagementGroupPolicyRestrictionsContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CheckPolicyRestrictionsResult)

パラメーター

managementGroupResource
ManagementGroupResource

ManagementGroupResourceメソッドが実行するインスタンス。

content
CheckManagementGroupPolicyRestrictionsContent

チェック ポリシー制限パラメーター。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

content が null です。

適用対象

CheckPolicyRestrictions(ResourceGroupResource, CheckPolicyRestrictionsContent, CancellationToken)

リソース グループ内のリソースAzure Policyどのような制限が適用されるのかを確認します。 これは、リソースが作成されるリソース グループが既にわかっている場合に使用します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • 操作IdPolicyRestrictions_CheckAtResourceGroupScope
public static Azure.Response<Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsResult> CheckPolicyRestrictions (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckPolicyRestrictions : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsResult>
<Extension()>
Public Function CheckPolicyRestrictions (resourceGroupResource As ResourceGroupResource, content As CheckPolicyRestrictionsContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CheckPolicyRestrictionsResult)

パラメーター

resourceGroupResource
ResourceGroupResource

ResourceGroupResourceメソッドが実行するインスタンス。

content
CheckPolicyRestrictionsContent

チェック ポリシー制限パラメーター。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

content が null です。

適用対象

CheckPolicyRestrictions(SubscriptionResource, CheckPolicyRestrictionsContent, CancellationToken)

サブスクリプション内のリソースにAzure Policyどのような制限があるかを確認します。

  • 要求パス/サブスクリプション/{subscriptionId}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • 操作IdPolicyRestrictions_CheckAtSubscriptionScope
public static Azure.Response<Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsResult> CheckPolicyRestrictions (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckPolicyRestrictions : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsResult>
<Extension()>
Public Function CheckPolicyRestrictions (subscriptionResource As SubscriptionResource, content As CheckPolicyRestrictionsContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CheckPolicyRestrictionsResult)

パラメーター

subscriptionResource
SubscriptionResource

SubscriptionResourceメソッドが実行するインスタンス。

content
CheckPolicyRestrictionsContent

チェック ポリシー制限パラメーター。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

content が null です。

適用対象