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

Edit Password V2

Description

This API is used to edit password based on vmid.

Request

Request

URL

URL


patch
https://localhost:8080/lcm/locker/api/v2/passwords/{vmid}
Copy

Path Parameters

Path Parameters

string
vmid Required

vmid


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

Response Body

Response Body

200 OK

Returns PasswordRequestResponseDTO of type(s) */*, application/json
{
    "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

204 No Content

No Content

Errors

Errors

401

Unauthorized


403

Forbidden


GenericErrorResponseDTO
404

Not Found


GenericErrorResponseDTO
500

Internal Server Error

Code Samples

Code Samples

cURL Command

curl -X PATCH -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/{vmid}


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

Was this page helpful?