共用方式為


GatewayHostnameConfigurationOperationsExtensions.CreateOrUpdateAsync Method

Definition

Creates of updates hostname configuration for a Gateway.

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

Parameters

operations
IGatewayHostnameConfigurationOperations

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'

hcId
String

Gateway hostname configuration identifier. Must be unique in the scope of parent Gateway entity.

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