Queries the details of a data source.

QPS limits

Each Alibaba Cloud account can run up to 10 queries per second (QPS).

Note The RAM users of an Alibaba Cloud account share the quota of the Alibaba Cloud account.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GetParserDataSource

The operation that you want to perform. Set the value to GetParserDataSource.

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
  • If your instance has an ID, you must specify the ID for this parameter. Otherwise, the call fails.
  • If no Overview page or ID is generated for your instance, you do not need to configure this parameter.

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.

DataSource Struct

The details of the data source.

CreateUserId Long 11111111000000111

The ID of the Alibaba Cloud account that is used to create the data source.

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: yyyy-MM-dd'T'HH:mm:ss.SSS'Z'.

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.

  • true: The call was successful.
  • false: The call failed.

Examples

Sample requests

http(s)://iot.cn-shanghai.aliyuncs.com/?Action=GetParserDataSource
&DataSourceId=1001
&<Common request parameters>

Sample success responses

XML format

<GetParserDataSourceResponse>
  <RequestId>E4C0FF92-2A86-41DB-92D3-73B60310D25E</RequestId>
  <Success>true</Success>
  <DataSource>
        <Description>The device data. </Description>
        <UtcCreated>2022-03-27T12:45:43.000Z</UtcCreated>
        <CreateUserId>11111111000000112</CreateUserId>
        <DataSourceId>1001</DataSourceId>
        <Name>DataSource</Name>
  </DataSource>
</GetParserDataSourceResponse>

JSON format

{
    "RequestId": "E4C0FF92-2A86-41DB-92D3-73B60310D25E",
    "Success": true,
    "DataSource": {
        "Description": "The device data.",
        "UtcCreated": "2022-03-27T12:45:43.000Z",
        "CreateUserId": 11111111000000112,
        "DataSourceId": 1001,
        "Name": "DataSource"
    }
}