databaseConnections
Update a Database Connection
Update 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.
patch/lib/database-connections/{id}
Path parameters
idstring required
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,
"credsSecrets": "oracle-production-credentials",
"description": "Production MySQL database for customer data",
"id": "mysql-prod-db",
"password": "yourPassword",
"requestTimeout": 30000,
"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,
"credsSecrets": "oracle-production-credentials",
"description": "Production MySQL database for customer data",
"id": "mysql-prod-db",
"password": "yourPassword",
"requestTimeout": 30000,
"tags": "production,mysql,customer-data",
"textSecret": "mysql-production-connection",
"user": "yourUsername"
}
]
}