Dela via


NamespacesOperationsExtensions.CreateOrUpdateAuthorizationRuleAsync Method

Definition

Creates or updates an authorization rule for a namespace. https://msdn.microsoft.com/en-us/library/azure/mt639410.aspx

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ServiceBus.Fluent.Models.SharedAccessAuthorizationRuleInner> CreateOrUpdateAuthorizationRuleAsync (this Microsoft.Azure.Management.ServiceBus.Fluent.INamespacesOperations operations, string resourceGroupName, string namespaceName, 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.INamespacesOperations * 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 INamespacesOperations, resourceGroupName As String, namespaceName As String, authorizationRuleName As String, rights As IList(Of Nullable(Of AccessRights)), Optional cancellationToken As CancellationToken = Nothing) As Task(Of SharedAccessAuthorizationRuleInner)

Parameters

operations
INamespacesOperations

The operations group for this extension method.

resourceGroupName
String

Name of the Resource group within the Azure subscription.

namespaceName
String

The namespace name

authorizationRuleName
String

The authorizationrule name.

rights
IList<Nullable<AccessRights>>

The rights associated with the rule.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to