Deregister a DataSource
Deregister the specified DataSource.
POST /api/open/v1/datasource/deleteDataSource
Requires “Query Settings Manage” and management permission on the target DataSource.
Send the Idempotency-Key header with 1 to 128 visible ASCII characters.
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| dataSourceId | Integer | Yes | DataSource ID. |
Response fields
| Fields in data | Type | Description |
|---|---|---|
| dataSourceId | Integer | DataSource ID. |
| lifeCycleState | String | DELETED (deregistered). |
Request example
{
"dataSourceId": 42
}
Response example
{
"requestId": "566952c3-4e21-5fc5-b5eb-aaab9e7c7117",
"code": "OK",
"msg": "Request succeeded.",
"data": {
"dataSourceId": 42,
"lifeCycleState": "DELETED"
}
}