Get objects attributes¶
Get attributes of specified objects.
Request Format¶
METHOD {URI-scheme}://{apigw-address}/solar-api/{version}/mdmService/getObjectAttributes
Request Parameters¶
Name | Location | Required | Datatype | Description |
---|---|---|---|---|
mdmids | Query | true | String | mdm ids useing comma as splitter |
token | Query | false | String | token, required when user account calls Solar API |
orgId | Query | false | String | orgnization Id, required when service account calls Solar API |
attributes | Query | false | String | attributes using comma as splitter, empty means all |
language | Query | false | String | language, Chinese: zh-CN, English: en-US, default as en-US |
Response Parameters¶
Name | Datatype | Description |
---|---|---|
objectID | String | object id |
name | String | object name |
other attributes… | String | other attributes… |
Error Codes¶
See Common response code.
Example¶
Request Example¶
GET
https://{apigw-address}/solar-api/v1.0/mdmService/getObjectAttributes?mdmids=LnxxxxxG&token=APP_PORTAL_S_DP57A********7NgxPQexKw
Response Example¶
{
"data": {
"LnxxxxxG": {
"attributes": {
"altitude": "4.0",
"timezone": "+08:00",
"longitude": "121.0846",
"objectID": "LnxxxxxG"
}
}
},
"status": 0,
"msg": "OK"
}