1. To register a new API client (register-api-client):
config register-api-client --name="TestAPIClientALL" -Sapi.soap.library-service -Sapi.soap.update-analysis-service
-Sapi.soap.information-model-service -Sapi.soap.license-service -Sapi.soap.user-directory-service -Sapi.rest.automation-services-job.execute
Output from the above command:
Tool password:
Successfully registered a new API client with the display name 'TestAPIClientALL':
Client ID: 69904af1cd7297c6bc3503e62b01b0d5.oauth-clients.spotfire.tibco.com
Client secret: 53c19cc23d9182639747921eb6d96f779809e81c28f622844c3463dbbecef8da
To view the full client configuration, please use the 'show-oauth2-client' comma
nd.2. To show the configuration of a specified OAuth2 client (show-oauth2-client).
config show-oauth2-client --client-id=69904af1cd7297c6bc3503e62b01b0d5.oauth-clients.spotfire.tibco.com
Output from the above command:
Tool password:
Showing the configuration for the OAuth2 client 'TestAPIClient':
Creation date: 2019-03-13
Type: Public API client
Client ID: d88e8f0c0199d829885851c5546f30b2.oauth-clients.spotfire.tibco
.com
Client secret: REDACTED
Authorized scopes: api.soap.update-analysis-service, api.soap.informatio
n-model-service, api.soap.license-service, api.soap.user-directory-service, api.
soap.library-service3. To list registered OAuth2 clients (list-oauth2-clients):
config list-oauth2-clients
Output from the above command:
Tool password:
OAuth2 clients:
Name Creation date Type Profile Client ID
---------------- ------------- ----------------- ------- -------------------
----------------------------------------------
TestAPIClient 2019-08-19 Public API client Other 69904af1cd7297c6bc3
503e62b01b0d5.oauth-clients.spotfire.tibco.com
TestAPIClient2 2019-08-26 Public API client Other 524fed3d08aded5cd8c
310b11262bfc6.oauth-clients.spotfire.tibco.com4. To delete a specified OAuth2 client (delete-oauth2-client).
config delete-oauth2-client --client-id=524fed3d08aded5cd8c310b11262bfc6.oauth-clients.spotfire.tibco.com
Output from the above command:
Tool password:
Successfully deleted the OAuth2 client with ID '524fed3d08aded5cd8c310b11262bfc6
.oauth-clients.spotfire.tibco.com'