edit-icon download-icon

Obtain cluster certificate

Last Updated: Jan 10, 2018

Description

Obtain the cluster certificate information according to 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)

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

Request line parameter (URI Param)

Name Type Required? Description
cluster_id string Yes Cluster ID

Special request header (RequestHead)

None. See Public request headers.

Request body (RequestBody)

None

Response information

Response line (ResponseLine)

  1. HTTP/1.1 200 OK

Special response header (ResponseHead)

None. See Public response headers.

Response body (ResponseBody)

  1. {
  2. "ca": "string",
  3. "cert": "string",
  4. "key": "string"
  5. }

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.

Example

Request example

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

Return example

  1. HTTP/1.1 200 OK
  2. <Public response header>
  3. {
  4. "ca": "-----BEGINCERTIFICATE-----ca content-----ENDCERTIFICATE-----\n",
  5. "cert": "-----BEGINCERTIFICATE-----cert content-----ENDCERTIFICATE-----\n",
  6. "key": "-----BEGINRSAPRIVATEKEY-----key content-----ENDRSAPRIVATEKEY-----\n"
  7. }
Thank you! We've received your feedback.