Udostępnij za pośrednictwem


CertificateOperationsExtensions.CreateOrUpdateAsync Method

Definition

Creates or updates the certificate being used for authentication with the backend. https://azure.microsoft.com/en-us/documentation/articles/api-management-howto-mutual-certificates/

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

Parameters

operations
ICertificateOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

serviceName
String

The name of the API Management service.

certificateId
String

Identifier of the certificate entity. Must be unique in the current API Management service instance.

parameters
CertificateCreateOrUpdateParameters

Create or Update parameters.

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