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
{
    "password": "locker:password:<vmid>:<alias>",
    "passwordVmid": "70821976-9bdb-4017-adaf-88f18c498b9e"
}
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
{
    "errorCode": "LCM_EXAMPLE_API_ERROR0000",
    "errorLabel": "Example Error!",
    "message": "Something went wrong!",
    "recommendations": []
}
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
{
    "errorCode": "LCM_EXAMPLE_API_ERROR0000",
    "errorLabel": "Example Error!",
    "message": "Something went wrong!",
    "recommendations": []
}
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
{
    "errorCode": "LCM_EXAMPLE_API_ERROR0000",
    "errorLabel": "Example Error!",
    "message": "Something went wrong!",
    "recommendations": []
}
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
{
    "errorCode": "LCM_EXAMPLE_API_ERROR0000",
    "errorLabel": "Example Error!",
    "message": "Something went wrong!",
    "recommendations": []
}
string
errorCode
Optional

errorCode

string
errorLabel
Optional

errorLabel

string
message
Optional

message

array of string
recommendations
Optional

recommendations