Share via


ApiCenterServiceCollection.CreateOrUpdate Method

Definition

Create or update service

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}
  • Operation Id: Services_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApiCenter.ApiCenterServiceResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string serviceName, Azure.ResourceManager.ApiCenter.ApiCenterServiceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ApiCenter.ApiCenterServiceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApiCenter.ApiCenterServiceResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ApiCenter.ApiCenterServiceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApiCenter.ApiCenterServiceResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, serviceName As String, data As ApiCenterServiceData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ApiCenterServiceResource)

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

Service name.

data
ApiCenterServiceData

The service entity.

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