curl --request PATCH \
--url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/migration-assistant/source-ca-cert \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
--json '{"cluster_id":"9f8e7d6c-5b4a-3210-fedc-ba9876543210","x509_pem_cert":"-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----"}'{
"x509_pem_cert": "-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----"
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}Update the source-database CA certificate for a cluster's Migration Assistant.
Replaces the custom CA certificate bundle the assistant trusts when connecting to its source database. Returns the updated certificate bundle.
Can be used by the following roles assigned at the organization, folder or cluster scope:
- ORG_ADMIN
- CLUSTER_ADMIN
curl --request PATCH \
--url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/migration-assistant/source-ca-cert \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
--json '{"cluster_id":"9f8e7d6c-5b4a-3210-fedc-ba9876543210","x509_pem_cert":"-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----"}'{
"x509_pem_cert": "-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----"
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}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 update.
Body
UpdateMigrationAssistantSourceCACertRequest replaces the source-database CA certificate bundle for a cluster's Migration Assistant.
The PEM-encoded X.509 CA certificate bundle to apply.
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.

