cURL
curl --request POST \
--url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/client-ca-cert \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'content-type: application/json' \
--data '{"x509_pem_cert":"-----BEGIN CERTIFICATE-----..."}'{
"status": "NOT_SET",
"x509_pem_cert": "<string>"
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}Set Client CA Cert for a cluster
POST
/
api
/
v1
/
clusters
/
{cluster_id}
/
client-ca-cert
cURL
curl --request POST \
--url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/client-ca-cert \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'content-type: application/json' \
--data '{"x509_pem_cert":"-----BEGIN CERTIFICATE-----..."}'{
"status": "NOT_SET",
"x509_pem_cert": "<string>"
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}This endpoint is in Preview and subject to change. Refer to the API support policy for more details.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Response
A successful response.
- UNKNOWN_STATUS: UNKNOWN should never be used; if it is used, it indicates a bug.
- NOT_SET: NOT_SET indicates a client CA cert is not set on the cluster. New clusters won't have a client CA cert set.
- IS_SET: IS_SET indicates a client CA cert is set on the cluster.
- PENDING: PENDING indicates a client CA cert update is in flight on the cluster.
- FAILED: FAILED indicates a client CA cert update was attempted, but failed.
Available options:
NOT_SET, IS_SET, PENDING, FAILED 
