HomeGuidesAPI Reference
GuidesAPI ReferenceGitHubAirheads Developer CommunityLog In

Postman Collection

Postman is a popular tool used to test HTTP Requests to API endpoints. Aruba Central offers a Postman collection and environment that you can use to test REST APIs with Aruba Central which is available here.

Getting Started with Aruba Central Postman Collection

  1. Go to the Aruba Central Postman Workspace. You can do this from the Postman website or application, which can be installed from here.
  2. Within the workspace, click on the Aruba Central collection which is pinned on the workspace's overview page. This will take you to the Aruba Central collection and set the Aruba Central ENV as the active environment of the collection.

📘

Postman Definitions

  • A collection is a set of API endpoints or requests, along with each endpoint's authorization type, parameters, headers, request bodies, tests, and settings grouped together.
  • A environment is a set of one or more variables that you can reference when sending requests or writing test script in Postman.
  1. Fork the Aruba Central collection and Aruba Central ENV environment to your personal Postman workspace. This will enable you to make API requests to Aruba Central using this Postman collection.
Forking the Aruba Central Collection & Aruba Central ENV environment

Forking the Aruba Central Collection and Aruba Central ENV environment

Making API calls

Once you have successfully forked the Aruba Central collection and Aruba Central ENV environment to your personal workspace, please follow the below steps to make API calls to Aruba Central with Postman:

  1. Within your personal workspace, select the Environments tab and add values for the following variables in the Aruba Central ENV:
VariableDescription
base_urlDomain Base URL for Aruba Central API Gateway is based on the geographical cluster where your Aruba Central account is registered. You can find the list of Base URLs here or in the Overview section of the Aruba Central Postman Collection.
access_tokenAccess Token is required to securely make an API Request to Aruba Central API Gateway.

📘

Generating Access Token

You can generate an Aruba Central Token from:

  1. Aruba Central UI
  2. OAuth APIs (Only for Non-SSO Users) - You can use the Create Token's Collection Runner to automate the OAuth APIs to generate an access token. You can find the steps to set-up the Runner here.
  1. Once the valid values are set, save the environment, and please set the Aruba Central ENV as the active environment for your workspace.
  2. Click on the Collections tab and select Aruba Central collection. You should now be able to make API calls to Aruba Central from your Postman Collection.
Setting the **base_url** (in this eg, the Aruba Central account is in US-West4 cluster) & **access_token** in the Aruba Central ENV environment & then making API calls to the Central account

Setting the base_url (in this eg, the Aruba Central account is in US-West4 cluster) and access_token in the Aruba Central ENV environment and then making API calls to the Central account