Update Local Accounts
Released in v6.7Update selected fields in local user account properties.
Request
URLURL
https://{api_host}/rest/appliance/local-accounts/{username}
Parameters
Parameters
string
username
Required
User login name
The parameter must be an identifier for the resource type: com.vmware.appliance.local_accounts.
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id Example
b00db39f948d13ea1e59b4d6fce56389
Request Body
Request Body
LocalAccountsUpdateRequestBody of type application/json (required){
"config": {
"days_after_password_expiration": 0,
"email": "string",
"enabled": false,
"full_name": "string",
"inactive_after_password_expiration": false,
"max_days_between_password_change": 0,
"min_days_between_password_change": 0,
"old_password": "string",
"password": "string",
"password_expires": false,
"password_expires_at": "string",
"roles": [
"string"
],
"warn_days_before_password_expiration": 0
}
}
cURL Command
curl -X PATCH -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" -H "Content-Type: application/json" -d '{"config":{"days_after_password_expiration":0,"email":"string","enabled":false,"full_name":"string","inactive_after_password_expiration":false,"max_days_between_password_change":0,"min_days_between_password_change":0,"old_password":"string","password":"string","password_expires":false,"password_expires_at":"string","roles":["string"],"warn_days_before_password_expiration":0}}' https://{api_host}/rest/appliance/local-accounts/{username}
Errors
404
com.vmware.vapi.std.errors.not_found : If the account is not found | com.vmware.vapi.std.errors.error : Generic error
default
'Default' means this response is used for all HTTP codes that are not covered individually for this operation.
On This Page
Local Accounts Operations
patch
delete