你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RecoveryServicesVaultResource.CreateVaultCertificate 方法

定义

上传资源的证书。

  • 请求路径/订阅/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/certificates/{certificateName}
  • 操作IdVaultCertificates_Create
public virtual Azure.Response<Azure.ResourceManager.RecoveryServices.Models.VaultCertificateResult> CreateVaultCertificate (string certificateName, Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesCertificateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateVaultCertificate : string * Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesCertificateContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.RecoveryServices.Models.VaultCertificateResult>
override this.CreateVaultCertificate : string * Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesCertificateContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.RecoveryServices.Models.VaultCertificateResult>
Public Overridable Function CreateVaultCertificate (certificateName As String, content As RecoveryServicesCertificateContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of VaultCertificateResult)

参数

certificateName
String

证书友好名称。

content
RecoveryServicesCertificateContent

用于上传保管库证书的输入参数。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

certificateName 是一个空字符串,预期为非空。

certificateNamecontent 为 null。

适用于