CLI Reference Guide
Get userIdentifier
Details
URI
/login/<organization_name>/<user_name>
Where <organization_name> and <user_name> are your credentials for logging in
to HP Cloud Service Automation. If the user name you want to use includes a
backslash or forward slash, see "Get userIdentifier for user name with slash" below.
Method
GET
Returns
200 - Ok
401 - Not authorized
500 - Server exception
Note: Unlike most API calls, the arguments (organization name and user name) are part of the
the URL path rather than parameters.
Examples
To get the userIdentifier, we used the following URL:
https://<host>:<port>/csa/rest/login/MyOrganization/admin
The following XML was returned in the response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<person>
<id>90s96588670da0c701360da0f1d540a1</id> <!-- This is userIdentifier -->
... <!-- Remaining XML is not relevant for this example. -->
</person>
The value for userIdentifier is the first <id> value returned in the XML.
Get userIdentifier for user name with slash
Details
URI
/login/<organization_name>/userLookup
Method
GET
Parameters
userName=<user_name>
Required; the user name you want to use as credentials for CSA.
HP Cloud Service Automation (4.00) Page 88 of 141
APIReference
Contents