ApiOperationsExtensions.BeginCreateOrUpdateAsync Method

Definition

Creates new or updates existing specified API of the API Management service instance.

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

Parameters

operations
IApiOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

serviceName
String

The name of the API Management service.

apiId
String

API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.

parameters
ApiCreateOrUpdateParameter

Create or update parameters.

ifMatch
String

ETag of the Entity. Not required when creating an entity, but required when updating an entity.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to