ManagementClient.UpdateRuleAsync Method

Definition

Updates an existing rule for a topic-subscription.

public virtual System.Threading.Tasks.Task<Microsoft.Azure.ServiceBus.RuleDescription> UpdateRuleAsync (string topicPath, string subscriptionName, Microsoft.Azure.ServiceBus.RuleDescription ruleDescription, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateRuleAsync : string * string * Microsoft.Azure.ServiceBus.RuleDescription * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.ServiceBus.RuleDescription>
override this.UpdateRuleAsync : string * string * Microsoft.Azure.ServiceBus.RuleDescription * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.ServiceBus.RuleDescription>
Public Overridable Function UpdateRuleAsync (topicPath As String, subscriptionName As String, ruleDescription As RuleDescription, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RuleDescription)

Parameters

topicPath
String

Path of the topic.

subscriptionName
String

Name of the subscription.

ruleDescription
RuleDescription

A RuleDescription object describing the attributes with which the rule will be updated.

cancellationToken
CancellationToken

Returns

The RuleDescription of the updated rule.

Exceptions

rule descriptor is null.

Described topic/subscription/rule was not found.

The operation times out.

No sufficient permission to perform this operation. You should check to ensure that your ManagementClient has the correct TokenProvider credentials to perform this operation.

Either the specified size in the description is not supported or the maximum allowable quota has been reached. You must specify one of the supported size values, delete existing entities, or increase your quota size.

The server is busy. You should wait before you retry the operation.

An internal error or unexpected exception occurs.

Applies to