View Password V2 Using POST

View Password V2 Using POST

This API is used to view decrypted password in a password store. This requires to provide correct root password.

Request
URI
POST
https://{api_host}/lcm/locker/api/v2/passwords/{vmid}/decrypted
COPY
Path Parameters
string
vmid
Required

vmid


Request Body

viewPasswordRequestDTO

ViewPasswordRequestDTO of type(s) application/json
Required
{
    "rootPassword": "locker:password:<vmid>:<alias>"
}
string
rootPassword
Optional

Root password

Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns ViewPasswordResponseDTO of type(s) application/json
"ViewPasswordResponseDTO Object"
string
password
Optional

Password

string
passwordVmid
Optional

Password ID


201

Created

Operation doesn't return any data structure

400

Bad Request

Returns GenericErrorResponseDTO of type(s) application/json
"GenericErrorResponseDTO Object"
string
errorCode
Optional

errorCode

string
errorLabel
Optional

errorLabel

string
message
Optional

message

array of string
recommendations
Optional

recommendations


401

Unauthorized

Returns GenericErrorResponseDTO of type(s) application/json
"GenericErrorResponseDTO Object"
string
errorCode
Optional

errorCode

string
errorLabel
Optional

errorLabel

string
message
Optional

message

array of string
recommendations
Optional

recommendations


403

Forbidden

Operation doesn't return any data structure

404

Not Found

Returns GenericErrorResponseDTO of type(s) application/json
"GenericErrorResponseDTO Object"
string
errorCode
Optional

errorCode

string
errorLabel
Optional

errorLabel

string
message
Optional

message

array of string
recommendations
Optional

recommendations


500

Internal Server Error

Returns GenericErrorResponseDTO of type(s) application/json
"GenericErrorResponseDTO Object"
string
errorCode
Optional

errorCode

string
errorLabel
Optional

errorLabel

string
message
Optional

message

array of string
recommendations
Optional

recommendations


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/lcm/locker/api/v2/passwords/{vmid}/decrypted