Compartilhar via


NetworkCloudKubernetesClusterCollection.CreateOrUpdate Method

Definition

Create a new Kubernetes cluster or update the properties of the existing one.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}
  • Operation Id: KubernetesClusters_CreateOrUpdate
  • Default Api Version: 2024-06-01-preview
  • Resource: NetworkCloudKubernetesClusterResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkCloud.NetworkCloudKubernetesClusterResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string kubernetesClusterName, Azure.ResourceManager.NetworkCloud.NetworkCloudKubernetesClusterData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.NetworkCloud.NetworkCloudKubernetesClusterData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkCloud.NetworkCloudKubernetesClusterResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.NetworkCloud.NetworkCloudKubernetesClusterData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkCloud.NetworkCloudKubernetesClusterResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, kubernetesClusterName As String, data As NetworkCloudKubernetesClusterData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of NetworkCloudKubernetesClusterResource)

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.

kubernetesClusterName
String

The name of the Kubernetes cluster.

data
NetworkCloudKubernetesClusterData

The request body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

kubernetesClusterName or data is null.

Applies to