Condividi tramite


RoleAssignmentsOperationsExtensions.DeleteByIdAsync Metodo

Definizione

Eliminare un'assegnazione di ruolo in base all'ID.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Authorization.Models.RoleAssignment> DeleteByIdAsync (this Microsoft.Azure.Management.Authorization.IRoleAssignmentsOperations operations, string roleAssignmentId, string tenantId = default, System.Threading.CancellationToken cancellationToken = default);
static member DeleteByIdAsync : Microsoft.Azure.Management.Authorization.IRoleAssignmentsOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Authorization.Models.RoleAssignment>
<Extension()>
Public Function DeleteByIdAsync (operations As IRoleAssignmentsOperations, roleAssignmentId As String, Optional tenantId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RoleAssignment)

Parametri

operations
IRoleAssignmentsOperations

Gruppo di operazioni per questo metodo di estensione.

roleAssignmentId
String

ID completo dell'assegnazione di ruolo, incluso ambito, nome risorsa e tipo di risorsa. Formato: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Esempio: /subscriptions/<SUB_ID/resourcegroups</RESOURCE_GROUP>>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>

tenantId
String

ID tenant per la richiesta tra tenant

cancellationToken
CancellationToken

Token di annullamento.

Restituisce

Si applica a