Create Password V2 Using POST

Create Password V2 Using POST

This API is used to create a new password in a password store.

Request
URI
POST
https://{api_host}/lcm/locker/api/v2/passwords
COPY
Request Body
PasswordRequestResponseDTO of type(s) application/json
Optional
{
    "alias": "Default Password for vCenters",
    "createdOn": 1605791587373,
    "lastUpdatedOn": 1605791587373,
    "password": "PASSWORD****",
    "passwordDescription": "This password is being used for all my vCenters",
    "principal": "string",
    "referenced": false,
    "transactionId": "string",
    "userName": "[email protected]",
    "vmid": "6c9fca27-678d-4e79-9a0f-5f690735e67c"
}
string
alias
Optional

Password Alias

integer As int64 As int64
createdOn
Optional

createdOn

integer As int64 As int64
lastUpdatedOn
Optional

lastUpdatedOn

string
password
Optional

Password Value

string
passwordDescription
Optional

Password Description

string
principal
Optional

principal

boolean
referenced
Optional

referenced

string
transactionId
Optional

transactionId

string
userName
Optional

Username associated with password

string
vmid
Optional

vmid

Authentication
This operation uses the following authentication methods.
Responses
200

OK

Operation doesn't return any data structure

201

Created

Returns PasswordRequestResponseDTO of type(s) */*
{
    "alias": "Default Password for vCenters",
    "createdOn": 1605791587373,
    "lastUpdatedOn": 1605791587373,
    "password": "PASSWORD****",
    "passwordDescription": "This password is being used for all my vCenters",
    "principal": "string",
    "referenced": false,
    "transactionId": "string",
    "userName": "[email protected]",
    "vmid": "6c9fca27-678d-4e79-9a0f-5f690735e67c"
}
string
alias
Optional

Password Alias

integer As int64 As int64
createdOn
Optional

createdOn

integer As int64 As int64
lastUpdatedOn
Optional

lastUpdatedOn

string
password
Optional

Password Value

string
passwordDescription
Optional

Password Description

string
principal
Optional

principal

boolean
referenced
Optional

referenced

string
transactionId
Optional

transactionId

string
userName
Optional

Username associated with password

string
vmid
Optional

vmid


400

Bad Request

Returns GenericErrorResponseDTO of type(s) */*
{
    "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

Operation doesn't return any data structure

403

Forbidden

Operation doesn't return any data structure

404

Not Found

Operation doesn't return any data structure

409

Conflict

Returns GenericErrorResponseDTO of type(s) */*
{
    "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) */*
{
    "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