But you can use refresh_token to access a new access_token (it is valid more longer...)
------------------------------
PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...
PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)
PowerArubaCL: Powershell Module to use Aruba Central
PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..
ACEP / ACMX #107 / ACDX #1281
------------------------------
Original Message:
Sent: Nov 18, 2021 02:22 PM
From: Lejian Wang
Subject: API access token questions
Hey Guys,
Is there a way to generate a permanent access token to REST API access?
I've just followed the API docs chapter OAuth APIs for Access Token which says the access token would expire after a certain time and requires refreshing. The expiring time would probably be indicated in the JSON block shown as below when we acquire the access token.
Does anyone know what this 7200 means? Is it 7200 minutes or 7200 hours of time for the token being valid?
{"refresh_token": "xxxx","token_type": "bearer","access_token": "xxxx","expires_in": 7200}
------------------------------
Lejian Wang
------------------------------