Delete a server certificate.

Note You cannot delete a certificate that is in use.

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 DeleteServerCertificate

The action to perform. Valid value: DeleteServerCertificate

RegionId String Yes cn-hangzhou

The region to which the SLB instance belongs.

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

ServerCertificateId String Yes 123157908552****_166f8204689_1714763408_709981430

The ID of the server certificate

Response parameters

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

The ID of the request

Examples

Request example


http(s)://[Endpoint]/? Action=DeleteServerCertificate
&ServerCertificateId=1231579085529****_166f8204689_1714763408_709981430
&<CommonParameters>

Normal response examples

XML format

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

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.