Udostępnij za pośrednictwem


GatewayApiOperationsExtensions.CreateOrUpdate Method

Definition

Adds an API to the specified Gateway.

public static Microsoft.Azure.Management.ApiManagement.Models.ApiContract CreateOrUpdate (this Microsoft.Azure.Management.ApiManagement.IGatewayApiOperations operations, string resourceGroupName, string serviceName, string gatewayId, string apiId, Microsoft.Azure.Management.ApiManagement.Models.AssociationContract parameters = default);
static member CreateOrUpdate : Microsoft.Azure.Management.ApiManagement.IGatewayApiOperations * string * string * string * string * Microsoft.Azure.Management.ApiManagement.Models.AssociationContract -> Microsoft.Azure.Management.ApiManagement.Models.ApiContract
<Extension()>
Public Function CreateOrUpdate (operations As IGatewayApiOperations, resourceGroupName As String, serviceName As String, gatewayId As String, apiId As String, Optional parameters As AssociationContract = Nothing) As 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

Returns

Applies to