CentraSite User's Guide : Runtime Governance : Access Token Management : Managing Access Tokens through Command Line Interface : Restoring Expired Access Tokens
Restoring Expired Access Tokens
Pre-requisites:
To restore the expired access tokens through the CentraSite Command Line Interface, you must have the CentraSite Administrator role.
CentraSite provides a command tool named restore accesstokens for this purpose.
To restore expired access tokens
*Run the command restore accesstokens.
The syntax is of the format: C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd restore accesstokens [-url <CENTRASITE-URL>] -user <USER-ID> -password <PASSWORD> -serviceKey <SERVICE-KEY> [-beforeDate <BEFORE-DATE>] [-afterDate <AFTER-DATE>]
The input parameters are:
Parameter
Description
CENTRASITE-URL
(Optional). The URL of the CentraSite registry. For example, http://localhost:53307/CentraSite/CentraSite.
USER-ID
The user ID of a registered CentraSite user who has the CentraSite Administrator role. For example, Administrator.
PASSWORD
The password for the registered CentraSite user identified by the parameter USER-ID.
SERVICE-KEY
Name or ID (uuid) of the service for which the access tokens need to be restored. For multiple services, use a comma to separate the values. All values should either be the names or the IDs of the services, not a combination of both.
If the service name contains white spaces, enclose the name within "".
BEFORE-DATE
(Optional). Restores the access tokens that were generated until the specified date. The date format defaults to yyyy-mm-dd.
When specifying the date, enclose the date value within "".
AFTER-DATE
(Optional). Restores the access tokens that were generated after the specified date. The date format defaults to yyyy-mm-dd.
When specifying the date, enclose the date value within "".
Note:  
To restore the expired access tokens using the restore accesstokens command, you can optionally specify values for the following parameters:
*beforeDate
*afterDate
If you do not specify values for any of these optional parameters, CentraSite restores all the available access tokens for the corresponding API identified by the parameter serviceKey.
Examples (all in one line):
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd restore accesstokens -user Administrator -password manage -servicekey uddi:5f0ad20e-9bdd-11e4-9184-dc550a8f1855
Providing multiple service keys:
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd restore accesstokens -url http://localhost:53307/CentraSite/CentraSite -user Administrator -password manage -serviceKey uddi:5f0ad20e-9bdd-11e4-9184-dc550a8f1855, uddi:9f0ad41e-9crd-11e4-9172-dc550a8f2345
Providing the date range:
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd restore accesstokens -url http://localhost:53307/CentraSite/CentraSite -user Administrator -password manage -serviceKey uddi:5f0ad20e-9bdd-11e4-9184-dc550a8f1855 -beforeDate "2014-12-30"
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd restore accesstokens -url http://localhost:53307/CentraSite/CentraSite -user Administrator -password manage -serviceKey uddi:5f0ad20e-9bdd-11e4-9184-dc550a8f1855 -afterDate "2014-12-30"
Copyright © 2015- 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback