Udostępnij przez


ManagedClusterNamespaceCollection.CreateOrUpdate Method

Definition

Creates or updates a namespace managed by ARM for the specified managed cluster. Users can configure aspects like resource quotas, network ingress/egress policies, and more. See aka.ms/aks/managed-namespaces for more details.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/managedNamespaces/{managedNamespaceName}
  • Operation Id: ManagedNamespaces_CreateOrUpdate
  • Default Api Version: 2025-10-01
  • Resource: ManagedClusterNamespaceResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerService.ManagedClusterNamespaceResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string managedNamespaceName, Azure.ResourceManager.ContainerService.ManagedClusterNamespaceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ContainerService.ManagedClusterNamespaceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerService.ManagedClusterNamespaceResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ContainerService.ManagedClusterNamespaceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerService.ManagedClusterNamespaceResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, managedNamespaceName As String, data As ManagedClusterNamespaceData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ManagedClusterNamespaceResource)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

managedNamespaceName
String

The name of the managed namespace.

data
ManagedClusterNamespaceData

The namespace to create or update.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

managedNamespaceName or data is null.

Applies to