Batch Deleting Certificates
Function
This API is used to batch delete certificates.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.
URI
POST /v3/{project_id}/elb/certificates/batch-delete
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Definition: Specifies the project ID. For details about how to obtain a project ID, see Obtaining a Project ID. Constraints: N/A Range: The value can contain a maximum of 32 characters, including digits and lowercase letters. Default value: N/A |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
Definition: Specifies the token used for IAM authentication. Constraints: N/A Range: N/A Default value: N/A |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
certificates |
Yes |
Array of strings |
Specifies the IDs of the certificates to be deleted. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
certificates |
Array of BatchDeleteCertificatesResp objects |
Specifies the response body for batch deleting certificates. |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Specifies the IDs of the certificates. |
|
ret_status |
String |
Specifies the deletion result of a certificate. not found indicates that the certificate does not exist, and successful indicates that the certificate is deleted. |
|
ret_code |
String |
Specifies the error code when the deletion fails. |
Example Requests
Batch deleting certificates
POST https://{ELB_Endpoint}/v3/{project_id}/elb/certificates/batch-delete
{
"certificates" : [ "de3404aeb44f499893fb42a0b218a515", "de3404aeb44f499893fb42a0b218a123" ]
}
Example Responses
Status code: 200
Successful request.
{
"certificates" : [ {
"id" : "de3404aeb44f499893fb42a0b218a515",
"ret_status" : "successful"
}, {
"id" : "de3404aeb44f499893fb42a0b218a515",
"ret_status" : "successful"
} ],
"request_id" : "98414965-856c-4be3-8a33-3e08432a222e"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Successful request. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot