cURL
curl --request GET \
--url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/migration-assistant/source-ca-cert \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN'{
"x509_pem_cert": "-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----"
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}Get the source-database CA certificate for a cluster's Migration Assistant.
Returns the custom CA certificate bundle the assistant trusts when connecting to its source database. Returns an empty bundle when the assistant uses the system trust roots.
Can be used by the following roles assigned at the organization, folder or cluster scope:
- ORG_ADMIN
- CLUSTER_ADMIN
- CLUSTER_OPERATOR_WRITER
GET
/
api
/
v1
/
clusters
/
{cluster_id}
/
migration-assistant
/
source-ca-cert
cURL
curl --request GET \
--url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/migration-assistant/source-ca-cert \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN'{
"x509_pem_cert": "-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----"
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}PREVIEW
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
The ID of the cluster whose source-database CA certificate to fetch.
Response
A successful response.
MigrationAssistantSourceCACert is the CA certificate bundle a Migration Assistant trusts when connecting to its source database.
The PEM-encoded X.509 CA certificate bundle.

