Organization Management
Requests
Obtain organization binding information
Topic: thing/product/{gateway_sn}/requests
Direction: up
Method: airport_bind_status
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
devices | Device object set | array | {} | |
»[array_item] | Elements in array | struct | {} | {"size": "2"} |
»»sn | Device serial number | text | {} |
Example:
{
"method": "airport_bind_status",
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp:": 1654070968655,
"data": {
"devices": [
{
"sn": "drone-sn"
},
{
"sn": "dock-sn"
}
]
}
}
Topic: thing/product/{gateway_sn}/requests_reply
Direction: down
Method: airport_bind_status
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
bind_status | Binding information | array | {} | |
»[array_item] | Elements in array | struct | {} | {"size": "2"} |
»»sn | Device serial number | text | {} | |
»»is_device_bind_organization | Whether device is bound to organization | bool | {"0":"No","1":"Yes"} | |
»»organization_id | Organization id | text | {} | |
»»organization_name | Organization name | text | {} | |
»»device_callsign | Device name in organization | text | {} |
Example:
{
"method": "airport_bind_status",
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp:": 1654070968655,
"data": {
"result": 0,
"output": {
"bind_status": [
{
"sn": "12345",
"is_device_bind_organization": true,
"organization_id": "12345678",
"organization_name": "12345",
"device_callsign": "Device organization callsign"
},
{
"sn": "12345",
"is_device_bind_organization": true,
"organization_id": "12345678",
"organization_name": "12345",
"device_callsign": "Device organization callsign"
}
]
}
}
}
Search for the organization information that device bound to
Topic: thing/product/{gateway_sn}/requests
Direction: up
Method: airport_organization_get
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
device_binding_code | Device binding number | text | {} | |
organization_id | Organization id | text | {} |
Example:
{
"method": "airport_organization_get",
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp:": 1654070968655,
"data": {
"device_binding_code": "device_binding_code",
"organization_id": "organization_id"
}
}
Topic: thing/product/{gateway_sn}/requests_reply
Direction: down
Method: airport_organization_get
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
organization_name | Organization name | text | {} |
Example:
{
"method": "airport_organization_get",
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp:": 1654070968655,
"data": {
"result": 0,
"output": {
"organization_name": "organization_name"
}
}
}
Device bind to organization
Topic: thing/product/{gateway_sn}/requests
Direction: up
Method: airport_organization_bind
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
bind_devices | binding parameter list | array | {} | |
»[array_item] | Elements in array | struct | {} | {"size": "2"} |
»»device_binding_code | Device binding number | text | {} | |
»»organization_id | Organization id | text | {} | |
»»device_callsign | Device name in organization | text | {} | |
»»sn | Device serial number | text | {} | |
»»device_model_key | Product enumeration value | text | {} | Please refer to Product Supported |
Example:
{
"method": "airport_organization_bind",
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp:": 1654070968655,
"data": {
"bind_devices": [
{
"device_binding_code": "device_binding_code",
"organization_id": "organization_id",
"device_callsign": "dock-device-callsign",
"sn": "dock-sn",
"device_model_key": "3-1-0"
},
{
"device_binding_code": "device_binding_code",
"organization_id": "organization_id",
"device_callsign": "drone-device-callsign",
"sn": "drone-sn",
"device_model_key": "0-67-0"
}
]
}
}
Topic: thing/product/{gateway_sn}/requests_reply
Direction: down
Method: airport_organization_bind
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
err_infos | error information | array | {} | |
»[array_item] | Elements in array | struct | {} | {"size": "2"} |
»»sn | Device serial number | text | {} | |
»»err_code | error code | int | {} | Custom field. Non-zero indicates that the bind was unsuccessful. |
Example:
{
"method": "airport_organization_bind",
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp:": 1654070968655,
"data": {
"result": 0,
"output": {
"err_infos": [
{
"sn": "dock-sn",
"err_code": 210231
},
{
"sn": "drone-sn",
"err_code": 210231
}
]
}
}
}