[{"label":"Latest (1.3.0)","version":"latest"}]
vrealize-suite-lifecycle-manager

Create Password V2

Description

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

Request

Request

URL

URL


post
https://localhost:8080/lcm/locker/api/v2/passwords
Copy

Request Body

Request Body

PasswordRequestResponseDTO of type(s) application/json Required

password

{
    "alias": "Default Password for vCenters",
    "createdOn": 1605791587373,
    "lastUpdatedOn": 1605791587373,
    "password": "PASSWORD****",
    "passwordDescription": "This password is being used for all my vCenters",
    "userName": "administrator@vsphere.local",
    "vmid": "6c9fca27-678d-4e79-9a0f-5f690735e67c"
}
string
alias Optional

Password Alias


integer as int64
createdOn Optional

integer as int64
lastUpdatedOn Optional

string
password Optional

Password Value


string
passwordDescription Optional

Password Description


string
principal Optional

boolean
referenced Optional

string
transactionId Optional

string
userName Optional

Username associated with password


string
vmid Optional
Authentication

Authentication

This operation uses the following authentication methods.

Authorization

Scopes: global

Response

Response

200 OK Response Body>

Response Body

200 OK

Returns object of type(s) */*

201 Created Response Body>

Response Body

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",
    "userName": "administrator@vsphere.local",
    "vmid": "6c9fca27-678d-4e79-9a0f-5f690735e67c"
}
string
alias Optional

Password Alias


integer as int64
createdOn Optional

integer as int64
lastUpdatedOn Optional

string
password Optional

Password Value


string
passwordDescription Optional

Password Description


string
principal Optional

boolean
referenced Optional

string
transactionId Optional

string
userName Optional

Username associated with password


string
vmid Optional
Errors

Errors

400

Bad Request


401

Unauthorized


403

Forbidden


404

Not Found



500

Internal Server Error

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"alias":"Default Password for vCenters","createdOn":1605791587373,"lastUpdatedOn":1605791587373,"password":"PASSWORD****","passwordDescription":"This password is being used for all my vCenters","userName":"administrator@vsphere.local","vmid":"6c9fca27-678d-4e79-9a0f-5f690735e67c"}' https://localhost:8080/lcm/locker/api/v2/passwords


[{"label":"Latest (1.3.0)","version":"latest"}]
vrealize-suite-lifecycle-manager
Feedback

Was this page helpful?