Deletes a server certificate.
Operation description
You cannot delete server certificates that are in use.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
slb:DeleteServerCertificate |
delete |
*certificate
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID of the Classic Load Balancer (CLB) instance. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| ServerCertificateId |
string |
Yes |
The server certificate ID. |
123157xxxxxxx_166f8204689_1714763408_7099******* |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
Examples
Success response
JSON format
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}
Error response
JSON format
{"Code":"InvalidParameter","Message":"The specified parameter is not valid.","HostId":"slb-pop.aliyuncs.com","RequestId":"0669D684-69D8-408E-A4FA-B9011E0F4E66"}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | CertificateRelatedDomainExtensionExist | The domainExtension related with this ServerCertificate exists. | |
| 400 | CertificateAndPrivateKeyIsRefered | The specified certificate is bound to listeners. You cannot delete it. | The specified Certificate is related with listeners. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.