Special GET Queries
ArubaOSsupports the following types ofGETGET refers HTTP request method or an SNMP operation method. The GET HTTP request method submits data to be processed to a specified resource. The GET SNMP operation method obtains information from the Management Information Base (MIB).queries.
The configuration hierarchy along with all the devices information can be fetched using a specialized query listed below:
curl -b "aruba-cookie" -X GET -i 'https://
TheMobility Mastercannot be validated. option can be used with the curl command if the certificate of the |
The following is the response to the above query:
{
"name": "/",
"devices": [],
"num_ports": 3,
"device_count": 5,
"childnodes": [
{
"name": "mm",
"devices": [],
"num_ports": 3,
"device_count": 0,
"childnodes": [
{
"name": "mynode",
"devices": [],
"num_ports": 3,
"device_count": 0,
"childnodes": [],
"type": "group"
}
],
"type": "group"
},
{
"name": "md",
"devices": [
{
"name": "first-device",
"longitude": "44",
"mac": "00:11:22:33:44:55",
"num_ports": 8,
"latitude": "33",
"type": "A7008"
},
{
"name": "66:66:66:66:66:66",
"longitude": "",
"mac": "66:66:66:66:66:66",
"num_ports": 4,
“人肉搜索”:“”,
"type": "A7005"
},
{
"name": "77:77:77:77:77:77",
"longitude": "",
"mac": "77:77:77:77:77:77",
"num_ports": 4,
“人肉搜索”:“”,
"type": "A7005"
}
],
"num_ports": 4,
"device_count": 5,
"childnodes": [
{
"name": "us",
"devices": [
{
"name": "second-device",
"longitude": "",
"mac": "22:11:22:11:22:11",
"num_ports": 6,
“人肉搜索”:“”,
"type": "A7210"
}
],
"num_ports": 6,
"device_count": 2,
"childnodes": [
{
"name": "nevada",
"devices": [
{
"name": "11:11:11:33:44:55",
"longitude": "",
"mac": "11:11:11:33:44:55",
"num_ports": 8,
“人肉搜索”:“”,
"type": "A7008"
}
],
"num_ports": 8,
"device_count": 1,
"childnodes": [],
"type": "group"
}
],
"type": "group"
}
],
"type": "group"
}
],
"type": "root"
}
SystemAPIApplication Programming Interface. Refers to a set of functions, procedures, protocols, and tools that enable users to build application software.is a special query which returns details about the system on which the query is being sent to. TheAPIApplication Programming Interface. Refers to a set of functions, procedures, protocols, and tools that enable users to build application software.is node-specific. If no path is specified, the query is run for that device and it's data returned.
The following is a sample system information request:
curl -b "aruba-cookie" -X GET -i 'https://
TheMobility Mastercannot be validated. option can be used with the curl command if the certificate of the |
The following is the response to the above request:
{
"_global": {
"_version": {
"_image_version": "8.0.0.0-svcs-ctrl",
"_supported_image_version": [
"8.0.0.0-svcs-ctrl"
]
},
"_switch_role": "master",
"_hostname": "User-VM1",
"_model": "ArubaMM",
"_user_info": {
"_role": "root",
"_name": "admin"
},
"_clock": {
"clock_set_timezone": {
"minutes": 0,
"name": "PST",
"hours": -8
},
"clock_set_summer_time": null
}
},
"_local": {
"_type": "group",
"_feature": {
"airgroup": "Enabled",
"防火墙Firewall is a network security system used for preventing unauthorized access to or from a private network._visibility": "Disabled",
"防火墙Firewall is a network security system used for preventing unauthorized access to or from a private network._dpi": "Disabled",
"mobility_manager": "Disabled",
"uplink": "Disabled",
"stat_update": "Disabled",
"service_termination": "Disabled"
},
"_hardware": {
"_capabilities": "scm,ipv6_np,wlanWireless Local Area Network. WLAN is a 802.11 standards-based LAN that the users access through a wireless connection.,fastethernet,cluster,iapmgr,loopback,dds,intf_bwm,extifmgr,dns_np,hcm,interface_non_profile_based,platform_lcd液晶显示器。液晶是所使用的技术for displays in notebook and other smaller computers. Like LED and gas-plasma technologies, LCDs allow displays to be much thinner than the cathode ray tube technology._cli,apcdump,airgroup,tunnel,pan_gp,routing_non_profile_based,auth_survivability,openflow_agent,ip_flow_export,layer2_non_profile_based,jumbo_frames,infra_np,web_cc,intf_sched,out_of_bandBand refers to a specified range of frequencies of electromagnetic radiation._mgmt,l2l3-future,layer2_profile_based,traceoptions_profile_based,qos_profile_based,stacking,stateless-aclAccess Control List. ACL is a common way of restricting certain types of traffic on a physical port.,routing_profile_based,l3auth,interface_profile_based,l2l3,seamless_logon,lsm,airgroup_appShort form for application. It generally refers to the application that is downloaded and used on mobile devices.,openflow_controller,nbapi_non_profile_based,ssh,license_profile_based,sc_mon",
“_model”:“”,
"_name": "",
"_mac": "",
"_port_info": {
"_num_ports": 4
}
},
"_pending": {
"write_mem_reqd": false,
"last_save_time": "--",
"last_save_user": "--",
"last_config_time": "--",
"last_config_user": "--"
},
"_user_info": {
"_permission": "read-write"
}
}
}
AnyAPIApplication Programming Interface. Refers to a set of functions, procedures, protocols, and tools that enable users to build application software.model and theJSONJavaScript Object Notation. JSON is an open-standard, language-independent, lightweight data-interchange format used to transmit data objects consisting of attribute–value pairs. JSON uses a "self-describing" text format that is easy for humans to read and write, and that can be used as a data format by any programming language.response will be available for the same.
command can be run using theThe following is a sample request for
command:curl -b "aruba-cookie" -X GET -i 'https://
TheMobility Mastercannot be validated. option can be used with the curl command if the certificate of the |
The following is the response for the above request:
{
"User Summary": [
{
"E-Mail": "test@aruba.com",
"Enabled": "Yes",
"Expiry": null,
"Grantor-Name": "admin",
"Name": "test",
"Password": "aruba123",
"Remote-IP": "0.0.0.0",
"Role": "logon",
“Sponsor-Name": null,
"Status": "Active"
}
],
"_data": [
"User Entries: 1"
],
"_meta": [
"Name",
"Password",
"Role",
"E-Mail",
"Enabled",
"Expiry",
"Status",
“Sponsor-Name",
"Remote-IP",
"Grantor-Name"
]
}
Full configuration of a particular configuration node can be queried usingAPIsApplication Programming Interface. Refers to a set of functions, procedures, protocols, and tools that enable users to build application software.. The following is an example:
curl -b "aruba-cookie" -X GET -i 'https://
The following table shows the values of the
Value |
Description |
---|---|
pending |
Shows the pending configuration at a node. |
committed |
Shows the committed configuration (including inherited configuration at a node) |
local |
Shows the configuration done only at this node (no inheritance). Also, includes pending configuration at this node, if any |
committed,local |
Shows committed configuration only at this node only (no inheritance) |
The caveat to theAPIApplication Programming Interface. Refers to a set of functions, procedures, protocols, and tools that enable users to build application software.call. Only added or modified configurations are seen. For seeing deleted configuration, you have to rely on the command. configuration being shown is that, if the user deletes any configuration which is , it is not seen in this |