Share via


MockableServiceBusSubscriptionResource.GetServiceBusNamespaces Method

Definition

Gets all the available namespaces within the subscription, irrespective of the resource groups.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/namespaces
  • Operation Id: Namespaces_List
  • Default Api Version: 2022-10-01-preview
  • Resource: ServiceBusNamespaceResource
public virtual Azure.Pageable<Azure.ResourceManager.ServiceBus.ServiceBusNamespaceResource> GetServiceBusNamespaces (System.Threading.CancellationToken cancellationToken = default);
abstract member GetServiceBusNamespaces : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ServiceBus.ServiceBusNamespaceResource>
override this.GetServiceBusNamespaces : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ServiceBus.ServiceBusNamespaceResource>
Public Overridable Function GetServiceBusNamespaces (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ServiceBusNamespaceResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of ServiceBusNamespaceResource that may take multiple service requests to iterate over.

Applies to