CertificateClient.CreateIssuerAsync Method

Definition

Creates or replaces a certificate CertificateIssuer in the key vault. This operation requires the certificates/setissuers permission.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Security.KeyVault.Certificates.CertificateIssuer>> CreateIssuerAsync (Azure.Security.KeyVault.Certificates.CertificateIssuer issuer, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateIssuerAsync : Azure.Security.KeyVault.Certificates.CertificateIssuer * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Security.KeyVault.Certificates.CertificateIssuer>>
override this.CreateIssuerAsync : Azure.Security.KeyVault.Certificates.CertificateIssuer * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Security.KeyVault.Certificates.CertificateIssuer>>
Public Overridable Function CreateIssuerAsync (issuer As CertificateIssuer, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CertificateIssuer))

Parameters

issuer
CertificateIssuer

The CertificateIssuer to add or replace in the vault.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

The created certificate issuer.

Exceptions

Name of issuer is empty.

issuer or Name of issuer is null.

Applies to