NOTE:
https://hostname/api/v1/request_path?auth_token=abcd
NOTE:
https://hostname/api/v1/sensors/:sensor_uuid/tree
https://hostname/api/v1/sensors/tree
Request:
HTTP Verb: GET
URI: https://hostname/api/v1/sensors/8726017729975087448/tree?auth_token=xxxxxx
Reply:
Status Code: 200 OK
Response:
{
"query": true,
"sensor": {
"id": 492,
"name": "Test",
"ip": null,
"latitude": null,
"longitude": null,
"is_deleted": false,
"applied_at": null,
"type": 1,
"real_parent_id": null,
"group_id": null,
"binding_id": null,
"need_apply": false,
"applying": false,
"property": {
"path": ""
},
"domain_type": 1,
"unassigned": false,
"policy_id": null,
"reputation_policy_id": null,
"need_reputation_apply": false,
"uuid": "697893457705749905",
"children": [
{
"id": 852,
"name": "Override_brother",
"ip": null,
"latitude": null,
"longitude": null,
"is_deleted": false,
"applied_at": null,
"type": 1,
"real_parent_id": null,
"group_id": null,
"binding_id": null,
"need_apply": false,
"applying": false,
"property": {},
"domain_type": 1,
"unassigned": false,
"policy_id": null,
"reputation_policy_id": null,
"need_reputation_apply": false,
"uuid": "7106963634872672634",
"children": []
},
{
"id": 847,
"name": "Override_parent",
"ip": null,
"latitude": null,
"longitude": null,
"is_deleted": false,
"applied_at": null,
"type": 1,
"real_parent_id": null,
"group_id": null,
"binding_id": null,
"need_apply": false,
"applying": false,
"property": {},
"domain_type": 1,
"unassigned": false,
"policy_id": null,
"reputation_policy_id": null,
"need_reputation_apply": false,
"uuid": "6575077023887022161",
"children": [
{
"id": 848,
"name": "Override_child",
"ip": null,
"latitude": null,
"longitude": null,
"is_deleted": false,
"applied_at": null,
"type": 1,
"real_parent_id": null,
"group_id": null,
"binding_id": null,
"need_apply": false,
"applying": false,
"property": {},
"domain_type": 1,
"unassigned": false,
"policy_id": null,
"reputation_policy_id": null,
"need_reputation_apply": false,
"uuid": "7137236833163733936",
"children": []
},
{
"id": 849,
"name": "Override_child_2",
"ip": null,
"latitude": null,
"longitude": null,
"is_deleted": false,
"applied_at": null,
"type": 1,
"real_parent_id": null,
"group_id": null,
"binding_id": null,
"need_apply": false,
"applying": false,
"property": {},
"domain_type": 1,
"unassigned": false,
"policy_id": null,
"reputation_policy_id": null,
"need_reputation_apply": false,
"uuid": "4178223226747106768",
"children": [
{
"id": 851,
"name": "Override_grandson_2",
"ip": null,
"latitude": null,
"longitude": null,
"is_deleted": false,
"applied_at": null,
"type": 1,
"real_parent_id": null,
"group_id": null,
"binding_id": null,
"need_apply": false,
"applying": false,
"property": {},
"domain_type": 101,
"unassigned": false,
"policy_id": null,
"reputation_policy_id": null,
"need_reputation_apply": false,
"uuid": "7549459708256671519",
"access_points": [],
"children": []
},
{
"id": 850,
"name": "Override_grandson_1",
"ip": null,
"latitude": null,
"longitude": null,
"is_deleted": false,
"applied_at": null,
"type": 1,
"real_parent_id": null,
"group_id": null,
"binding_id": null,
"need_apply": false,
"applying": false,
"property": {},
"domain_type": 1,
"unassigned": false,
"policy_id": null,
"reputation_policy_id": null,
"need_reputation_apply": false,
"uuid": "8126434584577941831",
"children": []
}
]
}
]
}
]
}
}