CertificateClient.UpdateCertificatePolicy 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.
Updates the CertificatePolicy of the specified certificate. This operation requires the certificate/update permission.
public virtual Azure.Response<Azure.Security.KeyVault.Certificates.CertificatePolicy> UpdateCertificatePolicy (string certificateName, Azure.Security.KeyVault.Certificates.CertificatePolicy policy, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateCertificatePolicy : string * Azure.Security.KeyVault.Certificates.CertificatePolicy * System.Threading.CancellationToken -> Azure.Response<Azure.Security.KeyVault.Certificates.CertificatePolicy>
override this.UpdateCertificatePolicy : string * Azure.Security.KeyVault.Certificates.CertificatePolicy * System.Threading.CancellationToken -> Azure.Response<Azure.Security.KeyVault.Certificates.CertificatePolicy>
Public Overridable Function UpdateCertificatePolicy (certificateName As String, policy As CertificatePolicy, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CertificatePolicy)
Parameters
- certificateName
- String
The name of the certificate whose policy should be updated.
- policy
- CertificatePolicy
The updated policy for the specified certificate.
- cancellationToken
- CancellationToken
A CancellationToken controlling the request lifetime.
Returns
The updated certificate policy.
Exceptions
certificateName
is empty.
certificateName
is null.
Applies to
Azure SDK for .NET