Interface VirtualMachinesClient
public interface VirtualMachinesClient
An instance of this class provides access to all the operations defined in VirtualMachinesClient.
-
Method Summary
Modifier and TypeMethodDescriptionbeginRestrictMovement
(String resourceGroupName, String privateCloudName, String clusterName, String virtualMachineId, VirtualMachineRestrictMovement restrictMovement) Enable or disable DRS-driven VM movement restriction.beginRestrictMovement
(String resourceGroupName, String privateCloudName, String clusterName, String virtualMachineId, VirtualMachineRestrictMovement restrictMovement, com.azure.core.util.Context context) Enable or disable DRS-driven VM movement restriction.Get a virtual machine by id in a private cloud cluster.com.azure.core.http.rest.Response<VirtualMachineInner>
getWithResponse
(String resourceGroupName, String privateCloudName, String clusterName, String virtualMachineId, com.azure.core.util.Context context) Get a virtual machine by id in a private cloud cluster.com.azure.core.http.rest.PagedIterable<VirtualMachineInner>
List of virtual machines in a private cloud cluster.com.azure.core.http.rest.PagedIterable<VirtualMachineInner>
list
(String resourceGroupName, String privateCloudName, String clusterName, com.azure.core.util.Context context) List of virtual machines in a private cloud cluster.void
restrictMovement
(String resourceGroupName, String privateCloudName, String clusterName, String virtualMachineId, VirtualMachineRestrictMovement restrictMovement) Enable or disable DRS-driven VM movement restriction.void
restrictMovement
(String resourceGroupName, String privateCloudName, String clusterName, String virtualMachineId, VirtualMachineRestrictMovement restrictMovement, com.azure.core.util.Context context) Enable or disable DRS-driven VM movement restriction.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<VirtualMachineInner> list(String resourceGroupName, String privateCloudName, String clusterName) List of virtual machines in a private cloud cluster.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.- Returns:
- a list of Virtual Machines 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.
-
list
com.azure.core.http.rest.PagedIterable<VirtualMachineInner> list(String resourceGroupName, String privateCloudName, String clusterName, com.azure.core.util.Context context) List of virtual machines in a private cloud cluster.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.context
- The context to associate with this operation.- Returns:
- a list of Virtual Machines 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.
-
getWithResponse
com.azure.core.http.rest.Response<VirtualMachineInner> getWithResponse(String resourceGroupName, String privateCloudName, String clusterName, String virtualMachineId, com.azure.core.util.Context context) Get a virtual machine by id in a private cloud cluster.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.virtualMachineId
- Virtual Machine identifier.context
- The context to associate with this operation.- Returns:
- a virtual machine by id in a private cloud cluster 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.
-
get
VirtualMachineInner get(String resourceGroupName, String privateCloudName, String clusterName, String virtualMachineId) Get a virtual machine by id in a private cloud cluster.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.virtualMachineId
- Virtual Machine identifier.- Returns:
- a virtual machine by id in a private cloud cluster.
- 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.
-
beginRestrictMovement
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRestrictMovement(String resourceGroupName, String privateCloudName, String clusterName, String virtualMachineId, VirtualMachineRestrictMovement restrictMovement) Enable or disable DRS-driven VM movement restriction.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.virtualMachineId
- Virtual Machine identifier.restrictMovement
- Whether VM DRS-driven movement is restricted (Enabled) or not (Disabled).- 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.
-
beginRestrictMovement
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRestrictMovement(String resourceGroupName, String privateCloudName, String clusterName, String virtualMachineId, VirtualMachineRestrictMovement restrictMovement, com.azure.core.util.Context context) Enable or disable DRS-driven VM movement restriction.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.virtualMachineId
- Virtual Machine identifier.restrictMovement
- Whether VM DRS-driven movement is restricted (Enabled) or not (Disabled).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.
-
restrictMovement
void restrictMovement(String resourceGroupName, String privateCloudName, String clusterName, String virtualMachineId, VirtualMachineRestrictMovement restrictMovement) Enable or disable DRS-driven VM movement restriction.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.virtualMachineId
- Virtual Machine identifier.restrictMovement
- Whether VM DRS-driven movement is restricted (Enabled) or not (Disabled).- 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.
-
restrictMovement
void restrictMovement(String resourceGroupName, String privateCloudName, String clusterName, String virtualMachineId, VirtualMachineRestrictMovement restrictMovement, com.azure.core.util.Context context) Enable or disable DRS-driven VM movement restriction.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.virtualMachineId
- Virtual Machine identifier.restrictMovement
- Whether VM DRS-driven movement is restricted (Enabled) or not (Disabled).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.
-