IPolicyAssignmentsOperations.DeleteByIdWithHttpMessagesAsync Método

Definição

Exclui uma atribuição de política.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.ResourceManager.Fluent.Models.PolicyAssignmentInner>> DeleteByIdWithHttpMessagesAsync (string policyAssignmentId, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteByIdWithHttpMessagesAsync : string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.ResourceManager.Fluent.Models.PolicyAssignmentInner>>
Public Function DeleteByIdWithHttpMessagesAsync (policyAssignmentId As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of PolicyAssignmentInner))

Parâmetros

policyAssignmentId
String

A ID da atribuição de política a ser excluída. Use o formato '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.

customHeaders
Dictionary<String,List<String>>

Os cabeçalhos que serão adicionados à solicitação.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Exceções

Gerado quando a operação retornou um código de status inválido

Gerado quando não é possível desserializar a resposta

Gerado quando um parâmetro necessário é nulo

Comentários

Essa operação exclui a política com a ID fornecida. As IDs de atribuição de política têm esse formato: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Os formatos válidos para {scope} são: '/providers/Microsoft.Management/managementGroups/{managementGroup}' (grupo de gerenciamento), '/subscriptions/{subscriptionId}' (assinatura), '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' ' (grupo de recursos) ou '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' (resource).

Aplica-se a