Queries all data sources.
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 | ListParserDataSource |
The operation that you want to perform. Set the value to ListParserDataSource. |
| Page | Integer | Yes | 1 |
The number of the page to return. Valid values: 1 to 100. Default value: 1 |
| PageSize | Integer | Yes | 10 |
The number of entries to return on each page. Default value: 10. Maximum value: 100. |
| 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. |
| SearchName | String | No | DataSource |
The string that you want to use as a keyword to match data source names. |
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. |
| Data | Array of DataSource |
The data sources. |
|
| DataSource | |||
| DataSourceId | Long | 1001 |
The ID of the data source. |
| Description | String | The device data. |
The description of the data source. |
| Name | String | DataSource |
The name of the data source. |
| UtcCreated | String | 2022-03-27T12:45:43.000Z |
The time when the data source was created. The time is displayed in UTC. Format: |
| ErrorMessage | String | A system exception occurred. |
The error message returned if the call fails. |
| Page | Integer | 1 |
The page number of the returned page. |
| PageSize | Integer | 10 |
The number of entries returned per page. |
| RequestId | String | E4C0FF92-2A86-41DB-92D3-73B60310D25E |
The ID of the request. |
| Success | Boolean | true |
Indicates whether the call was successful.
|
| Total | Integer | 100 |
The total number of entries returned. |
Examples
Sample requests
http(s)://iot.cn-shanghai.aliyuncs.com/?Action=ListParserDataSource
&Page=1
&PageSize=10
&<Common request parameters>
Sample success responses
XML format
<ListParserDataSourceResponse>
<Data>
<DataSource>
<Description>The data of Device 1. </Description>
<UtcCreated>2022-03-27T12:45:43.000Z</UtcCreated>
<DataSourceId>1001</DataSourceId>
<Name>DataSource1</Name>
</DataSource>
<DataSource>
<Description>The data of Device 2. </Description>
<UtcCreated>2022-04-27T12:45:43.000Z</UtcCreated>
<DataSourceId>1002</DataSourceId>
<Name>DataSource2</Name>
</DataSource>
</Data>
<PageSize>10</PageSize>
<RequestId>E4C0FF92-2A86-41DB-92D3-73B60310D25E</RequestId>
<Total>100</Total>
<Page>1</Page>
<Success>true</Success>
</ListParserDataSourceResponse>
JSON format
{
"Data": {
"DataSource": [
{
"Description": "The data of Device 1.",
"UtcCreated": "2022-03-27T12:45:43.000Z",
"DataSourceId": 1001,
"Name": "DataSource1"
},
{
"Description": "The data of Device 2.",
"UtcCreated": "2022-04-27T12:45:43.000Z",
"DataSourceId": 1002,
"Name": "DataSource2"
}
]
},
"PageSize": 10,
"RequestId": "E4C0FF92-2A86-41DB-92D3-73B60310D25E",
"Total": 100,
"Page": 1,
"Success": true
}