Owners Manual
RESTful Web Service | Actions and Adaptive CLI
OMNM 6.5.2 User Guide 625
Result:
The following format is for the Token portion of the Script. The API used for Token Generation in
the REST executions depends on the source queried. Sample1 uses the Paypal API. OpenStack API
appears in Sample 2.
•
Sample1
, a base64 authentication with token prefix:
TOKEN_BEGIN
TokenProperty:Authorization
TokenPrefix: Bearer
TokenPostfix:
TokenAccessParams: access_token
TokenExpiryTime:1440
TokenAuthenticationType: Base64
TokenAuthenticationID:abc:xyz
URL:https://api.sandbox.paypal.com/v1/oauth2/token
RequestMethod:POST
grant_type=client_credentials
TOKEN_END
•
Sample2
, token value extracted from a nested JSON object :
TOKEN_BEGIN
TokenProperty: X_Auth_Token
TokenAccessParams: access.token.id
TokenExpiryTime:1440
URL:http://10.101.53.2:5000/v2.0/tokens
Method:POST
RequestPropertyName:abc RequestPropertyValue:def
RequestPropertyName:ghi RequestPropertyValue:jkl
{
"auth": {"tenantName": "admin","passwordCredentials":
{"username":"admin","password":"admin"} }
}
TOKEN_END