GatewayApiOperationsExtensions.CreateOrUpdateAsync(IGatewayApiOperations, String, String, String, String, AssociationContract, CancellationToken) 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
System.String

The name of the resource group.

serviceName
System.String

The name of the API Management service.

gatewayId
System.String

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

apiId
System.String

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

parameters
AssociationContract
cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<ApiContract>

Applies to