appliance access shell: set

Set enabled state of BASH, that is, access to BASH from within the controlled CLI.

Request:

HTTP request

PUT https://{server}/rest/appliance/access/shell

Request Body Structure:

{
    "config"{
        "enabled"true,
        "timeout"1
    }
}
<?xml version="1.0" ?>
<ns0:Set-Input xmlns:ns0="http://vmware.com/appliance/access/shell" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <config>
    <enabled>true</enabled>
    <timeout>1</timeout>
  </config>
</ns0:Set-Input>

Request Body Parameters:

Name Type Description
bold = required
config shell_config Shell configuration.
config.enabled boolean Enabled can be set to true or false

config.timeout long The timeout (in seconds) specifies how long you enable the Shell access. The maximum timeout is 86400 seconds(1 day).

Response:

HTTP Status Code: 200

None

Errors:

HTTP Status Code Type Description
500 error Generic error