CentraSite Documentation : CentraSite Administrator’s Guide : Basic Operations : Usage of the CentraSite Command Tools : Managing Access Tokens from the Command Line : Purging Expired or Inactive Access Tokens
Purging Expired or Inactive Access Tokens
Use the purge accesstokens command to purge the expired or inactive access tokens in CentraSite.
The syntax for the command is:
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd|sh purge accesstokens [-url <CENTRASITE-URL>] -user <USER-ID> -password <PASSWORD> [-keyType <KEY-TYPE>] [-beforeDate <BEFORE-DATE>] [-batchSize <BATCH-SIZE>]
Note:  
To purge the expired access tokens using the purge accesstokens command, you can optionally specify values for the following parameters:
*keyType
*untilDate
*batchSize
If you do not specify values for any of these optional parameters, CentraSite purges all of the available expired access tokens.
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.
-keyType
(Optional). The type of access tokens you want to purge: "APIKey", "OAuth", or "All". If you omit this parameter, CentraSite assumes the default "All" configuration.
-untilDate
(Optional). Purges 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 "".
-batchSize
(Optional). The maximum number of access tokens you want to purge in a batch. The default value for the batch size is 500.
Examples:
Specifying access tokens of type API Key:
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd|sh purge accesstokens -url http://localhost:53307/CentraSite/CentraSite -user Administrator -password manage -keyType APIKey
Specifying access tokens of type OAuth 2.0:
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd|sh purge accesstokens -url http://localhost:53307/CentraSite/CentraSite -user Administrator -password manage -keyType OAuth
Providing the date:
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd|sh purge accesstokens -url http://localhost:53307/CentraSite/CentraSite -user Administrator -password manage -keyType OAuth -beforeDate "2014-12-30"
Providing the batch size:
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd|shpurge accesstokens-url http://localhost:53307/CentraSite/CentraSite-user Administrator -password manage-keyType OAuth -batchSize 1000
Copyright © 2005-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback