ServiceBusNamespaceCollection.GetAll(CancellationToken) Method

Definition

Gets the available namespaces within a resource group.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces.
  • Operation Id. : SBNamespaces_ListByResourceGroup.
  • Default Api Version. : 2025-05-01-preview.
public virtual Azure.Pageable<Azure.ResourceManager.ServiceBus.ServiceBusNamespaceResource> GetAll(System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ServiceBus.ServiceBusNamespaceResource>
override this.GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ServiceBus.ServiceBusNamespaceResource>
Public Overridable Function GetAll (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