Creating Tokens
Before onboarding an Adaptation Layer, it is essential to create a token which authenticates an incoming Adaptation Layer. Using this API, you can create the token required to authenticate the Adaptation Layer.
Parameter | Description |
---|---|
URL | http://<impact_hostname>:<port>/m2m/token |
Method | PUT |
Content-Type | application/json |
Parameters |
|
Response Parameters |
|
Success Code |
Response Code: 200 |
Error Code |
400 : Bad Request 401 : Unauthorized 404 : Not Found |
Sample Call |
Curl:
Response Body:
|
Notes |
If length of 'username' field in the request, is more than 50 characters, then the following message is displayed: ‘username' can not be more than 50 chars |