Get Mapping of AssetID and DeviceID

Get the mapping relationship between assetId and deviceId.

Request Format

GET http://{apigw-address}/edge-service/v2.1/assetIdToDeviceId?

Request Parameters (URI)

Request parameters (URI)

Name

Location (Path/Query)

Required or not

Data type

Description

assetIds

Query

Yes

String

Asset ID (Multiple ID can be separated by commas)

Response Parameters

Name

Data type

Description

assetId

String

Asset ID generated by EnOS Cloud

deviceId

String

Asset ID generated by EnOS Edge

Sample

Request Sample

POST https://{apigw-address}/edge-service/v2.1/assetIdToDeviceId?assetIds=zLIkQ2vt,xgh25FY5

Return Sample

{
"code": 0,
"msg": "OK",
"requestId": "2c986d78-049d-4b14-9c2f-abc2a495d98c",
"data": [
{
"deviceId": "DXbNCg7LRH",
"assetId": "zLIkQ2vt"
},
{
"deviceId": "VFSmxE6kbv",
"assetId": "xgh25FY5"
}
]
}