Obtain the cluster certificate information  based on the cluster ID. Use this certificate to access the cluster when you use Docker client to operate the cluster. For more information, see Connect to a cluster by using Docker tools.

Request information

Request line (RequestLine)

GET /clusters/{cluster_id}/certs HTTP/1.1

Request line parameter (URI Param)

Name Type Required Description
cluster_id string Yes Custer ID

Special request header (RequestHead)

None. See Public request headers.

Request body (RequestBody)


Response information

Response line (ResponseLine)

HTTP/1.1 200 OK

Special response header (ResponseHead)

None. See Public response headers.

Response body (ResponseBody)

    "ca": "string",
    "cert": "string",
    "key": "string"

Response body explanation

Name Type Description
ca string The certificate issued by the Certification Authority (CA), ca.pem.
cert string Your public key certificate, cert.pem
key string Your private key certificate, key.pem


Request example

GET /clusters/Cccfd68c474454665ace07efce924f75f/certs HTTP/1.1
<Public request headers>

Response example

HTTP/1.1 200 OK
<Public response headers>
    "ca": "-----BEGINCERTIFICATE-----ca content-----ENDCERTIFICATE-----\n",
    "cert": "-----BEGINCERTIFICATE-----cert content-----ENDCERTIFICATE-----\n",
    "key": "-----BEGINRSAPRIVATEKEY-----key content-----ENDRSAPRIVATEKEY-----\n"