Updates the status of a certificate.
In this example, the status of the certificate whose ID is 9a28de48-8d8b-484d-a766-dec4****
is updated to INACTIVE.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | UpdateCertificateStatus |
The operation that you want to perform. Set the value to UpdateCertificateStatus. |
CertificateId | String | Yes | 9a28de48-8d8b-484d-a766-dec4**** |
The ID of the certificate. The ID must be globally unique in Certificates Manager. |
Status | String | Yes | INACTIVE |
The status of the certificate. Valid values:
|
For more information about common request parameters, see Common parameters.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | e3f57fe0-9ded-40b0-9caf-a3815f2148c1 |
The ID of the request, which is used to locate and troubleshoot issues. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=UpdateCertificateStatus
&CertificateId=9a28de48-8d8b-484d-a766-dec4****
&Status=INACTIVE
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<UpdateCertificateStatusResponse>
<RequestId>e3f57fe0-9ded-40b0-9caf-a3815f2148c1</RequestId>
</UpdateCertificateStatusResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "e3f57fe0-9ded-40b0-9caf-a3815f2148c1"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParameter | The specified parameter is not valid. | The error message returned because an invalid value is specified for the parameter. |
404 | Certificate.NotFound | The specified certificate is not found. | The error message returned because the specified certificate is invalid. |
404 | InvalidAccessKeyId.NotFound | The Access Key ID provided does not exist in our records. | The error message returned because the specified AccessKey ID does not exist. |
For a list of error codes, visit the API Error Center.