ManagedClusterNamespaceCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/managedNamespaces/{managedNamespaceName}.
  • Operation Id. : ManagedNamespaces_Get.
  • Default Api Version. : 2026-01-02-preview.
public virtual Azure.NullableResponse<Azure.ResourceManager.ContainerService.ManagedClusterNamespaceResource> GetIfExists(string managedNamespaceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ContainerService.ManagedClusterNamespaceResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ContainerService.ManagedClusterNamespaceResource>
Public Overridable Function GetIfExists (managedNamespaceName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ManagedClusterNamespaceResource)

Parameters

managedNamespaceName
String

The name of the managed namespace.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

managedNamespaceName is null.

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

Applies to