PyCentral Features
As part of the PyCentral v1 release, some new features have been added to simplify and enhance your automation experience.
Authentication Options
PyCentral offers three distinct ways of handling authentication data, each tailed to different security requirements & user scenarious. Authentication details that's required for PyCentral to make API calls to Central can be provided either in a JSON file or directly within the script. Each method caters to different security and workflow requirements
BaseURL & Access Token
-
{ "base_url": "", "token": { "access_token": "" } }
Variable | Description |
---|---|
base_url | Domain Base URL for HPE Aruba Networking Central API Gateway is based on the geographical cluster where your HPE Aruba Networking Central account is registered. You can find the list of Base URLs here or in the Overview section of the HPE Aruba Networking Central Postman Collection. |
access_token | Access Token is required to securely make an API Request to HPE Aruba Networking Central API Gateway. |
Variable | Description |
---|---|
base_url | Domain Base URL for HPE Aruba Networking Central API Gateway based on the geographical cluster where your account is registered. |
client_id | Unique Application ID associated with the client. |
client_secret | Unique Application secret ID associated with the client. |
access_token | Access Token is required to securely make an API Request to HPE Aruba Networking Central API Gateway. |
refresh_token | Refresh tokens are used to refresh the access_token when it expires without having to repeat the above API calls. |
Per Second Rate Limit
Whenever the per-second API rate limit is reached for the Central account, PyCentral pauses script execution for 2 seconds for the rate limit to be reset before continuing execution. It will also log the following message to the terminal to indicate the same to the user
Per-second rate limit reached. Adding 2 seconds interval and retrying.
Per Day Rate Limit
When the per-day API rate limit is exhausted for the Central account, PyCentral will log a message indicating that and exit from executing the script.
"Per-day rate limit of 5000 is exhausted. Please check Central UI to see when the daily rate limit quota will be reset
Updated about 1 month ago