Dela via


KubernetesClusterExtensionCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.KubernetesConfiguration.KubernetesClusterExtensionResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string extensionName, Azure.ResourceManager.KubernetesConfiguration.KubernetesClusterExtensionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.KubernetesConfiguration.KubernetesClusterExtensionData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.KubernetesConfiguration.KubernetesClusterExtensionResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.KubernetesConfiguration.KubernetesClusterExtensionData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.KubernetesConfiguration.KubernetesClusterExtensionResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, extensionName As String, data As KubernetesClusterExtensionData, Optional cancellationToken As CancellationToken = Nothing) As 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