ConnectedClusterStorageClassCollection.CreateOrUpdateAsync Method

Definition

Create a StorageClassResource

  • Request Path: /{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}
  • Operation Id: StorageClassResource_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: ConnectedClusterStorageClassResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerOrchestratorRuntime.ConnectedClusterStorageClassResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string storageClassName, Azure.ResourceManager.ContainerOrchestratorRuntime.ConnectedClusterStorageClassData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ContainerOrchestratorRuntime.ConnectedClusterStorageClassData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerOrchestratorRuntime.ConnectedClusterStorageClassResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ContainerOrchestratorRuntime.ConnectedClusterStorageClassData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerOrchestratorRuntime.ConnectedClusterStorageClassResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, storageClassName As String, data As ConnectedClusterStorageClassData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ConnectedClusterStorageClassResource))

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.

storageClassName
String

The name of the the storage class.

data
ConnectedClusterStorageClassData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

storageClassName or data is null.

Applies to