Language

MetricNamespaceCollection.GetAll(CancellationToken) Method

Definition

Lists metric namespaces for an Azure Monitor Workspace. Resource properties may be omitted in collection responses.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/accounts/{azureMonitorWorkspaceName}/metricsContainers/{metricsContainerName}/namespaces.
  • Operation Id. : MetricNamespaces_ListByMetricsContainer.
  • Default Api Version. : 2026-09-03-preview.
public virtual Azure.Pageable<Azure.ResourceManager.Monitor.Workspaces.MetricNamespaceResource> GetAll(System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.Workspaces.MetricNamespaceResource>
override this.GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.Workspaces.MetricNamespaceResource>
Public Overridable Function GetAll (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of MetricNamespaceResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to