CertificateClient.ImportCertificate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Imports a pre-existing certificate to the key vault. The specified certificate must be in PFX or ASCII PEM-format, and must contain the private key as well as the X.509 certificates. This operation requires the certificates/import permission.
public virtual Azure.Response<Azure.Security.KeyVault.Certificates.KeyVaultCertificateWithPolicy> ImportCertificate (Azure.Security.KeyVault.Certificates.ImportCertificateOptions importCertificateOptions, System.Threading.CancellationToken cancellationToken = default);
abstract member ImportCertificate : Azure.Security.KeyVault.Certificates.ImportCertificateOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Security.KeyVault.Certificates.KeyVaultCertificateWithPolicy>
override this.ImportCertificate : Azure.Security.KeyVault.Certificates.ImportCertificateOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Security.KeyVault.Certificates.KeyVaultCertificateWithPolicy>
Public Overridable Function ImportCertificate (importCertificateOptions As ImportCertificateOptions, Optional cancellationToken As CancellationToken = Nothing) As Response(Of KeyVaultCertificateWithPolicy)
Parameters
- importCertificateOptions
- ImportCertificateOptions
The details of the certificate to import to the key vault.
- cancellationToken
- CancellationToken
A CancellationToken controlling the request lifetime.
Returns
The imported certificate and policy.
Exceptions
Name of importCertificateOptions
is empty.
importCertificateOptions
or Name of importCertificateOptions
is null.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應