Update a Database Connection
Changed onUpdate the specified Database Connection.<br/><br/>Provide a complete representation of the Database Connection that you want to update in the request body. This endpoint does not support partial updates. Cribl removes any omitted fields when updating the Database Connection.<br/><br/>Confirm that the configuration in your request body is correct before sending the request. If the configuration is incorrect, the updated Database Connection might not function as expected.
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- Auth
- HTTP bearer
- or OAuth 2Client credentialsToken URL: https://login.cribl.cloud/oauth/token
Path parameters
The <code>id</code> of the Database Connection to update.
Request body
Example request
{
"connectionString": "mysql://yourUsername:yourPassword@mysql.example.com:3306/production?ssl=true",
"connectionTimeout": 10000,
"credentialsSecret": "mssql-production-credentials",
"credsSecrets": "oracle-production-credentials",
"description": "Production MySQL database for customer data",
"host": "'myId-dt5egqq7iq1hj6kh.env.trial.example.com'\nHostname, currently intended for Teradata",
"id": "mysql-prod-db",
"password": "yourPassword",
"requestTimeout": 30000,
"sslmode": "VERIFY-FULL",
"tags": "production,mysql,customer-data",
"textSecret": "mysql-production-connection",
"user": "yourUsername"
}Response
The updated Database Connection in a response envelope with <code>count</code> and <code>items</code>.
Example response
{
"count": 1,
"items": [
{
"connectionString": "mysql://yourUsername:yourPassword@mysql.example.com:3306/production?ssl=true",
"connectionTimeout": 10000,
"credentialsSecret": "mssql-production-credentials",
"credsSecrets": "oracle-production-credentials",
"description": "Production MySQL database for customer data",
"host": "'myId-dt5egqq7iq1hj6kh.env.trial.example.com'\nHostname, currently intended for Teradata",
"id": "mysql-prod-db",
"password": "yourPassword",
"requestTimeout": 30000,
"sslmode": "VERIFY-FULL",
"tags": "production,mysql,customer-data",
"textSecret": "mysql-production-connection",
"user": "yourUsername"
}
]
}Changes
- warning
added the new
keypairenum value to the//response property for the response status - warning
added the new
snowflakeenum value to the//response property for the response status - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new
keypairenum value to the request property - info
added the new
snowflakeenum value to the request property - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- warning
- warning
added the new
teradataenum value to the//response property for the response status - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new
teradataenum value to the request property - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- warning