Updates the status of a certificate.
Operation description
In this example, the status of the certificate whose ID is 9a28de48-8d8b-484d-a766-dec4**** is updated to INACTIVE.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| CertificateId | string | Yes | The ID of the certificate. The ID must be globally unique in Certificates Manager. | 9a28de48-8d8b-484d-a766-dec4**** |
| Status | string | Yes | The status of the certificate. Valid values:
Note
If the certificate is in the REVOKED state, you can use the certificate only to verify a signature, but not to generate a signature.
| INACTIVE |
For more information about common request parameters, see Common parameters.
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "e3f57fe0-9ded-40b0-9caf-a3815f2148c1"
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is not valid. | An invalid value is specified for the parameter. |
| 404 | Certificate.NotFound | The specified certificate is not found. | The specified certificate does not exist. |
| 404 | InvalidAccessKeyId.NotFound | The Access Key ID provided does not exist in our records. | - |
For a list of error codes, visit the Service error codes.
