Interface VirtualMachinesClient
-
Method Summary
Modifier and TypeMethodDescriptionassessPatches
(String resourceGroupName, String name) The operation to assess patches on a vSphere VMware machine identity in Azure.assessPatches
(String resourceGroupName, String name, com.azure.core.util.Context context) The operation to assess patches on a vSphere VMware machine identity in Azure.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineAssessPatchesResultInner>,
VirtualMachineAssessPatchesResultInner> beginAssessPatches
(String resourceGroupName, String name) The operation to assess patches on a vSphere VMware machine identity in Azure.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineAssessPatchesResultInner>,
VirtualMachineAssessPatchesResultInner> beginAssessPatches
(String resourceGroupName, String name, com.azure.core.util.Context context) The operation to assess patches on a vSphere VMware machine identity in Azure.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,
VirtualMachineInner> beginCreate
(String resourceGroupName, String virtualMachineName, VirtualMachineInner body) Implements virtual machine PUT method.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,
VirtualMachineInner> beginCreate
(String resourceGroupName, String virtualMachineName, VirtualMachineInner body, com.azure.core.util.Context context) Implements virtual machine PUT method.beginDelete
(String resourceGroupName, String virtualMachineName, Boolean force, Boolean retain) Deletes an virtual machine.beginDelete
(String resourceGroupName, String virtualMachineName, Boolean force, Boolean retain, com.azure.core.util.Context context) Deletes an virtual machine.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInstallPatchesResultInner>,
VirtualMachineInstallPatchesResultInner> beginInstallPatches
(String resourceGroupName, String name, VirtualMachineInstallPatchesParameters installPatchesInput) The operation to install patches on a vSphere VMware machine identity in Azure.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInstallPatchesResultInner>,
VirtualMachineInstallPatchesResultInner> beginInstallPatches
(String resourceGroupName, String name, VirtualMachineInstallPatchesParameters installPatchesInput, com.azure.core.util.Context context) The operation to install patches on a vSphere VMware machine identity in Azure.beginRestart
(String resourceGroupName, String virtualMachineName) Implements the operation to restart a virtual machine.beginRestart
(String resourceGroupName, String virtualMachineName, com.azure.core.util.Context context) Implements the operation to restart a virtual machine.beginStart
(String resourceGroupName, String virtualMachineName) Implements the operation to start a virtual machine.beginStart
(String resourceGroupName, String virtualMachineName, com.azure.core.util.Context context) Implements the operation to start a virtual machine.beginStop
(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body) Implements the operation to stop a virtual machine.beginStop
(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body, com.azure.core.util.Context context) Implements the operation to stop a virtual machine.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,
VirtualMachineInner> beginUpdate
(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body) Updates a virtual machine.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,
VirtualMachineInner> beginUpdate
(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body, com.azure.core.util.Context context) Updates a virtual machine.Implements virtual machine PUT method.create
(String resourceGroupName, String virtualMachineName, VirtualMachineInner body) Implements virtual machine PUT method.create
(String resourceGroupName, String virtualMachineName, VirtualMachineInner body, com.azure.core.util.Context context) Implements virtual machine PUT method.void
Deletes an virtual machine.void
Deletes an virtual machine.void
delete
(String resourceGroupName, String virtualMachineName, Boolean force, Boolean retain, com.azure.core.util.Context context) Deletes an virtual machine.getByResourceGroup
(String resourceGroupName, String virtualMachineName) Gets a virtual machine.com.azure.core.http.rest.Response<VirtualMachineInner>
getByResourceGroupWithResponse
(String resourceGroupName, String virtualMachineName, com.azure.core.util.Context context) Gets a virtual machine.installPatches
(String resourceGroupName, String name, VirtualMachineInstallPatchesParameters installPatchesInput) The operation to install patches on a vSphere VMware machine identity in Azure.installPatches
(String resourceGroupName, String name, VirtualMachineInstallPatchesParameters installPatchesInput, com.azure.core.util.Context context) The operation to install patches on a vSphere VMware machine identity in Azure.com.azure.core.http.rest.PagedIterable<VirtualMachineInner>
list()
Implements GET virtualMachines in a subscription.com.azure.core.http.rest.PagedIterable<VirtualMachineInner>
list
(com.azure.core.util.Context context) Implements GET virtualMachines in a subscription.com.azure.core.http.rest.PagedIterable<VirtualMachineInner>
listByResourceGroup
(String resourceGroupName) Implements GET virtualMachines in a resource group.com.azure.core.http.rest.PagedIterable<VirtualMachineInner>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Implements GET virtualMachines in a resource group.void
Implements the operation to restart a virtual machine.void
Implements the operation to restart a virtual machine.void
Implements the operation to start a virtual machine.void
Implements the operation to start a virtual machine.void
Implements the operation to stop a virtual machine.void
stop
(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body) Implements the operation to stop a virtual machine.void
stop
(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body, com.azure.core.util.Context context) Implements the operation to stop a virtual machine.Updates a virtual machine.update
(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body) Updates a virtual machine.update
(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body, com.azure.core.util.Context context) Updates a virtual machine.
-
Method Details
-
beginAssessPatches
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineAssessPatchesResultInner>,VirtualMachineAssessPatchesResultInner> beginAssessPatches(String resourceGroupName, String name) The operation to assess patches on a vSphere VMware machine identity in Azure.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the vSphere VMware machine.- Returns:
- the
SyncPoller
for polling of describes the properties of an AssessPatches result. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginAssessPatches
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineAssessPatchesResultInner>,VirtualMachineAssessPatchesResultInner> beginAssessPatches(String resourceGroupName, String name, com.azure.core.util.Context context) The operation to assess patches on a vSphere VMware machine identity in Azure.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the vSphere VMware machine.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of describes the properties of an AssessPatches result. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
assessPatches
The operation to assess patches on a vSphere VMware machine identity in Azure.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the vSphere VMware machine.- Returns:
- describes the properties of an AssessPatches result.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
assessPatches
VirtualMachineAssessPatchesResultInner assessPatches(String resourceGroupName, String name, com.azure.core.util.Context context) The operation to assess patches on a vSphere VMware machine identity in Azure.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the vSphere VMware machine.context
- The context to associate with this operation.- Returns:
- describes the properties of an AssessPatches result.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginInstallPatches
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInstallPatchesResultInner>,VirtualMachineInstallPatchesResultInner> beginInstallPatches(String resourceGroupName, String name, VirtualMachineInstallPatchesParameters installPatchesInput) The operation to install patches on a vSphere VMware machine identity in Azure.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the vSphere VMware machine.installPatchesInput
- Input for InstallPatches as directly received by the API.- Returns:
- the
SyncPoller
for polling of the result summary of an installation operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginInstallPatches
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInstallPatchesResultInner>,VirtualMachineInstallPatchesResultInner> beginInstallPatches(String resourceGroupName, String name, VirtualMachineInstallPatchesParameters installPatchesInput, com.azure.core.util.Context context) The operation to install patches on a vSphere VMware machine identity in Azure.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the vSphere VMware machine.installPatchesInput
- Input for InstallPatches as directly received by the API.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of the result summary of an installation operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
installPatches
VirtualMachineInstallPatchesResultInner installPatches(String resourceGroupName, String name, VirtualMachineInstallPatchesParameters installPatchesInput) The operation to install patches on a vSphere VMware machine identity in Azure.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the vSphere VMware machine.installPatchesInput
- Input for InstallPatches as directly received by the API.- Returns:
- the result summary of an installation operation.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
installPatches
VirtualMachineInstallPatchesResultInner installPatches(String resourceGroupName, String name, VirtualMachineInstallPatchesParameters installPatchesInput, com.azure.core.util.Context context) The operation to install patches on a vSphere VMware machine identity in Azure.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the vSphere VMware machine.installPatchesInput
- Input for InstallPatches as directly received by the API.context
- The context to associate with this operation.- Returns:
- the result summary of an installation operation.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,VirtualMachineInner> beginCreate(String resourceGroupName, String virtualMachineName, VirtualMachineInner body) Implements virtual machine PUT method.Create Or Update virtual machine.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.body
- Request payload.- Returns:
- the
SyncPoller
for polling of define the virtualMachine. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,VirtualMachineInner> beginCreate(String resourceGroupName, String virtualMachineName, VirtualMachineInner body, com.azure.core.util.Context context) Implements virtual machine PUT method.Create Or Update virtual machine.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.body
- Request payload.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of define the virtualMachine. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
create
VirtualMachineInner create(String resourceGroupName, String virtualMachineName, VirtualMachineInner body) Implements virtual machine PUT method.Create Or Update virtual machine.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.body
- Request payload.- Returns:
- define the virtualMachine.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
create
Implements virtual machine PUT method.Create Or Update virtual machine.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.- Returns:
- define the virtualMachine.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
create
VirtualMachineInner create(String resourceGroupName, String virtualMachineName, VirtualMachineInner body, com.azure.core.util.Context context) Implements virtual machine PUT method.Create Or Update virtual machine.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.body
- Request payload.context
- The context to associate with this operation.- Returns:
- define the virtualMachine.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroup
Gets a virtual machine.Implements virtual machine GET method.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.- Returns:
- define the virtualMachine.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<VirtualMachineInner> getByResourceGroupWithResponse(String resourceGroupName, String virtualMachineName, com.azure.core.util.Context context) Gets a virtual machine.Implements virtual machine GET method.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.context
- The context to associate with this operation.- Returns:
- define the virtualMachine along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,VirtualMachineInner> beginUpdate(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body) Updates a virtual machine.API to update certain properties of the virtual machine resource.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.body
- Resource properties to update.- Returns:
- the
SyncPoller
for polling of define the virtualMachine. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,VirtualMachineInner> beginUpdate(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body, com.azure.core.util.Context context) Updates a virtual machine.API to update certain properties of the virtual machine resource.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.body
- Resource properties to update.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of define the virtualMachine. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
update
VirtualMachineInner update(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body) Updates a virtual machine.API to update certain properties of the virtual machine resource.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.body
- Resource properties to update.- Returns:
- define the virtualMachine.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
update
Updates a virtual machine.API to update certain properties of the virtual machine resource.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.- Returns:
- define the virtualMachine.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
update
VirtualMachineInner update(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body, com.azure.core.util.Context context) Updates a virtual machine.API to update certain properties of the virtual machine resource.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.body
- Resource properties to update.context
- The context to associate with this operation.- Returns:
- define the virtualMachine.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String virtualMachineName, Boolean force, Boolean retain) Deletes an virtual machine.Implements virtual machine DELETE method.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.force
- Whether force delete was specified.retain
- Whether to just disable the VM from azure and retain the VM in the VMM.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String virtualMachineName, Boolean force, Boolean retain, com.azure.core.util.Context context) Deletes an virtual machine.Implements virtual machine DELETE method.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.force
- Whether force delete was specified.retain
- Whether to just disable the VM from azure and retain the VM in the VMM.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes an virtual machine.Implements virtual machine DELETE method.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.force
- Whether force delete was specified.retain
- Whether to just disable the VM from azure and retain the VM in the VMM.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes an virtual machine.Implements virtual machine DELETE method.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String virtualMachineName, Boolean force, Boolean retain, com.azure.core.util.Context context) Deletes an virtual machine.Implements virtual machine DELETE method.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.force
- Whether force delete was specified.retain
- Whether to just disable the VM from azure and retain the VM in the VMM.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginStop
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStop(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body) Implements the operation to stop a virtual machine.Stop virtual machine.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.body
- Virtualmachine stop action payload.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginStop
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStop(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body, com.azure.core.util.Context context) Implements the operation to stop a virtual machine.Stop virtual machine.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.body
- Virtualmachine stop action payload.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
stop
Implements the operation to stop a virtual machine.Stop virtual machine.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.body
- Virtualmachine stop action payload.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
stop
Implements the operation to stop a virtual machine.Stop virtual machine.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
stop
void stop(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body, com.azure.core.util.Context context) Implements the operation to stop a virtual machine.Stop virtual machine.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.body
- Virtualmachine stop action payload.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginStart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStart(String resourceGroupName, String virtualMachineName) Implements the operation to start a virtual machine.Start virtual machine.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginStart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStart(String resourceGroupName, String virtualMachineName, com.azure.core.util.Context context) Implements the operation to start a virtual machine.Start virtual machine.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
start
Implements the operation to start a virtual machine.Start virtual machine.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
start
void start(String resourceGroupName, String virtualMachineName, com.azure.core.util.Context context) Implements the operation to start a virtual machine.Start virtual machine.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginRestart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRestart(String resourceGroupName, String virtualMachineName) Implements the operation to restart a virtual machine.Restart virtual machine.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginRestart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRestart(String resourceGroupName, String virtualMachineName, com.azure.core.util.Context context) Implements the operation to restart a virtual machine.Restart virtual machine.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
restart
Implements the operation to restart a virtual machine.Restart virtual machine.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
restart
void restart(String resourceGroupName, String virtualMachineName, com.azure.core.util.Context context) Implements the operation to restart a virtual machine.Restart virtual machine.
- Parameters:
resourceGroupName
- The Resource Group Name.virtualMachineName
- Name of the virtual machine resource.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<VirtualMachineInner> list()Implements GET virtualMachines in a subscription.List of virtualMachines in a subscription.
- Returns:
- list of VirtualMachines as paginated response with
PagedIterable
. - Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<VirtualMachineInner> list(com.azure.core.util.Context context) Implements GET virtualMachines in a subscription.List of virtualMachines in a subscription.
- Parameters:
context
- The context to associate with this operation.- Returns:
- list of VirtualMachines as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<VirtualMachineInner> listByResourceGroup(String resourceGroupName) Implements GET virtualMachines in a resource group.List of virtualMachines in a resource group.
- Parameters:
resourceGroupName
- The Resource Group Name.- Returns:
- list of VirtualMachines as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<VirtualMachineInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Implements GET virtualMachines in a resource group.List of virtualMachines in a resource group.
- Parameters:
resourceGroupName
- The Resource Group Name.context
- The context to associate with this operation.- Returns:
- list of VirtualMachines as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-