appliance techpreview localaccounts user: get
Get the local user account information.
Request:
HTTP request
GET https://{server}/rest/appliance/techpreview/local-accounts/user/{username}
Path Parameters
Name | Type | Description |
---|---|---|
Required | ||
username | string | User login name. |
Response:
HTTP Status Code: 200
Representations:
{
"value": {
"email": "string",
"fullname": "string",
"passwordstatus": "notset",
"role": "admin",
"status": "disabled",
"username": "string"
}
}
"value": {
"email": "string",
"fullname": "string",
"passwordstatus": "notset",
"role": "admin",
"status": "disabled",
"username": "string"
}
}
<?xml version="1.0" ?>
<ns0:Get-Result xmlns:ns0="http://vmware.com/appliance/techpreview/localaccounts/user" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<value>
<username>string</username>
<email>string</email>
<status>disabled</status>
<role>admin</role>
<passwordstatus>notset</passwordstatus>
<fullname>string</fullname>
</value>
</ns0:Get-Result>
<ns0:Get-Result xmlns:ns0="http://vmware.com/appliance/techpreview/localaccounts/user" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<value>
<username>string</username>
<email>string</email>
<status>disabled</status>
<role>admin</role>
<passwordstatus>notset</passwordstatus>
<fullname>string</fullname>
</value>
</ns0:Get-Result>
Response Type:
Name | Type | Description |
---|---|---|
bold = required | ||
value | user_config_get | local user account information. |
value.username | string | User login name |
value.role | string | User roles Defines user roles for appliance Value is one of: admin: Able to configure the appliance. operator: Able to read the appliance configuration. superAdmin: Able to configure the appliance, manage local accounts and use the BASH shell |
value.fullname | string | User full name |
value.status | string | Shows whether the user account is enabled or disabled. Defines status of user accounts Value is one of: disabled: The user account is disabled. enabled: The user account is enabled. |
value.passwordstatus | string | Shows whether the user account is still valid or expired. Defines state of user password Value is one of: notset: No password has been set expired: The password has expired. valid: The password is still valid. |
value.email | string | Email address of the local account. |
Errors:
HTTP Status Code | Type | Description |
---|---|---|
500 | error | Generic error |