Get a list of devices
Gets a list of all devices that the user has permissions to view.
Resource Name:
Request Method: GET
Request URL Parameters:
none
Response:
Code |
Description |
---|---|
200 |
OK. Returns the requested data as specified in JSON format. |
400 |
Bad request |
401 |
Unauthorized |
Request example
curl -k -X GET --cookie "PHPSESSID=r9psihhnjebng2oovhv268odh1" https://localhost/afa/api/v1/devices
Response example
[
{
"nodeType": "FW_GEN",
"name": "Birch_iptables",
"display_name": "birch_iptables",
"original_name": "Birch_iptables",
"brand_name": "iptables",
"host_name": "145.23.1.1",
"user_name": "afa",
"passwd": "$CXBXXHES$C1:B6:DC:51:58:F3:95:74:57:10:D4:1D:B2:3B:19:68",
"collector": "Central Manager",
"brand": "netfilter",
"baseline_profile": "SampleLinuxNetfilterProfile",
"con": "SSH",
"ssh_port": "",
"log_collection_mode": "none",
"collect_log": "",
"collect_log_from": "",
"collect_log_from_adt": "",
"log_host_name_adt": "",
"log_user_name_adt": "",
"log_passwd_adt": "",
"log_host_name": "",
"log_user_name": "",
"log_collection_frequency": "20",
"monitoring": "no",
"set_user_permissions": "no",
"password_fields": "passwd:XXX:root_psw:log_passwd_adt",
"backup_host_name": "0.0.0.0",
"snmp_community": "",
"defined": "true",
"route_collection": "0",
"domains_id": "0",
"root_psw": "",
"number_of_allowed_encryption_keys": "unlimited",
"separate_vrfs": "no"
},
{
"nodeType": "FW_FILE",
"name": "orchid_router",
"display_name": "Orchid_Router".
...