Deletes a data source.
Usage notes
After you call the CreateParserDataSource operation to create a data source, you can delete the data source based on the return value of the DataSourceId parameter.
QPS limits
Each Alibaba Cloud account can run up to 10 queries per second (QPS).
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteParserDataSource |
The operation that you want to perform. Set the value to DeleteParserDataSource. |
DataSourceId | Long | Yes | 1001 |
The ID of the data source. You can call the ListParserDataSource operation to query data sources and obtain the ID of the data source. |
IotInstanceId | String | No | iot-2w**** |
The ID of the instance. You can view the ID of the instance on the Overview page in the IoT Platform console. Notice
For more information, see Overview. |
In addition to the preceding operation-specific request parameters, you must specify common request parameters when you call this operation. For more information, see Common request parameters.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | String | iot.system.SystemException |
The error code returned if the call fails. For more information, see Error codes. |
ErrorMessage | String | A system exception occurred. |
The error message returned if the call fails. |
RequestId | String | E4C0FF92-2A86-41DB-92D3-73B60310D25E |
The ID of the request. |
Success | Boolean | true |
Indicates whether the call was successful.
|
Examples
Sample requests
http(s)://iot.cn-shanghai.aliyuncs.com/?Action=DeleteParserDataSource
&DataSourceId=1001
&<Common request parameters>
Sample success responses
XML
format
<DeleteParserDataSourceResponse>
<RequestId>E4C0FF92-2A86-41DB-92D3-73B60310D25E</RequestId>
<Success>true</Success>
</DeleteParserDataSourceResponse>
JSON
format
{
"RequestId": "E4C0FF92-2A86-41DB-92D3-73B60310D25E",
"Success": true
}