Compartir a través de


RecoveryServicesVaultResource.CreateVaultCertificateAsync Método

Definición

Carga un certificado para un recurso.

  • Ruta de acceso de solicitud/Suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/certificates/{certificateName}
  • IdVaultCertificates_Create de operaciones
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServices.Models.VaultCertificateResult>> CreateVaultCertificateAsync (string certificateName, Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesCertificateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateVaultCertificateAsync : string * Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesCertificateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServices.Models.VaultCertificateResult>>
override this.CreateVaultCertificateAsync : string * Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesCertificateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServices.Models.VaultCertificateResult>>
Public Overridable Function CreateVaultCertificateAsync (certificateName As String, content As RecoveryServicesCertificateContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of VaultCertificateResult))

Parámetros

certificateName
String

Nombre descriptivo del certificado.

content
RecoveryServicesCertificateContent

Parámetros de entrada para cargar el certificado del almacén.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

certificateName es una cadena vacía y se esperaba que no estuviera vacía.

certificateName o content es null.

Se aplica a