Partager via


IKeyVaultClient.CreateCertificateWithHttpMessagesAsync Méthode

Définition

Crée un certificat.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.KeyVault.Models.CertificateOperation>> CreateCertificateWithHttpMessagesAsync (string vaultBaseUrl, string certificateName, Microsoft.Azure.KeyVault.Models.CertificatePolicy certificatePolicy = default, Microsoft.Azure.KeyVault.Models.CertificateAttributes certificateAttributes = default, System.Collections.Generic.IDictionary<string,string> tags = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateCertificateWithHttpMessagesAsync : string * string * Microsoft.Azure.KeyVault.Models.CertificatePolicy * Microsoft.Azure.KeyVault.Models.CertificateAttributes * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.KeyVault.Models.CertificateOperation>>
Public Function CreateCertificateWithHttpMessagesAsync (vaultBaseUrl As String, certificateName As String, Optional certificatePolicy As CertificatePolicy = Nothing, Optional certificateAttributes As CertificateAttributes = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of CertificateOperation))

Paramètres

vaultBaseUrl
String

Nom du coffre, par exemple https://myvault.vault.azure.net.

certificateName
String

Nom du certificat.

certificatePolicy
CertificatePolicy

Stratégie de gestion du certificat.

certificateAttributes
CertificateAttributes

Attributs du certificat (facultatif).

tags
IDictionary<String,String>

Métadonnées spécifiques d’application sous la forme de paires clé/valeur.

customHeaders
Dictionary<String,List<String>>

En-têtes qui seront ajoutés à la demande.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Remarques

S’il s’agit de la première version, la ressource de certificat est créée. Cette opération nécessite l’autorisation certificates/create.

S’applique à