VirtualMachine Interface
public interface VirtualMachine
An immutable client-side representation of VirtualMachine.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| abstract String |
adminUsername()
Gets the admin |
|
abstract
Operation |
assignRelay()
Assigns a relay to the specified Microsoft. |
|
abstract
Operation |
assignRelay(VirtualMachineAssignRelayParameters virtualMachineAssignRelayParameters, Context context)
Assigns a relay to the specified Microsoft. |
| abstract String |
availabilityZone()
Gets the availability |
| abstract String |
bareMetalMachineId()
Gets the bare |
|
abstract
Virtual |
bootMethod()
Gets the boot |
|
abstract
Network |
cloudServicesNetworkAttachment()
Gets the cloud |
| abstract String |
clusterId()
Gets the cluster |
|
abstract
Extended |
consoleExtendedLocation()
Gets the console |
| abstract long |
cpuCores()
Gets the cpu |
|
abstract
Virtual |
detailedStatus()
Gets the detailed |
| abstract String |
detailedStatusMessage()
Gets the detailed |
| abstract String |
etag()
Gets the etag property: Resource ETag. |
|
abstract
Extended |
extendedLocation()
Gets the extended |
| abstract String |
id()
Gets the id property: Fully qualified resource Id for the resource. |
|
abstract
Managed |
identity()
Gets the identity property: The identity for the resource. |
|
abstract
Virtual |
innerModel()
Gets the inner com. |
|
abstract
Virtual |
isolateEmulatorThread()
Gets the isolate |
| abstract String |
location()
Gets the location property: The geo-location where the resource lives. |
| abstract long |
memorySizeGB()
Gets the memory |
| abstract String |
name()
Gets the name property: The name of the resource. |
|
abstract
List<Network |
networkAttachments()
Gets the network |
| abstract String |
networkData()
Gets the network |
| abstract String |
networkDataContent()
Gets the network |
|
abstract
List<Virtual |
placementHints()
Gets the placement |
|
abstract
Operation |
powerOff()
Power off the virtual machine. |
|
abstract
Operation |
powerOff(VirtualMachinePowerOffParameters virtualMachinePowerOffParameters, Context context)
Power off the virtual machine. |
|
abstract
Virtual |
powerState()
Gets the power |
|
abstract
Virtual |
provisioningState()
Gets the provisioning |
|
abstract
Virtual |
refresh()
Refreshes the resource to sync with Azure. |
|
abstract
Virtual |
refresh(Context context)
Refreshes the resource to sync with Azure. |
| abstract Region |
region()
Gets the region of the resource. |
| abstract String |
regionName()
Gets the name of the resource region. |
|
abstract
Operation |
reimage()
Reimage the virtual machine. |
|
abstract
Operation |
reimage(Context context)
Reimage the virtual machine. |
| abstract String |
resourceGroupName()
Gets the name of the resource group. |
|
abstract
Operation |
restart()
Restart the virtual machine. |
|
abstract
Operation |
restart(Context context)
Restart the virtual machine. |
|
abstract
List<Ssh |
sshPublicKeys()
Gets the ssh |
|
abstract
Operation |
start()
Start the virtual machine. |
|
abstract
Operation |
start(Context context)
Start the virtual machine. |
|
abstract
Storage |
storageProfile()
Gets the storage |
|
abstract
System |
systemData()
Gets the system |
| abstract Map<String,String> |
tags()
Gets the tags property: Resource tags. |
| abstract String |
type()
Gets the type property: The type of the resource. |
| abstract Update |
update()
Begins update for the Virtual |
| abstract String |
userData()
Gets the user |
| abstract String |
userDataContent()
Gets the user |
|
abstract
Virtual |
virtioInterface()
Gets the virtio |
|
abstract
Virtual |
vmDeviceModel()
Gets the vm |
| abstract String |
vmImage()
Gets the vm |
|
abstract
Image |
vmImageRepositoryCredentials()
Gets the vm |
| abstract List<String> |
volumes()
Gets the volumes property: The resource IDs of volumes that are attached to the virtual machine. |
Method Details
adminUsername
public abstract String adminUsername()
Gets the adminUsername property: The name of the administrator to which the ssh public keys will be added into the authorized keys.
Returns:
assignRelay
public abstract OperationStatusResult assignRelay()
Assigns a relay to the specified Microsoft.HybridCompute machine. Assigns a relay to the specified Microsoft.HybridCompute machine associated with the provided virtual machine.
Returns:
assignRelay
public abstract OperationStatusResult assignRelay(VirtualMachineAssignRelayParameters virtualMachineAssignRelayParameters, Context context)
Assigns a relay to the specified Microsoft.HybridCompute machine. Assigns a relay to the specified Microsoft.HybridCompute machine associated with the provided virtual machine.
Parameters:
Returns:
availabilityZone
public abstract String availabilityZone()
Gets the availabilityZone property: The cluster availability zone containing this virtual machine.
Returns:
bareMetalMachineId
public abstract String bareMetalMachineId()
Gets the bareMetalMachineId property: The resource ID of the bare metal machine that hosts the virtual machine.
Returns:
bootMethod
public abstract VirtualMachineBootMethod bootMethod()
Gets the bootMethod property: Selects the boot method for the virtual machine.
Returns:
cloudServicesNetworkAttachment
public abstract NetworkAttachment cloudServicesNetworkAttachment()
Gets the cloudServicesNetworkAttachment property: The cloud service network that provides platform-level services for the virtual machine.
Returns:
clusterId
public abstract String clusterId()
Gets the clusterId property: The resource ID of the cluster the virtual machine is created for.
Returns:
consoleExtendedLocation
public abstract ExtendedLocation consoleExtendedLocation()
Gets the consoleExtendedLocation property: The extended location to use for creation of a VM console resource.
Returns:
cpuCores
public abstract long cpuCores()
Gets the cpuCores property: The number of CPU cores in the virtual machine.
Returns:
detailedStatus
public abstract VirtualMachineDetailedStatus detailedStatus()
Gets the detailedStatus property: The more detailed status of the virtual machine.
Returns:
detailedStatusMessage
public abstract String detailedStatusMessage()
Gets the detailedStatusMessage property: The descriptive message about the current detailed status.
Returns:
etag
public abstract String etag()
Gets the etag property: Resource ETag.
Returns:
extendedLocation
public abstract ExtendedLocation extendedLocation()
Gets the extendedLocation property: The extended location of the cluster associated with the resource.
Returns:
id
public abstract String id()
Gets the id property: Fully qualified resource Id for the resource.
Returns:
identity
public abstract ManagedServiceIdentity identity()
Gets the identity property: The identity for the resource.
Returns:
innerModel
public abstract VirtualMachineInner innerModel()
Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.VirtualMachineInner object.
Returns:
isolateEmulatorThread
public abstract VirtualMachineIsolateEmulatorThread isolateEmulatorThread()
Gets the isolateEmulatorThread property: Field Deprecated, the value will be ignored if provided. The indicator of whether one of the specified CPU cores is isolated to run the emulator thread for this virtual machine.
Returns:
location
public abstract String location()
Gets the location property: The geo-location where the resource lives.
Returns:
memorySizeGB
public abstract long memorySizeGB()
Gets the memorySizeGB property: The memory size of the virtual machine. Allocations are measured in gibibytes.
Returns:
name
public abstract String name()
Gets the name property: The name of the resource.
Returns:
networkAttachments
public abstract List<NetworkAttachment> networkAttachments()
Gets the networkAttachments property: The list of network attachments to the virtual machine.
Returns:
networkData
public abstract String networkData()
Gets the networkData property: Field Deprecated: The Base64 encoded cloud-init network data. The networkDataContent property will be used in preference to this property.
Returns:
networkDataContent
public abstract String networkDataContent()
Gets the networkDataContent property: The Base64 encoded cloud-init network data.
Returns:
placementHints
public abstract List<VirtualMachinePlacementHint> placementHints()
Gets the placementHints property: The scheduling hints for the virtual machine.
Returns:
powerOff
public abstract OperationStatusResult powerOff()
Power off the virtual machine. Power off the provided virtual machine.
Returns:
powerOff
public abstract OperationStatusResult powerOff(VirtualMachinePowerOffParameters virtualMachinePowerOffParameters, Context context)
Power off the virtual machine. Power off the provided virtual machine.
Parameters:
Returns:
powerState
public abstract VirtualMachinePowerState powerState()
Gets the powerState property: The power state of the virtual machine.
Returns:
provisioningState
public abstract VirtualMachineProvisioningState provisioningState()
Gets the provisioningState property: The provisioning state of the virtual machine.
Returns:
refresh
public abstract VirtualMachine refresh()
Refreshes the resource to sync with Azure.
Returns:
refresh
public abstract VirtualMachine refresh(Context context)
Refreshes the resource to sync with Azure.
Parameters:
Returns:
region
public abstract Region region()
Gets the region of the resource.
Returns:
regionName
public abstract String regionName()
Gets the name of the resource region.
Returns:
reimage
public abstract OperationStatusResult reimage()
Reimage the virtual machine. Reimage the provided virtual machine.
Returns:
reimage
public abstract OperationStatusResult reimage(Context context)
Reimage the virtual machine. Reimage the provided virtual machine.
Parameters:
Returns:
resourceGroupName
public abstract String resourceGroupName()
Gets the name of the resource group.
Returns:
restart
public abstract OperationStatusResult restart()
Restart the virtual machine. Restart the provided virtual machine.
Returns:
restart
public abstract OperationStatusResult restart(Context context)
Restart the virtual machine. Restart the provided virtual machine.
Parameters:
Returns:
sshPublicKeys
public abstract List<SshPublicKey> sshPublicKeys()
Gets the sshPublicKeys property: The list of ssh public keys. Each key will be added to the virtual machine using the cloud-init ssh_authorized_keys mechanism for the adminUsername.
Returns:
start
public abstract OperationStatusResult start()
Start the virtual machine. Start the provided virtual machine.
Returns:
start
public abstract OperationStatusResult start(Context context)
Start the virtual machine. Start the provided virtual machine.
Parameters:
Returns:
storageProfile
public abstract StorageProfile storageProfile()
Gets the storageProfile property: The storage profile that specifies size and other parameters about the disks related to the virtual machine.
Returns:
systemData
public abstract SystemData systemData()
Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
tags
public abstract Map<String,String> tags()
Gets the tags property: Resource tags.
Returns:
type
public abstract String type()
Gets the type property: The type of the resource.
Returns:
update
public abstract VirtualMachine.Update update()
Begins update for the VirtualMachine resource.
Returns:
userData
public abstract String userData()
Gets the userData property: Field Deprecated: The Base64 encoded cloud-init user data. The userDataContent property will be used in preference to this property.
Returns:
userDataContent
public abstract String userDataContent()
Gets the userDataContent property: The Base64 encoded cloud-init user data.
Returns:
virtioInterface
public abstract VirtualMachineVirtioInterfaceType virtioInterface()
Gets the virtioInterface property: Field Deprecated, use virtualizationModel instead. The type of the virtio interface.
Returns:
vmDeviceModel
public abstract VirtualMachineDeviceModelType vmDeviceModel()
Gets the vmDeviceModel property: The type of the device model to use.
Returns:
vmImage
public abstract String vmImage()
Gets the vmImage property: The virtual machine image that is currently provisioned to the OS disk, using the full url and tag notation used to pull the image.
Returns:
vmImageRepositoryCredentials
public abstract ImageRepositoryCredentials vmImageRepositoryCredentials()
Gets the vmImageRepositoryCredentials property: The credentials used to login to the image repository that has access to the specified image.
Returns:
volumes
public abstract List<String> volumes()
Gets the volumes property: The resource IDs of volumes that are attached to the virtual machine.
Returns: