Overview
Deletes the specified data source.
API details
Constraints
The caller must have an AccessKey to access the multi-cloud API. For information about how to obtain the AccessKey ID and AccessKey Secret, see Manage AccessKeys.
Request path
DELETE /api/v2/datasource/datasources/{id}
Request parameters
Header
Parameter |
Type |
Required |
Description |
Example value |
|---|---|---|---|---|
| X-Ob-Project-Id | String | Yes | Project ID. | proj-xxxxxxxx |
| X-Ob-Org-Id | String | Yes | Organization ID. | org-xxxxxxxx |
Path
Parameter |
Type |
Required |
Description |
Example value |
|---|---|---|---|---|
| id | Long | Yes | Primary key ID of the data source. | 1001 |
Response parameters
Field |
Type |
Description |
|---|---|---|
| success | Boolean | Whether the request succeeded. |
| httpStatus | String | HTTP status code. |
| data | DataSource | Deleted data source object. |
Examples
Request example
curl --digest -u '<your AK:SK>' \
--request DELETE \
--url 'https://api-cloud.oceanbase.com/api/v2/datasource/datasources/1001' \
-H 'X-Ob-Project-Id: <project ID>' \
-H 'X-Ob-Org-Id: <organization ID>'
Response example
{
"success": true,
"httpStatus": "OK",
"data": {
"id": 1001,
"uuid": "ds-uuid-xxx",
"name": "my-mysql",
"projectId": "proj-xxx",
"cloudProvider": "ALIYUN",
"region": "zone-xxxx",
"databaseType": "MYSQL",
"instanceType": "ALIYUN_RDS",
"networkAccessType": "PUBLIC_NETWORK",
"visible": false,
"deletedTime": "2026-06-30T10:05:00+08:00",
"createTime": "2026-06-30T10:00:00+08:00",
"updateTime": "2026-06-30T10:05:00+08:00"
}
}
