CentraSite Documentation : CentraSite Administrator’s Guide : Basic Operations : Usage of the CentraSite Command Tools : Managing Access Tokens from the Command Line : Restoring Expired Access Tokens
Restoring Expired Access Tokens
Use the restore accesstokens command to restore the expired access tokens in CentraSite.
When you restore an expired access token from the command line, CentraSite increments the expiration time interval for the access token with the value denoted by the Usage Contract Expires After field in the API Consumption Settings dialog of the corresponding API.
The syntax for the command is:
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd|sh restore accesstokens [-url <CENTRASITE-URL>] -user <USER-ID> -password <PASSWORD> -serviceKey <SERVICE-KEY> [-beforeDate <BEFORE-DATE>] [-afterDate <AFTER-DATE>]
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 of the available access tokens for the corresponding API identified by the parameter serviceKey.
The input parameters are:
Parameter
Description
-url
(Optional). The URL of the CentraSite registry. Default value is http://localhost:53307.
-user
The user ID of a registered CentraSite user. For example, a user who has the CentraSite Administrator role.
-password
The password for the registered CentraSite user identified by the parameter -user.
-serviceKey
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 "".
-beforeDate
(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 "".
-afterDate
(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 "".
Examples:
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd|sh restore accesstokens -user Administrator -password manage -servicekey uddi:5f0ad20e-9bdd-11e4-9184-dc550a8f1855
Providing multiple service keys:
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd|sh 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|sh 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|sh restore accesstokens -url http://localhost:53307/CentraSite/CentraSite -user Administrator -password manage -serviceKey uddi:5f0ad20e-9bdd-11e4-9184-dc550a8f1855 -afterDate "2014-12-30"
Copyright © 2005-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback