Developer Community

Reply
Highlighted
Occasional Contributor II

Instant Access Rest API

Hi 

just to be sure....

The Document "Aruba Instant 8.6.0.x REST API Guide"

show everything that's today possible via REST API on a IAP ?

or did i miss something ?

How can i find out all the other api calls to configure the complete IAP via REST ?

Bye Mac


Accepted Solutions
Highlighted
Aruba Employee

Re: Instant Access Rest API

Hello,

Yes, that is correct. The Aruba Instant 8.6.0.x REST API Guide lists all the endpoints that are available to use using API. All available endpoints have been grouped in one of the three types:

1) Action
2) Configuration

3) Monitoring (show command over API)

The guide also gives more information on the login and logout method along with the payload to be used for each API endpoint.

Moreover, complete IAP configuration over a REST interface can be achieved if the IAP is managed by Aruba Central.

Thanks,
Jay

View solution in original post


All Replies
Highlighted
Aruba Employee

Re: Instant Access Rest API

Hello,

Yes, that is correct. The Aruba Instant 8.6.0.x REST API Guide lists all the endpoints that are available to use using API. All available endpoints have been grouped in one of the three types:

1) Action
2) Configuration

3) Monitoring (show command over API)

The guide also gives more information on the login and logout method along with the payload to be used for each API endpoint.

Moreover, complete IAP configuration over a REST interface can be achieved if the IAP is managed by Aruba Central.

Thanks,
Jay

View solution in original post

Highlighted
MVP Guru Elite

Re: Instant Access Rest API

It will be nice if there is more GET method for really get the configuration (and not the CLI ouput... not really usable for a machine !)



PowerArubaSW: Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP... More info

PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...) More info

PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)

PowerArubaIAP: Powershell Module to use Aruba Instant AP

PowerArubaMC: Powershell Module to use Mobility Controller / Master


ACMP 6.4 / ACMX #107 / ACCP 6.5 / ACSP
Highlighted
Aruba Employee

Re: Instant Access Rest API

Jay,

 

it would be very helpful if the API definition were available in OpenAPI format for importing into a Postman collection. 

 

I'm finding that the 8.6 API guide is inaccurate in terms of even the basics of the login process. 

 

When I try to access an 8.6 Instant cluster using the login as described in the guide, I get the following error:

 

$ curl "https://172.31.254.90:4343/rest/login" -H "Content-Type: application/json" --data-raw '("user": "admin", "passwd": "admin")' --insecure

 

{

"Status": "Failed",

"Error message": "Error in parsing input JSON parameters"

}

 

When attempting to craft the same with Postman, it includes --request GET in the curl command line, which gets me further along, but still throws an error on both curl and in Postman:

 

$ curl "https://172.31.254.90:4343/rest/login" --request GET --header "Content-Type: application/json" --data-raw '("user": "admin", "passwd": "admin")' --insecure

{

"Status-code": 8,

"message": "SID is missing or incorrect API name for login/logout"

}

 

What's going on here that the documentation is not addressing? 

Running Instant 8.6.0.3 on the cluster. 

Ian Beyer
Highlighted
MVP Guru Elite

Re: Instant Access Rest API

Hi,

 

You need to use a POST (and not a GET), do you have try to use Accept : Application/json ?



PowerArubaSW: Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP... More info

PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...) More info

PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)

PowerArubaIAP: Powershell Module to use Aruba Instant AP

PowerArubaMC: Powershell Module to use Mobility Controller / Master


ACMP 6.4 / ACMX #107 / ACCP 6.5 / ACSP