Share via


ApiOperationsExtensions.CreateOrUpdate Method

Definition

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

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

Returns

Applies to