appliance techpreview localaccounts user: add
Create a new local user account.
Request:
HTTP request
POST https://{server}/rest/appliance/techpreview/local-accounts/user
Request Body Structure:
{
"config": {
"email": "string",
"fullname": "string",
"password": "secret string",
"role": "admin",
"username": "string"
}
}
"config": {
"email": "string",
"fullname": "string",
"password": "secret string",
"role": "admin",
"username": "string"
}
}
<?xml version="1.0" ?>
<ns0:Add-Input xmlns:ns0="http://vmware.com/appliance/techpreview/localaccounts/user" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<config>
<username>string</username>
<email>string</email>
<role>admin</role>
<password>secret string</password>
<fullname>string</fullname>
</config>
</ns0:Add-Input>
<ns0:Add-Input xmlns:ns0="http://vmware.com/appliance/techpreview/localaccounts/user" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<config>
<username>string</username>
<email>string</email>
<role>admin</role>
<password>secret string</password>
<fullname>string</fullname>
</config>
</ns0:Add-Input>
Request Body Parameters:
Name | Type | Description |
---|---|---|
bold = required | ||
config | new_user_config | User configuration. |
config.username | string | User login name |
config.role | string | User roles. The default role is operator. Optional. role Default role is operator. |
config.password | secret | User login password In Interactive mode, provide --password as part of the command, and enter the value on the prompt. When accessed remotely, provide --password value as part the command. |
config.fullname | string | User full name Optional. fullname Optional full name for a person. |
config.email | string | Email address of the local account. Optional. email Optional email. |
Response:
HTTP Status Code: 200
NoneErrors:
HTTP Status Code | Type | Description |
---|---|---|
500 | error | Generic error |