Condividi tramite


ContainerServiceFleetManagedNamespaceCollection.CreateOrUpdateAsync Method

Definition

Create a FleetManagedNamespace

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}.
  • Operation Id. : FleetManagedNamespaces_CreateOrUpdate.
  • Default Api Version. : 2026-02-01-preview.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetManagedNamespaceResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string managedNamespaceName, Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetManagedNamespaceData data, Azure.MatchConditions matchConditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetManagedNamespaceData * Azure.MatchConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetManagedNamespaceResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetManagedNamespaceData * Azure.MatchConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetManagedNamespaceResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, managedNamespaceName As String, data As ContainerServiceFleetManagedNamespaceData, Optional matchConditions As MatchConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ContainerServiceFleetManagedNamespaceResource))

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 fleet managed namespace resource.

data
ContainerServiceFleetManagedNamespaceData

Resource create parameters.

matchConditions
MatchConditions

The content to send as the request conditions of the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

managedNamespaceName or data is null.

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

Applies to