Share via


MockableDeviceRegistryResourceGroupResource.GetDeviceRegistryNamespace Method

Definition

Get a Namespace

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}.
  • Operation Id. : Namespaces_Get.
  • Default Api Version. : 2026-03-01-preview.
public virtual Azure.Response<Azure.ResourceManager.DeviceRegistry.DeviceRegistryNamespaceResource> GetDeviceRegistryNamespace(string namespaceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDeviceRegistryNamespace : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DeviceRegistry.DeviceRegistryNamespaceResource>
override this.GetDeviceRegistryNamespace : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DeviceRegistry.DeviceRegistryNamespaceResource>
Public Overridable Function GetDeviceRegistryNamespace (namespaceName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DeviceRegistryNamespaceResource)

Parameters

namespaceName
String

The name of the namespace.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

namespaceName is null.

namespaceName is an empty string, and was expected to be non-empty.

Applies to