# vsphere\_live\_mount

Live Mount a vSphere VM from a specified snapshot. If a specific date and time is not provided, the last snapshot taken will be used.

```python
def vsphere_live_mount(self, vm_name, date='latest', time='latest', host='current', remove_network_devices=False, power_on=True, timeout=15):
```

## Arguments

| Name     | Type | Description                               | Choices |
| -------- | ---- | ----------------------------------------- | ------- |
| vm\_name | str  | The name of the vSphere VM to Live Mount. |         |

## Keyword Arguments

| Name                     | Type | Description                                                                                                                                                          | Choices | Default |
| ------------------------ | ---- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | ------- |
| date                     | str  | The date of the snapshot you wish to Live Mount formated as `Month-Day-Year` (ex: 1-15-2014). If `latest` is specified, the last snapshot taken will be used.        |         | latest  |
| time                     | str  | The time of the snapshot you wish to Live Mount formated as `Hour:Minute AM/PM` (ex: 1:30 AM). If `latest` is specified, the last snapshot taken will be used.       |         | latest  |
| host                     | str  | The hostname or IP address of the ESXi host to Live Mount the VM on. By default, the current host will be used.                                                      |         | current |
| remove\_network\_devices | bool | Flag that determines whether to remove the network interfaces from the Live Mounted VM. Set to `True` to remove all network interfaces.                              |         | False   |
| power\_on                | bool | Flag that determines whether the VM should be powered on after the Live Mount. Set to `True` to power on the VM. Set to `False` to mount the VM but not power it on. |         | True    |
| timeout                  | int  | The number of seconds to wait to establish a connection the Rubrik cluster before returning a timeout error.                                                         |         | 15      |

## Returns

| Type | Return Value                                                            |
| ---- | ----------------------------------------------------------------------- |
| dict | The full response of `POST /v1/vmware/vm/snapshot/{snapshot_id}/mount`. |

## Example

```python
import rubrik_cdm

rubrik = rubrik_cdm.Connect()

vm_name = "python-sdk-demo"
date = "08-26-2018"
time = "12:11 AM"

live_mount = rubrik.vsphere_live_mount(vm_name, date, time)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rubrik.gitbook.io/rubrik-sdk-for-python/devel-1/data-management-functions/vsphere_live_mount.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
