RoleAssignmentsOperationsExtensions.Get 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
依範圍和名稱取得角色指派。
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
參數
- operations
- IRoleAssignmentsOperations
這個擴充方法的作業群組。
- scope
- String
作業或資源的範圍。 有效的範圍包括:訂用帳戶 (格式:'/subscriptions/{subscriptionId}') , 資源群組 (格式:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}',或資源 (格式:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'
- roleAssignmentName
- String
角色指派的名稱。 它可以是任何有效的 GUID。
- tenantId
- String
跨租使用者要求的租使用者識別碼