最近更新时间:2023.11.16 15:51:42
首次发布时间:2021.08.31 10:37:28
调用 DeleteCertificate 删除一张证书。
名称 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DeleteCertificate | 要执行的操作,取值为DeleteCertificate。 |
Version | String | 是 | 2020-04-01 | API版本信息,当前版本为:2020-04-01。 |
CertificateId | String | 是 | cert-3tjuxoukkq3vj0ww**** | 证书ID。您可以调用DescribeCertificates接口获取证书ID。 |
字段 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 20210811152539010225146063030**** | 请求ID |
GET /?Action=DeleteCertificate&Version=2020-04-01&CertificateId=cert-3tjuxoukkq3vj0ww**** HTTP/1.1 Host: open.volcengineapi.com Region: cn-beijing Service: clb
{ "ResponseMetadata": { "RequestId": "20210811152539010225146063030****", "Action": "DeleteCertificate", "Version": "2020-04-01", "Service": "clb", "Region": "cn-beijing" }, "Result": { "RequestId": "20210811152539010225146063030****" } }
此处仅展示当前API的错误码,更多错误码请参见公共错误码。
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | MissingParameter | The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, the 'XXX'. | 该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如XXX。 说明 其中,XXX表示缺少的参数名称。 |
400 | InvalidCertificate.InUse | The specified Certificate is in use. | 指定的证书在占用中。 |
400 | InvalidCertificate.InvalidStatus | The specified Certificate is not in the correct status for the request. | 指定的证书所处状态无法响应该请求。 |
403 | InvalidResourceType.ServcieManaged | The specified ResourceType is managed by a service. | 指定的资源是服务托管资源。 |
404 | InvalidCertificate.NotFound | The specified Certificate does not exist. | 指定的证书不存在。 |