Aruba

JSON

curl --insecure -c "aruba-cookie" -d "username=admin&password=password" https://CONTROLLERIP:4343/v1/api/login

You get a response like:

{"_global_result": {"status":"0", "status_str": "You've logged in successfully.", "UIDARUBA":"453fef22-a2e4-420a-b1f2-24066aedd6fd"}}

To then get for example the ssid_prof

curl -k -b "aruba-cookie" -X GET --header "Accept: application/json" "https://CONTROLLERIP:4343/v1/configuration/object/ssid_prof?config_path=%2Fmm&UIDARUBA=453fef22-a2e4-420a-b1f2-24066aedd6fd"

This will return something like this:

{
  "_data": {
    "ssid_prof": [
      {
        "profile-name": "default",
        "ssid_enable": {
          "_present": true,
          "_flags": {
            "default": true
          }
        },
        "essid": {
          "_flags": {
            "default": true
          },
          "essid": "aruba-ap"
        },
        "opmode": {
          "_flags": {
            "default": true
          },
          "opensystem": true
        },
        "dtim_period": {
          "_flags": {
            "default": true
          },
          "dtim-period": 1
        },
        "a_basic_rates": {
          "_flags": {
            "default": true
          },
          "6": true,
          "12": true,
          "24": true
        },
        "a_tx_rates": {
          "_flags": {
            "default": true
          },
          "6": true,
          "9": true,
          "12": true,
          "18": true,
          "24": true,
          "36": true,
          "48": true,
          "54": true
        },
        "g_basic_rates": {
          "_flags": {
            "default": true
          },
          "1": true,
          "2": true
        },
        "g_tx_rates": {
          "_flags": {
            "default": true
          },
          "1": true,
          "2": true,
          "5": true,
          "6": true,
          "9": true,
          "11": true,
          "12": true,
          "18": true,
          "24": true,
          "36": true,
          "48": true,
          "54": true
        },
        "ageout": {
          "_flags": {
            "default": true
          },
          "ageout": 1000
        },
        "max_retries": {
          "_flags": {
            "default": true
          },
          "max-retries": 8
        },
        "rts_threshhold": {
          "_flags": {
            "default": true
          },
          "rts-threshold": 2333
        },
        "short_preamble": {
          "_present": true,
          "_flags": {
            "default": true
          }
        },
        "max_clients": {
          "_flags": {
            "default": true
          },
          "max-clients": 64
        },
        "wmm_uapsd": {
          "_present": true,
          "_flags": {
            "default": true
          }
        },
        "wmm_ts_min_inact_int": {
          "_flags": {
            "default": true
          },
          "wmm-ts-min-inact-int": 0
        },
        "wmm_eap_ac": {
          "_flags": {
            "default": true
          },
          "wmm_ac": "default"
        },
        "multiple_tx_replay_counters": {
          "_present": true,
          "_flags": {
            "default": true
          }
        },
        "local_probe_req_thresh": {
          "_flags": {
            "default": true
          },
          "local-probe-req-thresh": 0
        },
        "auth_req_thresh": {
          "_flags": {
            "default": true
          },
          "auth-req-thresh": 0
        },
        "disable_probe_retry": {
          "_present": true,
          "_flags": {
            "default": true
          }
        },
        "weptxkey": {
          "_flags": {
            "default": true
          },
          "weptxkey": 1
        },
        "max_tx_fail": {
          "_flags": {
            "default": true
          },
          "max-tx-fail": 0
        },
        "eapol_rate_opt": {
          "_present": true,
          "_flags": {
            "default": true
          }
        },
        "ht_ssid_prof": {
          "_flags": {
            "default": true
          },
          "profile-name": "default"
        },
        "g_beacon_rate": {
          "_flags": {
            "default": true
          },
          "g_phy_rate": "default"
        },
        "a_beacon_rate": {
          "_flags": {
            "default": true
          },
          "a_phy_rate": "default"
        },
        "multicast_rate": {
          "_flags": {
            "default": true
          },
          "ng_phy_rate": "default"
        },
        "okc_enable": {
          "_present": true,
          "_flags": {
            "default": true
          }
        }
      },
      {
        "profile-name": "pskg",
        "ssid_enable": {
          "_present": true,
          "_flags": {
            "default": true
          }
        },
        "essid": {
          "_flags": {
            "default": true
          },
          "essid": "aruba-ap"
        },
        "opmode": {
          "_flags": {
            "default": true
          },
          "opensystem": true
        },
        "dtim_period": {
          "_flags": {
            "default": true
          },
          "dtim-period": 1
        },
        "a_basic_rates": {
          "_flags": {
            "default": true
          },
          "6": true,
          "12": true,
          "24": true
        },
        "a_tx_rates": {
          "_flags": {
            "default": true
          },
          "6": true,
          "9": true,
          "12": true,
          "18": true,
          "24": true,
          "36": true,
          "48": true,
          "54": true
        },
        "g_basic_rates": {
          "_flags": {
            "default": true
          },
          "1": true,
          "2": true
        },
        "g_tx_rates": {
          "_flags": {
            "default": true
          },
          "1": true,
          "2": true,
          "5": true,
          "6": true,
          "9": true,
          "11": true,
          "12": true,
          "18": true,
          "24": true,
          "36": true,
          "48": true,
          "54": true
        },
        "ageout": {
          "_flags": {
            "default": true
          },
          "ageout": 1000
        },
        "max_retries": {
          "_flags": {
            "default": true
          },
          "max-retries": 8
        },
        "rts_threshhold": {
          "_flags": {
            "default": true
          },
          "rts-threshold": 2333
        },
        "short_preamble": {
          "_present": true,
          "_flags": {
            "default": true
          }
        },
        "max_clients": {
          "_flags": {
            "default": true
          },
          "max-clients": 64
        },
        "wmm_uapsd": {
          "_present": true,
          "_flags": {
            "default": true
          }
        },
        "wmm_ts_min_inact_int": {
          "_flags": {
            "default": true
          },
          "wmm-ts-min-inact-int": 0
        },
        "wmm_eap_ac": {
          "_flags": {
            "default": true
          },
          "wmm_ac": "default"
        },
        "multiple_tx_replay_counters": {
          "_present": true,
          "_flags": {
            "default": true
          }
        },
        "local_probe_req_thresh": {
          "_flags": {
            "default": true
          },
          "local-probe-req-thresh": 0
        },
        "auth_req_thresh": {
          "_flags": {
            "default": true
          },
          "auth-req-thresh": 0
        },
        "disable_probe_retry": {
          "_present": true,
          "_flags": {
            "default": true
          }
        },
        "weptxkey": {
          "_flags": {
            "default": true
          },
          "weptxkey": 1
        },
        "max_tx_fail": {
          "_flags": {
            "default": true
          },
          "max-tx-fail": 0
        },
        "eapol_rate_opt": {
          "_present": true,
          "_flags": {
            "default": true
          }
        },
        "ht_ssid_prof": {
          "profile-name": "40"
        },
        "g_beacon_rate": {
          "_flags": {
            "default": true
          },
          "g_phy_rate": "default"
        },
        "a_beacon_rate": {
          "_flags": {
            "default": true
          },
          "a_phy_rate": "default"
        },
        "multicast_rate": {
          "_flags": {
            "default": true
          },
          "ng_phy_rate": "default"
        },
        "okc_enable": {
          "_present": true,
          "_flags": {
            "default": true
          }
        }
      }
    ]
  }
}