Share via


GatewayApiOperationsExtensions.CreateOrUpdateAsync Method

Definition

Adds an API to the specified Gateway.

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

Parameters

operations
IGatewayApiOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

serviceName
String

The name of the API Management service.

gatewayId
String

Gateway entity identifier. Must be unique in the current API Management service instance. Must not have value 'managed'

apiId
String

API identifier. Must be unique in the current API Management service instance.

parameters
AssociationContract
cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to