Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ServiceBusManagementClient

Package version

All operations return promises that resolve to an object that has the relevant output. These objects also have a property called _response that you can use if you want to access the direct response from the service.

Hierarchy

  • any
    • ServiceBusManagementClient

Index

Constructors

constructor

Methods

createQueue

  • Creates a queue with given name, configured using the given options

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityAlreadyExistsError when requested messaging entity already exists,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code QuotaExceededError when requested operation fails due to quote limits exceeding from service side,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • queueName: string
    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<QueueResponse>

  • Creates a queue configured using the given options

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityAlreadyExistsError when requested messaging entity already exists,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code QuotaExceededError when requested operation fails due to quote limits exceeding from service side,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • queue: QueueDescription

      Options to configure the Queue being created. For example, you can configure a queue to support partitions or sessions.

    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<QueueResponse>

createRule

  • createRule(topicName: string, subscriptionName: string, rule: RuleDescription, operationOptions?: OperationOptions): Promise<RuleResponse>
  • Creates a rule with given name, configured using the given options.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityAlreadyExistsError when requested messaging entity already exists,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code QuotaExceededError when requested operation fails due to quote limits exceeding from service side,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • subscriptionName: string
    • rule: RuleDescription
    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<RuleResponse>

createSubscription

  • Creates a subscription with given name, configured using the given options

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityAlreadyExistsError when requested messaging entity already exists,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code QuotaExceededError when requested operation fails due to quote limits exceeding from service side,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • subscriptionName: string
    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<SubscriptionResponse>

  • Creates a subscription with given name, configured using the given options

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityAlreadyExistsError when requested messaging entity already exists,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code QuotaExceededError when requested operation fails due to quote limits exceeding from service side,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • subscription: SubscriptionDescription

      Options to configure the Subscription being created. For example, you can configure a Subscription to support partitions or sessions.

    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<SubscriptionResponse>

createTopic

  • Creates a topic with given name, configured using the given options

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityAlreadyExistsError when requested messaging entity already exists,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code QuotaExceededError when requested operation fails due to quote limits exceeding from service side,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<TopicResponse>

  • Creates a topic with given name, configured using the given options

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityAlreadyExistsError when requested messaging entity already exists,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code QuotaExceededError when requested operation fails due to quote limits exceeding from service side,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topic: TopicDescription

      Options to configure the Topic being created. For example, you can configure a topic to support partitions or sessions.

    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<TopicResponse>

deleteQueue

  • deleteQueue(queueName: string, operationOptions?: OperationOptions): Promise<Response>
  • Deletes a queue.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • queueName: string
    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<Response>

deleteRule

  • deleteRule(topicName: string, subscriptionName: string, ruleName: string, operationOptions?: OperationOptions): Promise<Response>
  • Deletes a rule.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • subscriptionName: string
    • ruleName: string
    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<Response>

deleteSubscription

  • deleteSubscription(topicName: string, subscriptionName: string, operationOptions?: OperationOptions): Promise<Response>
  • Deletes a subscription.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • subscriptionName: string
    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<Response>

deleteTopic

  • deleteTopic(topicName: string, operationOptions?: OperationOptions): Promise<Response>
  • Deletes a topic.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<Response>

getNamespaceProperties

getQueue

  • getQueue(queueName: string, operationOptions?: OperationOptions): Promise<QueueResponse>
  • Returns an object representing the Queue and its properties. If you want to get the Queue runtime info like message count details, use getQueueRuntimeInfo API.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • queueName: string
    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<QueueResponse>

getQueueRuntimeInfo

  • Returns an object representing the Queue runtime info like message count details.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • queueName: string
    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<QueueRuntimeInfoResponse>

getQueues

  • Returns a list of objects, each representing a Queue along with its properties. If you want to get the runtime info of the queues like message count, use getQueuesRuntimeInfo API instead.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • Optional options: ListRequestOptions & OperationOptions

      The options include the maxCount and the count of entities to skip, the operation options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<QueuesResponse>

getQueuesRuntimeInfo

  • Returns a list of objects, each representing a Queue's runtime info like message count details.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • Optional options: ListRequestOptions & OperationOptions

      The options include the maxCount and the count of entities to skip, the operation options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<QueuesRuntimeInfoResponse>

getRule

  • getRule(topicName: string, subscriptionName: string, ruleName: string, operationOptions?: OperationOptions): Promise<RuleResponse>
  • Returns an object representing the Rule with the given name along with all its properties.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • subscriptionName: string
    • ruleName: string
    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<RuleResponse>

getRules

  • Lists existing rules.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • subscriptionName: string
    • Optional options: ListRequestOptions & OperationOptions

      The options include the maxCount and the count of entities to skip, the operation options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<RulesResponse>

getSubscription

  • getSubscription(topicName: string, subscriptionName: string, operationOptions?: OperationOptions): Promise<SubscriptionResponse>
  • Returns an object representing the Subscription and its properties. If you want to get the Subscription runtime info like message count details, use getSubscriptionRuntimeInfo API.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • subscriptionName: string
    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<SubscriptionResponse>

getSubscriptionRuntimeInfo

  • Returns an object representing the Subscription runtime info like message count details.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • subscriptionName: string
    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<SubscriptionRuntimeInfoResponse>

getSubscriptions

  • Returns a list of objects, each representing a Subscription along with its properties. If you want to get the runtime info of the subscriptions like message count, use getSubscriptionsRuntimeInfo API instead.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • Optional options: ListRequestOptions & OperationOptions

      The options include the maxCount and the count of entities to skip, the operation options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<SubscriptionsResponse>

getSubscriptionsRuntimeInfo

  • Returns a list of objects, each representing a Subscription's runtime info like message count details.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • Optional options: ListRequestOptions & OperationOptions

      The options include the maxCount and the count of entities to skip, the operation options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<SubscriptionsRuntimeInfoResponse>

getTopic

  • getTopic(topicName: string, operationOptions?: OperationOptions): Promise<TopicResponse>
  • Returns an object representing the Topic and its properties. If you want to get the Topic runtime info like subscription count details, use getTopicRuntimeInfo API.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<TopicResponse>

getTopicRuntimeInfo

  • Returns an object representing the Topic runtime info like subscription count.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<TopicRuntimeInfoResponse>

getTopics

  • Returns a list of objects, each representing a Topic along with its properties. If you want to get the runtime info of the topics like subscription count, use getTopicsRuntimeInfo API instead.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • Optional options: ListRequestOptions & OperationOptions

      The options include the maxCount and the count of entities to skip, the operation options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<TopicsResponse>

getTopicsRuntimeInfo

  • Returns a list of objects, each representing a Topic's runtime info like subscription count.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • Optional options: ListRequestOptions & OperationOptions

      The options include the maxCount and the count of entities to skip, the operation options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<TopicsRuntimeInfoResponse>

queueExists

  • queueExists(queueName: string, operationOptions?: OperationOptions): Promise<boolean>

subscriptionExists

  • subscriptionExists(topicName: string, subscriptionName: string, operationOptions?: OperationOptions): Promise<boolean>

topicExists

  • topicExists(topicName: string, operationOptions?: OperationOptions): Promise<boolean>

updateQueue

  • Updates the queue based on the queue description provided. All properties on the queue description must be set even though only a subset of them are actually updatable. Therefore, the suggested flow is to use getQueue() to get the queue description with all properties set, update as needed and then pass it to updateQueue(). See https://docs.microsoft.com/en-us/rest/api/servicebus/update-queue for more details.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • queue: QueueDescription

      Object representing the queue with one or more of the below properties updated

      • defaultMessageTimeToLive
      • lockDuration
      • deadLetteringOnMessageExpiration
      • duplicateDetectionHistoryTimeWindow
      • maxDeliveryCount
    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<QueueResponse>

updateRule

  • updateRule(topicName: string, subscriptionName: string, rule: RuleDescription, operationOptions?: OperationOptions): Promise<RuleResponse>
  • Updates properties on the Rule by the given name based on the given options.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • subscriptionName: string
    • rule: RuleDescription

      Options to configure the Rule being updated. For example, you can configure the filter to apply on associated Topic/Subscription.

    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<RuleResponse>

updateSubscription

  • Updates the subscription based on the subscription description provided. All properties on the subscription description must be set even though only a subset of them are actually updatable. Therefore, the suggested flow is to use getSubscription() to get the subscription description with all properties set, update as needed and then pass it to updateSubscription().

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • subscription: SubscriptionDescription

      Object representing the subscription with one or more of the below properties updated

      • lockDuration
      • deadLetteringOnMessageExpiration
      • maxDeliveryCount
    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<SubscriptionResponse>

updateTopic

  • Updates the topic based on the topic description provided. All properties on the topic description must be set even though only a subset of them are actually updatable. Therefore, the suggested flow is to use getTopic() to get the topic description with all properties set, update as needed and then pass it to updateTopic(). See https://docs.microsoft.com/en-us/rest/api/servicebus/update-topic for more details.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topic: TopicDescription

      Object representing the topic with one or more of the below properties updated

      • defaultMessageTimeToLive
      • duplicateDetectionHistoryTimeWindow
    • Optional operationOptions: OperationOptions

      The options that can be used to abort, trace and control other configurations on the HTTP request.

      Following are errors that can be expected from this operation

    Returns Promise<TopicResponse>

Generated using TypeDoc