Partilhar via


PolicyInsightsExtensions.CheckPolicyRestrictionsAsync Método

Definição

Sobrecargas

CheckPolicyRestrictionsAsync(ManagementGroupResource, CheckManagementGroupPolicyRestrictionsContent, CancellationToken)

Verifica quais restrições Azure Policy colocarão em recursos dentro de um grupo de gerenciamento.

  • Caminho da Solicitação/provedores/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • Operação IdPolicyRestrictions_CheckAtManagementGroupScope
CheckPolicyRestrictionsAsync(ResourceGroupResource, CheckPolicyRestrictionsContent, CancellationToken)

Verifica quais restrições Azure Policy colocarão em um recurso dentro de um grupo de recursos. Use isso quando o grupo de recursos no qual o recurso será criado já for conhecido.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • Operação IdPolicyRestrictions_CheckAtResourceGroupScope
CheckPolicyRestrictionsAsync(SubscriptionResource, CheckPolicyRestrictionsContent, CancellationToken)

Verifica quais restrições Azure Policy colocarão em um recurso dentro de uma assinatura.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • Operação IdPolicyRestrictions_CheckAtSubscriptionScope

CheckPolicyRestrictionsAsync(ManagementGroupResource, CheckManagementGroupPolicyRestrictionsContent, CancellationToken)

Verifica quais restrições Azure Policy colocarão em recursos dentro de um grupo de gerenciamento.

  • Caminho da Solicitação/provedores/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • Operação IdPolicyRestrictions_CheckAtManagementGroupScope
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsResult>> CheckPolicyRestrictionsAsync (this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, Azure.ResourceManager.PolicyInsights.Models.CheckManagementGroupPolicyRestrictionsContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckPolicyRestrictionsAsync : Azure.ResourceManager.ManagementGroups.ManagementGroupResource * Azure.ResourceManager.PolicyInsights.Models.CheckManagementGroupPolicyRestrictionsContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsResult>>
<Extension()>
Public Function CheckPolicyRestrictionsAsync (managementGroupResource As ManagementGroupResource, content As CheckManagementGroupPolicyRestrictionsContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CheckPolicyRestrictionsResult))

Parâmetros

managementGroupResource
ManagementGroupResource

A ManagementGroupResource instância em que o método será executado.

content
CheckManagementGroupPolicyRestrictionsContent

O marcar parâmetros de restrições de política.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a

CheckPolicyRestrictionsAsync(ResourceGroupResource, CheckPolicyRestrictionsContent, CancellationToken)

Verifica quais restrições Azure Policy colocarão em um recurso dentro de um grupo de recursos. Use isso quando o grupo de recursos no qual o recurso será criado já for conhecido.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • Operação IdPolicyRestrictions_CheckAtResourceGroupScope
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsResult>> CheckPolicyRestrictionsAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckPolicyRestrictionsAsync : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsResult>>
<Extension()>
Public Function CheckPolicyRestrictionsAsync (resourceGroupResource As ResourceGroupResource, content As CheckPolicyRestrictionsContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CheckPolicyRestrictionsResult))

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância em que o método será executado.

content
CheckPolicyRestrictionsContent

O marcar parâmetros de restrições de política.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a

CheckPolicyRestrictionsAsync(SubscriptionResource, CheckPolicyRestrictionsContent, CancellationToken)

Verifica quais restrições Azure Policy colocarão em um recurso dentro de uma assinatura.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • Operação IdPolicyRestrictions_CheckAtSubscriptionScope
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsResult>> CheckPolicyRestrictionsAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckPolicyRestrictionsAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsResult>>
<Extension()>
Public Function CheckPolicyRestrictionsAsync (subscriptionResource As SubscriptionResource, content As CheckPolicyRestrictionsContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CheckPolicyRestrictionsResult))

Parâmetros

subscriptionResource
SubscriptionResource

A SubscriptionResource instância em que o método será executado.

content
CheckPolicyRestrictionsContent

O marcar parâmetros de restrições de política.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a