ApiManagementServiceCollection.CreateOrUpdate Method

Definition

Creates or updates an API Management service. This is long running operation and could take several minutes to complete.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}
  • Operation Id: ApiManagementService_CreateOrUpdate
  • Default Api Version: 2023-03-01-preview
  • Resource: ApiManagementServiceResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApiManagement.ApiManagementServiceResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string serviceName, Azure.ResourceManager.ApiManagement.ApiManagementServiceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ApiManagement.ApiManagementServiceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApiManagement.ApiManagementServiceResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ApiManagement.ApiManagementServiceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApiManagement.ApiManagementServiceResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, serviceName As String, data As ApiManagementServiceData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ApiManagementServiceResource)

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.

serviceName
String

The name of the API Management service.

data
ApiManagementServiceData

Parameters supplied to the CreateOrUpdate API Management service operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

serviceName or data is null.

Applies to