Exit Maintenance Mode operation
The Exit Maintenance Mode operation takes the host out of maintenance mode. This operation is blocked if any concurrent running maintenance-only host configurations operations are being performed on the specified host. For example, if the VMFS volumes are being upgraded.
If the <status> response element contains success, the <Task> response element contains the ID of the queued task, which you can use to obtain the task status.
The following table describes the elements for the adapter request.
Adapter request elements for the Exit Maintenance Mode operation
Element | Definition | Required |
|---|---|---|
<operation-type> | Defines the type of operation: Host | Yes |
<operation-name> | Defines the name of operation: Exit_Maintenance_Mode | Yes |
<soap-url> | Specifies the URL for the remote SOAP service running on the VMware VirtualCenter | No |
<transport> | Specifies the transport protocol for the message | No |
<user-name> | Specifies the user name that is used for HTTP basic authentication on the VMware Virtual Center | No |
<password> | Specifies the password corresponding to <user-name> | Conditional; required if <user-name> is specified |
<parameters> | Contains the <virtual-machine> element required to execute the operation | Yes |
<host-system> | Specifies the DNS name for the host that you want to take out of the maintenance mode | Yes |
<timeout> | Specifies the number of seconds to wait for the exit maintenance mode operation to succeed | Yes |
The following code sample shows the sample adapter request for the Exit Maintenance Mode operation.
Sample adapter request for the Exit Maintenance Mode operation
<operation-type>Host</operation-type>
<operation-name>Exit_Maintenance_Mode</operation-name>
<soap-url></soap-url>
<transport></transport>
<user-name></user-name>
<password></password>
<parameters>
<host-system>xyz.bmc.com</host-system>
<timeout>0</timeout>
</parameters>
</vmware-infrastructure-request>
The following code sample shows the response for the sample Exit Maintenance Mode operation.
Sample adapter response for the Exit Maintenance Mode operation
<metadata>
<status>success</status>
</metadata>
<ExitMaintenanceMode_TaskResponse>
<Task>task-7984</Task>
</ExitMaintenanceMode_TaskResponse>
</vmware-infrastructure-response>
The following table shows the response element for the Exit Maintenance Mode operation.
Adapter response elements for the Exit Maintenance Mode operation
Element | Definition |
|---|---|
<Task> | Specifies the task ID of the submitted task |