Use this method to create a stored credential.
Authentication with user name and password is required.
POST https://{management_server_IP}/storedCredentials
None
Attributes | Required / Optional | Type | Description | ||
---|---|---|---|---|---|
description | Optional | String | Description of the stored-credential account Tip: Use this attribute to differentiate between accounts when
users and stored credentials have the same name.
|
||
password | Required | String | Password for the stored-credential account | ||
userName | Required | String | Name of the stored-credential account You must specify a user name for management, OS-management, and local user accounts. For other stored credential type, the user name is optional. |
{
"description": "CME44",
"password: "passwr0d"
"userName": "USERID"
}
Code | Description | Comments |
---|---|---|
200 | OK | The request completed successfully. |
400 | Bad Request | A query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body. |
404 | Not found | A specified resource cannot be found. A descriptive error message is returned in the response body. |
409 | Conflict | There is a conflict with the current state of the resource. A descriptive error message is returned in the response body. |
500 | Internal Server Error | An internal error occurred. A descriptive error message is returned in the response body. |
Attributes | Type | Description | ||
---|---|---|---|---|
id | String | The stored credential ID. |
{
"id":"605"
}