VirtualMachinesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
AzureArcVMwareManagementServiceAPI's
<xref:virtual_machines> attribute.
Constructor
VirtualMachinesOperations(*args, **kwargs)
Methods
begin_assess_patches |
The operation to assess patches on a vSphere VMware machine identity in Azure. |
begin_create_or_update |
Implements virtual machine PUT method. Create Or Update virtual machine. |
begin_delete |
Deletes an virtual machine. Implements virtual machine DELETE method. |
begin_install_patches |
The operation to install patches on a vSphere VMware machine identity in Azure. |
begin_restart |
Implements the operation to restart a virtual machine. Restart virtual machine. |
begin_start |
Implements the operation to start a virtual machine. Start virtual machine. |
begin_stop |
Implements the operation to stop a virtual machine. Stop virtual machine. |
begin_update |
Updates a virtual machine. API to update certain properties of the virtual machine resource. |
get |
Gets a virtual machine. Implements virtual machine GET method. |
list |
Implements GET virtualMachines in a resource group. List of virtualMachines in a resource group. |
list_all |
Implements GET virtualMachines in a subscription. List of virtualMachines in a subscription. |
begin_assess_patches
The operation to assess patches on a vSphere VMware machine identity in Azure.
async begin_assess_patches(resource_group_name: str, virtual_machine_name: str, **kwargs: Any) -> AsyncLROPoller[VirtualMachineAssessPatchesResult]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
virtual_machine_name
Required
|
The name of the vSphere VMware machine. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
continuation_token
|
A continuation token to restart a poller from a saved state. |
polling
|
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. |
polling_interval
|
Default waiting time between two polls for LRO operations if no Retry-After header is present. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either VirtualMachineAssessPatchesResult or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_create_or_update
Implements virtual machine PUT method.
Create Or Update virtual machine.
async begin_create_or_update(resource_group_name: str, virtual_machine_name: str, body: _models.VirtualMachine | None = None, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.VirtualMachine]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The Resource Group Name. Required. |
virtual_machine_name
Required
|
Name of the virtual machine resource. Required. |
body
|
VirtualMachine or
IO
Request payload. Is either a model type or a IO type. Default value is None. Default value: None
|
Keyword-Only Parameters
Name | Description |
---|---|
content_type
|
Body Parameter content-type. Known values are: 'application/json'. Default value is None. |
cls
|
A custom type or function that will be passed the direct response |
continuation_token
|
A continuation token to restart a poller from a saved state. |
polling
|
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. |
polling_interval
|
Default waiting time between two polls for LRO operations if no Retry-After header is present. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_delete
Deletes an virtual machine.
Implements virtual machine DELETE method.
async begin_delete(resource_group_name: str, virtual_machine_name: str, retain: bool | None = None, force: bool | None = None, **kwargs: Any) -> AsyncLROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The Resource Group Name. Required. |
virtual_machine_name
Required
|
Name of the virtual machine resource. Required. |
retain
|
Whether to just disable the VM from azure and retain the VM in the VMM. Default value is None. Default value: None
|
force
|
Whether force delete was specified. Default value is None. Default value: None
|
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
continuation_token
|
A continuation token to restart a poller from a saved state. |
polling
|
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. |
polling_interval
|
Default waiting time between two polls for LRO operations if no Retry-After header is present. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_install_patches
The operation to install patches on a vSphere VMware machine identity in Azure.
async begin_install_patches(resource_group_name: str, virtual_machine_name: str, install_patches_input: _models.VirtualMachineInstallPatchesParameters, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.VirtualMachineInstallPatchesResult]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
virtual_machine_name
Required
|
The name of the vSphere VMware machine. Required. |
install_patches_input
Required
|
Input for InstallPatches as directly received by the API. Is either a model type or a IO type. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
content_type
|
Body Parameter content-type. Known values are: 'application/json'. Default value is None. |
cls
|
A custom type or function that will be passed the direct response |
continuation_token
|
A continuation token to restart a poller from a saved state. |
polling
|
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. |
polling_interval
|
Default waiting time between two polls for LRO operations if no Retry-After header is present. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either VirtualMachineInstallPatchesResult or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_restart
Implements the operation to restart a virtual machine.
Restart virtual machine.
async begin_restart(resource_group_name: str, virtual_machine_name: str, **kwargs: Any) -> AsyncLROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The Resource Group Name. Required. |
virtual_machine_name
Required
|
Name of the virtual machine resource. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
continuation_token
|
A continuation token to restart a poller from a saved state. |
polling
|
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. |
polling_interval
|
Default waiting time between two polls for LRO operations if no Retry-After header is present. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_start
Implements the operation to start a virtual machine.
Start virtual machine.
async begin_start(resource_group_name: str, virtual_machine_name: str, **kwargs: Any) -> AsyncLROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The Resource Group Name. Required. |
virtual_machine_name
Required
|
Name of the virtual machine resource. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
continuation_token
|
A continuation token to restart a poller from a saved state. |
polling
|
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. |
polling_interval
|
Default waiting time between two polls for LRO operations if no Retry-After header is present. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_stop
Implements the operation to stop a virtual machine.
Stop virtual machine.
async begin_stop(resource_group_name: str, virtual_machine_name: str, body: _models.StopVirtualMachineOptions | None = None, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The Resource Group Name. Required. |
virtual_machine_name
Required
|
Name of the virtual machine resource. Required. |
body
|
Virtualmachine stop action payload. Is either a model type or a IO type. Default value is None. Default value: None
|
Keyword-Only Parameters
Name | Description |
---|---|
content_type
|
Body Parameter content-type. Known values are: 'application/json'. Default value is None. |
cls
|
A custom type or function that will be passed the direct response |
continuation_token
|
A continuation token to restart a poller from a saved state. |
polling
|
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. |
polling_interval
|
Default waiting time between two polls for LRO operations if no Retry-After header is present. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_update
Updates a virtual machine.
API to update certain properties of the virtual machine resource.
async begin_update(resource_group_name: str, virtual_machine_name: str, body: _models.VirtualMachineUpdate | None = None, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.VirtualMachine]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The Resource Group Name. Required. |
virtual_machine_name
Required
|
Name of the virtual machine resource. Required. |
body
|
Resource properties to update. Is either a model type or a IO type. Default value is None. Default value: None
|
Keyword-Only Parameters
Name | Description |
---|---|
content_type
|
Body Parameter content-type. Known values are: 'application/json'. Default value is None. |
cls
|
A custom type or function that will be passed the direct response |
continuation_token
|
A continuation token to restart a poller from a saved state. |
polling
|
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. |
polling_interval
|
Default waiting time between two polls for LRO operations if no Retry-After header is present. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Gets a virtual machine.
Implements virtual machine GET method.
async get(resource_group_name: str, virtual_machine_name: str, **kwargs: Any) -> VirtualMachine
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The Resource Group Name. Required. |
virtual_machine_name
Required
|
Name of the virtual machine resource. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
VirtualMachine or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
Implements GET virtualMachines in a resource group.
List of virtualMachines in a resource group.
list(resource_group_name: str, **kwargs: Any) -> AsyncIterable[VirtualMachine]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The Resource Group Name. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
An iterator like instance of either VirtualMachine or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_all
Implements GET virtualMachines in a subscription.
List of virtualMachines in a subscription.
list_all(**kwargs: Any) -> AsyncIterable[VirtualMachine]
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
An iterator like instance of either VirtualMachine or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.connectedvmware.models' from 'C:\\ToolCache\\Python\\3.11.9\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv90\\Lib\\site-packages\\azure\\mgmt\\connectedvmware\\models\\__init__.py'>