Logging in to Product and Service Inventory
Use the following details to log in to Product and Service Inventory using the REST interface:
HTTP Method
POST
Endpoint URL
See the REST Service Endpoint topic for more details.
Resource
/auth/token
Request Parameters
Provide values for the following parameters:
Parameter Name | Data Type | Mandatory |
---|---|---|
password | string | optional |
userName | string | optional |
Request Model
Media Type: application/json
{ "password": "string", "userName": "string" }
Response Model
{ "data": { "roles": [ { "authority": "string", "createdOn": "2016-07-31T05:17:58.851Z", "grantedPermissions": 0, "id": "string", "sid": 0, "tenant": { "createdOn": "2016-07-31T05:17:58.851Z", "description": "string", "id": "string" }, "updatedOn": "2016-07-31T05:17:58.851Z" } ], "token": "string" }, "duration": 0, "result": { "code": "string", "message": "string", "params": [ "string" ] }, "startTimestampMS": 0 }
Response Codes and Descriptions
Response Code | Description |
---|---|
201 | Created |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |