TopicsOperationsExtensions.CreateOrUpdateAuthorizationRuleAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an authorizatio rule for the specified topic. https://msdn.microsoft.com/en-us/library/azure/mt720678.aspx
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ServiceBus.Fluent.Models.SharedAccessAuthorizationRuleInner> CreateOrUpdateAuthorizationRuleAsync (this Microsoft.Azure.Management.ServiceBus.Fluent.ITopicsOperations operations, string resourceGroupName, string namespaceName, string topicName, 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.ITopicsOperations * 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 ITopicsOperations, resourceGroupName As String, namespaceName As String, topicName As String, authorizationRuleName As String, rights As IList(Of Nullable(Of AccessRights)), Optional cancellationToken As CancellationToken = Nothing) As Task(Of SharedAccessAuthorizationRuleInner)
Parameters
- operations
- ITopicsOperations
The operations group for this extension method.
- resourceGroupName
- String
Name of the Resource group within the Azure subscription.
- namespaceName
- String
The namespace name
- topicName
- String
The topic name.
- authorizationRuleName
- String
The authorizationrule name.
- rights
- IList<Nullable<AccessRights>>
The rights associated with the rule.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET