Delete a data source
Use this DELETE request to delete an existing data source:
DELETE /wfo/api/em/recorder/v2/datasources/{id}
This request requires the Configure Data Sources user security privilege. This privilege is not tenant safe and cannot be used when using the "User Token" for authentication in a Multi-Tenant SaaS environment. Instead, use an "API Tenant Token" in a Multi-Tenant SaaS environment.
Request Parameter
|
Type |
Name |
Description |
Schema |
Required |
|---|---|---|---|---|
|
Path |
id |
The unique numeric identifier of the data source to be deleted. |
Integer (int32) |
True |
Request Example
Here is an example of this request.
DELETE http://10.100.200.90/api/em/v2/datasources/1002
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Responses
This request can return these responses.
|
HTTP Status Code |
Detail |
Schema |
|---|---|---|
|
204 |
Data Source was successfully deleted. |
No Content |
|
410 |
Gone - Requested Data Source was not available, might be deleted already |
No Content |
|
428 |
Require Condition Failure - Data source with children cannot be deleted |
No Content |
|
500 |
Internal Server Error |
An example of the 500 error response is shown below. This error responses includes the following attributes:
-
status - The HTTP status code applicable to a problem, expressed as a string.
-
title - The Enterprise Manager error code title.
-
detail - A short description of the error.
Error response 500
{
"errors": [ {
"status" : "500"
"title" : "Internal Error",
"detail" : "Data Source operation failed due to internal error"
} ]
}