You can call the DeleteCACertificate API to delete a CA certificate.

Note CA certificates in use cannot be deleted.

Debug

Click here to perform a debug operation in OpenAPI Explorer and automatically generate an SDK code example.

Request parameters

Name Type Required? Example value Description
Action String Yes DeleteCACertificate

The action to perform. Valid value: DeleteCACertificate.

RegionId String Yes cn-hangzhou

The region to which the CA certificate belongs.

You can query the region ID by calling the DescribeRegions API.

CACertificateId String Yes 1231579085529123_15c73d77203_-986300114_-2110544408

The ID of the CA certificate

Response parameters

Name Type Example value Description
RequestId String CEF72CEB-54B6-4AE8-B225-F876FF7BA984

The ID of the request

Examples

Request example


	https://slb.aliyuncs.com/
	&Action=DeleteCACertificate
	&RegionId=cn-hangzhou
	&CACertificateId=idkp-234-cn-test-02
	&<CommonParameters>

Normal response examples

XML format

<DeleteCACertificateResponse>
  <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>
</DeleteCACertificateResponse>

JSON format

{
	"RequestId":" CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}

Error response example

JSON format

{
	"Message":"The specified parameter is not valid.",
	"RequestId":"0669D684-69D8-408E-A4FA-B9011E0F4E66",
	"HostId":"slb-pop.aliyuncs.com",
	"Code":"InvalidParameter"
}

Error codes

Click here to view the error codes.