다음을 통해 공유


KubernetesClusterExtensionCollection.CreateOrUpdateAsync Method

Definition

Create a new Kubernetes Cluster Extension.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/extensions/{extensionName}
  • Operation Id: Extensions_Create
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.KubernetesConfiguration.KubernetesClusterExtensionResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string extensionName, Azure.ResourceManager.KubernetesConfiguration.KubernetesClusterExtensionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.KubernetesConfiguration.KubernetesClusterExtensionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.KubernetesConfiguration.KubernetesClusterExtensionResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.KubernetesConfiguration.KubernetesClusterExtensionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.KubernetesConfiguration.KubernetesClusterExtensionResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, extensionName As String, data As KubernetesClusterExtensionData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of KubernetesClusterExtensionResource))

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.

extensionName
String

Name of the Extension.

data
KubernetesClusterExtensionData

Properties necessary to Create an Extension.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

extensionName or data is null.

Applies to