Querying the Certificate List
Function
This API is used to query the certificate list.
Debugging
You can debug this API through automatic authentication in API Explorer.
URI
GET /v1.0/{project_id}/clusters/{cluster_id}/certs
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID and name, see Obtaining the Project ID and Name. |
cluster_id |
Yes |
String |
ID of the cluster you want to query. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
start |
No |
String |
Start value of the query. The default value is 1, indicating that the query starts from the first certificate. |
limit |
No |
String |
Number of certificates to be queried. The default value is 10, indicating that 10 certificates are queried at a time. |
certsType |
No |
String |
Certificate type. The default value is defaultCerts. If this parameter is not specified, the user-defined certificate list is queried by default. |
Request Parameters
None
Response Parameters
None
Example Requests
Obtain cluster upload records.
GET /v1.0/6204a5bd270343b5885144cf9c8c158d/clusters/4f3deec3-efa8-4598-bf91-560aad1377a3/certs
Example Responses
Status code: 200
Request succeeded.
{ "certsRecords" : [ { "id" : "2630b1ab-47f8-445c-a4e0-5de74683d767", "status" : "available", "fileLocation" : "/rds/datastore/logstash/v7.10.0/package/logstash-7.10.0/extend/custom_certs/", "fileName" : "xxxx.cer", "updateAt" : "2023-06-14T06:54:36" } ], "totalSize" : 1 }
Status Codes
Status Code |
Description |
---|---|
200 |
Request succeeded. |
400 |
Invalid request. Modify the request instead of retrying. |
409 |
The request cannot be processed due to a conflict. This status code indicates that the resource that the client attempts to create already exits, or the requested update failed due to a conflict. |
412 |
The server does not meet one of the requirements that the requester puts on the 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