Udostępnij za pośrednictwem


RoleAssignmentsOperationsExtensions.Get Metoda

Definicja

Pobierz przypisanie roli według zakresu i nazwy.

public static Microsoft.Azure.Management.Authorization.Models.RoleAssignment Get (this Microsoft.Azure.Management.Authorization.IRoleAssignmentsOperations operations, string scope, string roleAssignmentName, string tenantId = default);
static member Get : Microsoft.Azure.Management.Authorization.IRoleAssignmentsOperations * string * string * string -> Microsoft.Azure.Management.Authorization.Models.RoleAssignment
<Extension()>
Public Function Get (operations As IRoleAssignmentsOperations, scope As String, roleAssignmentName As String, Optional tenantId As String = Nothing) As RoleAssignment

Parametry

operations
IRoleAssignmentsOperations

Grupa operacji dla tej metody rozszerzenia.

scope
String

Zakres operacji lub zasobu. Prawidłowe zakresy to: subskrypcja (format: "/subscriptions/{subscriptionId}"), grupa zasobów (format: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}" lub zasób (format: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}"

roleAssignmentName
String

Nazwa przypisania roli. Może to być dowolny prawidłowy identyfikator GUID.

tenantId
String

Identyfikator dzierżawy dla żądania między dzierżawami

Zwraca

Dotyczy