Compartir a través de


QueuesOperationsExtensions.CreateOrUpdateAuthorizationRuleAsync Método

Definición

Crea una regla de autorización para una cola.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ServiceBus.Fluent.Models.SharedAccessAuthorizationRuleInner> CreateOrUpdateAuthorizationRuleAsync (this Microsoft.Azure.Management.ServiceBus.Fluent.IQueuesOperations operations, string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName, System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceBus.Fluent.Models.AccessRights?> rights, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAuthorizationRuleAsync : Microsoft.Azure.Management.ServiceBus.Fluent.IQueuesOperations * string * string * string * string * System.Collections.Generic.IList<Nullable<Microsoft.Azure.Management.ServiceBus.Fluent.Models.AccessRights>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ServiceBus.Fluent.Models.SharedAccessAuthorizationRuleInner>
<Extension()>
Public Function CreateOrUpdateAuthorizationRuleAsync (operations As IQueuesOperations, resourceGroupName As String, namespaceName As String, queueName As String, authorizationRuleName As String, rights As IList(Of Nullable(Of AccessRights)), Optional cancellationToken As CancellationToken = Nothing) As Task(Of SharedAccessAuthorizationRuleInner)

Parámetros

operations
IQueuesOperations

El grupo de operaciones de este método de extensión.

resourceGroupName
String

Nombre del grupo de recursos dentro de la suscripción de Azure.

namespaceName
String

El nombre del espacio de nombres

queueName
String

Nombre de cola.

authorizationRuleName
String

Nombre de authorizationrule.

rights
IList<Nullable<AccessRights>>

Derechos asociados a la regla.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Se aplica a