Queries the details of a data destination.
QPS limits
Each Alibaba Cloud account can run a maximum of 10 queries per second (QPS).
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetDestination |
The operation that you want to perform. Set the value to GetDestination. |
DestinationId | Long | Yes | 1004 |
The ID of the data destination. You can call the ListDestination operation to query data destinations and obtain the ID of the data destination. |
IotInstanceId | String | No | iot-2w**** |
The ID of the instance. On the Overview page in the IoT Platform console, you can view the ID of the instance. Important
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 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. |
Destination | Struct |
The information about the data destination. |
|
Configuration | String | {"topic":"/a1POX0c****/device1/user/get","topicType":1} |
The configuration data of the data destination. |
DestinationId | String | 1003 |
The ID of the data destination. |
IsFailover | Boolean | false |
Indicates whether the rule action forwarded error operation data that failed to be forwarded to the destination cloud service. A data forwarding failure indicates that forwarding retries also failed.
Default value: false. |
Name | String | DataPurpose |
The name of the data destination. |
Status | String | NORMAL |
The status of the data destination. Valid values:
|
Type | String | REPUBLISH |
The operation that is performed on the data of the data destination.
|
UtcCreated | String | 2022-03-27T12:45:43.000Z |
The time when the data destination was created. The time is displayed in UTC. Format:
|
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=GetDestination
&DestinationId=1004
&<Common request parameters>
Sample success responses
XML
format
<GetDestinationResponse>
<Destination>
<Type>REPUBLISH</Type>
<UtcCreated>2022-03-27T12:45:43.000Z</UtcCreated>
<Configuration>{"topic":"/a1POX0c****/device1/user/get","topicType":1}</Configuration>
<IsFailover>false</IsFailover>
<Status>NORMAL</Status>
<DestinationId>1003</DestinationId>
<Name>DataPurpose</Name>
</Destination>
<RequestId>E4C0FF92-2A86-41DB-92D3-73B60310D25E</RequestId>
<Success>true</Success>
</GetDestinationResponse>
JSON
format
{
"Destination": {
"Type": "REPUBLISH",
"UtcCreated": "2022-03-27T12:45:43.000Z",
"Configuration": "{\"topic\":\"/a1POX0c****/device1/user/get\",\"topicType\":1}",
"IsFailover": false,
"Status": "NORMAL",
"DestinationId": 1003,
"Name": "DataPurpose"
},
"RequestId": "E4C0FF92-2A86-41DB-92D3-73B60310D25E",
"Success": true
}