Language

OperationsPutContentResource.CreateOrUpdate Method

Definition

Creates or updates the operation supported by the given provider.

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/operations/default.
  • Operation Id. : OperationsPutContents_CreateOrUpdate.
  • Default Api Version. : 2025-10-01.
  • Resource. : OperationsPutContentResource.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ProviderHub.OperationsPutContentResource> CreateOrUpdate(Azure.WaitUntil waitUntil, Azure.ResourceManager.ProviderHub.OperationsPutContentData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * Azure.ResourceManager.ProviderHub.OperationsPutContentData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ProviderHub.OperationsPutContentResource>
override this.CreateOrUpdate : Azure.WaitUntil * Azure.ResourceManager.ProviderHub.OperationsPutContentData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ProviderHub.OperationsPutContentResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, data As OperationsPutContentData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of OperationsPutContentResource)

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.

data
OperationsPutContentData

The operations content properties supplied to the CreateOrUpdate operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

data is null.

Applies to