Share via


ApiManagementServiceOperationsExtensions.CreateOrUpdateAsync Method

Definition

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

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ApiManagement.Models.ApiManagementServiceResource> CreateOrUpdateAsync (this Microsoft.Azure.Management.ApiManagement.IApiManagementServiceOperations operations, string resourceGroupName, string serviceName, Microsoft.Azure.Management.ApiManagement.Models.ApiManagementServiceResource parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.ApiManagement.IApiManagementServiceOperations * string * string * Microsoft.Azure.Management.ApiManagement.Models.ApiManagementServiceResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ApiManagement.Models.ApiManagementServiceResource>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IApiManagementServiceOperations, resourceGroupName As String, serviceName As String, parameters As ApiManagementServiceResource, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ApiManagementServiceResource)

Parameters

operations
IApiManagementServiceOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

serviceName
String

The name of the API Management service.

parameters
ApiManagementServiceResource

Parameters supplied to the CreateOrUpdate API Management service operation.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to