The com.vmware.vcenter.vm.hardware_client module provides classes for managing the virtual hardware configuration and state of a virtual machine. This includes methods for reading and manipulating virtual device configuration and for querying the runtime state of the devices.
Bases: vmware.vapi.bindings.stub.VapiInterface
The Boot class provides methods for configuring the settings used when booting a virtual machine.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Boot.CreateSpec class describes settings used when booting a virtual machine.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Boot.Info class contains information about the virtual machine boot process.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
The Boot.NetworkProtocol class defines the valid network boot protocols supported when booting a virtual machine with Boot.Type.EFI firmware over the network.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the NetworkProtocol instance. |
---|
PXE or Apple NetBoot over IPv4.
PXE over IPv6.
Bases: vmware.vapi.bindings.enum.Enum
The Boot.Type class defines the valid firmware types for a virtual machine.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the Type instance. |
---|
Basic Input/Output System (BIOS) firmware.
Extensible Firmware Interface (EFI) firmware.
Bases: vmware.vapi.bindings.struct.VapiStruct
The Boot.UpdateSpec class describes the updates to the settings used when booting a virtual machine.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Returns the boot-related settings of a virtual machine.
Parameters: | vm (str) – Virtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine. |
---|---|
Return type: | Boot.Info |
Returns: | Boot-related settings of the virtual machine. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine is not found. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Updates the boot-related settings of a virtual machine.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine is not found. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument if one of the provided settings is not permitted; for example, specifying a negative value for delay. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Bases: vmware.vapi.bindings.stub.VapiInterface
The Cdrom class provides methods for configuring the virtual CD-ROM devices of a virtual machine.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Cdrom.BackingInfo class contains information about the physical resource backing a virtual CD-ROM device.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Cdrom.BackingSpec class provides a specification of the physical resource backing a virtual CD-ROM device.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
The Cdrom.BackingType class defines the valid backing types for a virtual CD-ROM device.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the BackingType instance. |
---|
Virtual CD-ROM device is backed by a device on the client that is connected to the virtual machine console.
Virtual CD-ROM device is backed by a device on the host where the virtual machine is running.
Virtual CD-ROM device is backed by an ISO file.
Bases: vmware.vapi.bindings.struct.VapiStruct
The Cdrom.CreateSpec class provides a specification for the configuration of a newly-created virtual CD-ROM device.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
The Cdrom.DeviceAccessType class defines the valid device access types for a physical device packing of a virtual CD-ROM device.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the DeviceAccessType instance. |
---|
ATAPI or SCSI device emulation.
Raw passthru device access.
Raw passthru device access, with exclusive access to the device.
Bases: vmware.vapi.bindings.enum.Enum
The Cdrom.HostBusAdapterType class defines the valid types of host bus adapters that may be used for attaching a Cdrom to a virtual machine.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the HostBusAdapterType instance. |
---|
Cdrom is attached to an IDE adapter.
Cdrom is attached to a SATA adapter.
Bases: vmware.vapi.bindings.struct.VapiStruct
The Cdrom.Info class contains information about a virtual CD-ROM device.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Resource type for the virtual CD-ROM device.
Bases: vmware.vapi.bindings.struct.VapiStruct
The Cdrom.Summary class contains commonly used information about a virtual CD-ROM device.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: | cdrom (str) – Identifier of the virtual CD-ROM device. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Cdrom.UpdateSpec class describes the updates to be made to the configuration of a virtual CD-ROM device.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Connects a virtual CD-ROM device of a powered-on virtual machine to its backing. Connecting the virtual device makes the backing accessible from the perspective of the guest operating system.
For a powered-off virtual machine, the Cdrom.update() method may be used to configure the virtual CD-ROM device to start in the connected state when the virtual machine is powered on.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual CD-ROM device is not found. |
Raise : | com.vmware.vapi.std.errors_client.AlreadyInDesiredState if the virtual CD-ROM device is already connected. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the virtual machine is not powered on. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Adds a virtual CD-ROM device to the virtual machine.
Parameters: |
|
---|---|
Return type: | str |
Returns: | Virtual CD-ROM device identifier. The return value will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reported that the CD-ROM device was created but was unable to confirm the creation because the identifier of the new device could not be determined. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine is not found. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the virtual machine is suspended or if the virtual machine is powered on and virtual CD-ROM type is IDE. |
Raise : | com.vmware.vapi.std.errors_client.UnableToAllocateResource if the specified storage address is unavailable; for example, if the SCSI adapter requested does not exist. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInUse if the specified storage address is in use. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument if the specified storage address is out of bounds. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Raise : | com.vmware.vapi.std.errors_client.Unsupported if the guest operating system of the virtual machine is not supported and spec includes None attributes that default to guest-specific values. |
Removes a virtual CD-ROM device from the virtual machine.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual CD-ROM device is not found. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the virtual machine is suspended or if the virtual machine is powered on and virtual CD-ROM type is IDE. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Disconnects a virtual CD-ROM device of a powered-on virtual machine from its backing. The virtual device is still present and its backing configuration is unchanged, but from the perspective of the guest operating system, the CD-ROM device is not connected to its backing resource.
For a powered-off virtual machine, the Cdrom.update() method may be used to configure the virtual CD-ROM device to start in the disconnected state when the virtual machine is powered on.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual CD-ROM device is not found. |
Raise : | com.vmware.vapi.std.errors_client.AlreadyInDesiredState if the virtual CD-ROM device is already disconnected. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the virtual machine is not powered on. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Returns information about a virtual CD-ROM device.
Parameters: |
|
---|---|
Return type: | |
Returns: | Information about the specified virtual CD-ROM device. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual CD-ROM device is not found. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Returns commonly used information about the virtual CD-ROM devices belonging to the virtual machine.
Parameters: | vm (str) – Virtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine. |
---|---|
Return type: | list of Cdrom.Summary |
Returns: | List of commonly used information about virtual CD-ROM devices. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine is not found. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Updates the configuration of a virtual CD-ROM device.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual CD-ROM device is not found. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if one or more of the attributes specified in the spec parameter cannot be modified due to the current power state of the virtual machine or the connection state of the virtual CD-ROM device. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Bases: vmware.vapi.bindings.struct.VapiStruct
The ConnectionCreateSpec class provides a specification for the configuration of a newly-created removable device.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The ConnectionInfo class provides information about the state and configuration of a removable virtual device.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
The ConnectionState class defines the valid states for a removable device that is configured to be connected.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the ConnectionState instance. |
---|
The device is connected and working correctly.
The device is not connected.
Device connection failed due to a recoverable error; for example, the virtual device backing is currently in use by another virtual machine.
The device status is unknown.
Device connection failed due to an unrecoverable error; for example, the virtual device backing does not exist.
Bases: vmware.vapi.bindings.struct.VapiStruct
The ConnectionUpdateSpec class describes the updates to be made to the configuration of a removable virtual device.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.stub.VapiInterface
The Cpu class provides methods for configuring the CPU settings of a virtual machine.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Cpu.Info class contains CPU-related information about a virtual machine.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Cpu.UpdateSpec class describes the updates to be made to the CPU-related settings of a virtual machine.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Returns the CPU-related settings of a virtual machine.
Parameters: | vm (str) – Virtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine. |
---|---|
Return type: | Cpu.Info |
Returns: | CPU-related settings of the virtual machine. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine is not found. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Updates the CPU-related settings of a virtual machine.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine is not found. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument if one of the provided settings is not permitted; for example, specifying a negative value for count. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if hotAddEnabled or hotRemoveEnabled is specified and the virtual machine is not powered off. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if count is specified and is greater than count, hotAddEnabled is false, and the virtual machine is not powered off. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if count is specified and is less than count, hotRemoveEnabled is false, and the virtual machine is not powered off. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Bases: vmware.vapi.bindings.stub.VapiInterface
The Disk class provides methods for configuring the virtual disks of a virtual machine. A virtual disk has a backing such as a VMDK file. The backing has an independent lifecycle from the virtual machine when it is detached from the virtual machine. The Disk.create() method provides the ability to create a new virtual disk. When creating a virtual disk, a new VMDK file may be created or an existing VMDK file may used as a backing. Once a VMDK file is associated with a virtual machine, its lifecycle will be bound to the virtual machine. In other words, it will be deleted when the virtual machine is deleted. The Disk.delete() method provides the ability to detach a VMDK file from the virtual machine. The Disk.delete() method does not delete the VMDK file that backs the virtual disk. Once detached, the VMDK file will not be destroyed when the virtual machine to which it was associated is deleted.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Disk.BackingInfo class contains information about the physical resource backing a virtual disk.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Disk.BackingSpec class provides a specification of the physical resource backing a virtual disk.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
The Disk.BackingType class defines the valid backing types for a virtual disk.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the BackingType instance. |
---|
Virtual disk is backed by a VMDK file.
Bases: vmware.vapi.bindings.struct.VapiStruct
The Disk.CreateSpec class provides a specification for the configuration of a newly-created virtual disk.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
The Disk.HostBusAdapterType class defines the valid types of host bus adapters that may be used for attaching a virtual storage device to a virtual machine.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the HostBusAdapterType instance. |
---|
Disk is attached to an IDE adapter.
Disk is attached to a SATA adapter.
Disk is attached to a SCSI adapter.
Bases: vmware.vapi.bindings.struct.VapiStruct
The Disk.Info class contains information about a virtual disk.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Resource type for the virtual disk.
Bases: vmware.vapi.bindings.struct.VapiStruct
The Disk.Summary class contains commonly used information about a virtual disk.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: | disk (str) – Identifier of the virtual Disk. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Disk.UpdateSpec class describes the updates to be made to the configuration of a virtual disk.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: | backing (Disk.BackingSpec or None) – Physical resource backing for the virtual disk. This attribute may only be modified if the virtual machine is not powered on. If None, the value is unchanged. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Disk.VmdkCreateSpec class provides a specification for creating a new VMDK file to be used as a backing for a virtual disk. The virtual disk will be stored in the same directory as the virtual machine’s configuration file.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Adds a virtual disk to the virtual machine. While adding the virtual disk, a new VMDK file may be created or an existing VMDK file may be used to back the virtual disk.
Parameters: |
|
---|---|
Return type: | str |
Returns: | Virtual disk identifier. The return value will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk. |
Raise : | com.vmware.vapi.std.errors_client.Error if system reported that the disk device was created but was unable to confirm the creation because the identifier of the new device could not be determined. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine is not found. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the virtual machine is suspended or if the virtual machine is powered on and virtual disk type is IDE. |
Raise : | com.vmware.vapi.std.errors_client.UnableToAllocateResource if the specified storage address is unavailable; for example, if the SCSI adapter requested does not exist. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInUse if the specified storage address is in use. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument if the specified storage address is out of bounds. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Raise : | com.vmware.vapi.std.errors_client.Unsupported if the guest operating system of the virtual machine is not supported and spec includes None attributes that default to guest-specific values. |
Removes a virtual disk from the virtual machine. This method does not destroy the VMDK file that backs the virtual disk. It only detaches the VMDK file from the virtual machine. Once detached, the VMDK file will not be destroyed when the virtual machine to which it was associated is deleted.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual disk is not found. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the virtual machine is suspended or if the virtual machine is powered on and virtual disk type is IDE. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Returns information about a virtual disk.
Parameters: |
|
---|---|
Return type: | |
Returns: | Information about the specified virtual disk. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual disk is not found. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Returns commonly used information about the virtual disks belonging to the virtual machine.
Parameters: | vm (str) – Virtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine. |
---|---|
Return type: | list of Disk.Summary |
Returns: | List of commonly used information about the virtual disks. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine is not found. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Updates the configuration of a virtual disk. An update method can be used to detach the existing VMDK file and attach another VMDK file to the virtual machine.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual disk is not found. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if one or more of the attributes specified in the spec parameter cannot be modified due to the current power state of the virtual machine or the connection state of the virtual disk. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Bases: vmware.vapi.bindings.stub.VapiInterface
The Ethernet class provides methods for configuring the virtual Ethernet adapters of a virtual machine.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Ethernet.BackingInfo class contains information about the physical resource backing a virtual Ethernet adapter.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Ethernet.BackingSpec class provides a specification of the physical resource that backs a virtual Ethernet adapter.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
The Ethernet.BackingType class defines the valid backing types for a virtual Ethernet adapter.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the BackingType instance. |
---|
Distributed virtual switch backing.
Legacy host device network backing. Imported VMs may have virtual Ethernet adapters with this type of backing, but this type of backing cannot be used to create or to update a virtual Ethernet adapter.
Opaque network backing.
vSphere standard portgroup network backing.
Bases: vmware.vapi.bindings.struct.VapiStruct
The Ethernet.CreateSpec class provides a specification for the configuration of a newly-created virtual Ethernet adapter.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
The Ethernet.EmulationType class defines the valid emulation types for a virtual Ethernet adapter.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the EmulationType instance. |
---|
E1000 ethernet adapter.
E1000e ethernet adapter.
AMD Lance PCNet32 Ethernet adapter.
VMware Vmxnet virtual Ethernet adapter.
VMware Vmxnet2 virtual Ethernet adapter.
VMware Vmxnet3 virtual Ethernet adapter.
Bases: vmware.vapi.bindings.struct.VapiStruct
The Ethernet.Info class contains information about a virtual Ethernet adapter.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
The Ethernet.MacAddressType class defines the valid MAC address origins for a virtual Ethernet adapter.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the MacAddressType instance. |
---|
MAC address is assigned by vCenter Server.
MAC address is generated automatically.
MAC address is assigned statically.
Resource type for the virtual Ethernet adapter.
Bases: vmware.vapi.bindings.struct.VapiStruct
The Ethernet.Summary class contains commonly used information about a virtual Ethernet adapter.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: | nic (str) – Identifier of the virtual Ethernet adapter. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Ethernet.UpdateSpec class describes the updates to be made to the configuration of a virtual Ethernet adapter.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Connects a virtual Ethernet adapter of a powered-on virtual machine to its backing. Connecting the virtual device makes the backing accessible from the perspective of the guest operating system.
For a powered-off virtual machine, the Ethernet.update() method may be used to configure the virtual Ethernet adapter to start in the connected state when the virtual machine is powered on.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual Ethernet adapter is not found. |
Raise : | com.vmware.vapi.std.errors_client.AlreadyInDesiredState if the virtual Ethernet adapter is already connected. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the virtual machine is not powered on. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Adds a virtual Ethernet adapter to the virtual machine.
Parameters: |
|
---|---|
Return type: | str |
Returns: | Virtual Ethernet adapter identifier. The return value will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reported that the Ethernet adapter was created but was unable to confirm the creation because the identifier of the new adapter could not be determined. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or network backing is not found. |
Raise : | com.vmware.vapi.std.errors_client.UnableToAllocateResource if the virtual machine already has the maximum number of supported Ethernet adapters. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument if the specified PCI address is out of bounds, HOST_DEVICE is specified as the type, or a backing cannot be found in the case that backing is left None. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Raise : | com.vmware.vapi.std.errors_client.Unsupported if the guest operating system of the virtual machine is not supported and spec includes None attributes that default to guest-specific values. |
Removes a virtual Ethernet adapter from the virtual machine.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual Ethernet adapter is not found. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Disconnects a virtual Ethernet adapter of a powered-on virtual machine from its backing. The virtual device is still present and its backing configuration is unchanged, but from the perspective of the guest operating system, the Ethernet adapter is not connected to its backing resource.
For a powered-off virtual machine, the Ethernet.update() method may be used to configure the virtual Ethernet adapter to start in the disconnected state when the virtual machine is powered on.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual Ethernet adapter is not found. |
Raise : | com.vmware.vapi.std.errors_client.AlreadyInDesiredState if the virtual Ethernet adapter is already disconnected. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the virtual machine is not powered on. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Returns information about a virtual Ethernet adapter.
Parameters: |
|
---|---|
Return type: | |
Returns: | Information about the specified virtual Ethernet adapter. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual Ethernet adapter is not found. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Returns commonly used information about the virtual Ethernet adapters belonging to the virtual machine.
Parameters: | vm (str) – Virtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine. |
---|---|
Return type: | list of Ethernet.Summary |
Returns: | List of commonly used information about virtual Ethernet adapters. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine is not found. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Updates the configuration of a virtual Ethernet adapter.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument if HOST_DEVICE is specified as the type. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine, virtual Ethernet adapter, or backing network is not found. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Bases: vmware.vapi.bindings.stub.VapiInterface
The Floppy class provides methods for configuring the virtual floppy drives of a virtual machine.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Floppy.BackingInfo class contains information about the physical resource backing a virtual floppy drive.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Floppy.BackingSpec class provides a specification of the physical resource backing a virtual floppy drive.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
The Floppy.BackingType class defines the valid backing types for a virtual floppy drive.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the BackingType instance. |
---|
Virtual floppy drive is backed by a device on the client that is connected to the virtual machine console.
Virtual floppy drive is backed by a device on the host where the virtual machine is running.
Virtual floppy drive is backed by an image file.
Bases: vmware.vapi.bindings.struct.VapiStruct
The Floppy.CreateSpec class provides a specification for the configuration of a newly-created virtual floppy drive.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Floppy.Info class contains information about a virtual floppy drive.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Resource type for the virtual floppy drive device.
Bases: vmware.vapi.bindings.struct.VapiStruct
The Floppy.Summary class contains commonly used information about a virtual floppy drive.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: | floppy (str) – Identifier of the virtual floppy drive. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Floppy. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Floppy. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Floppy.UpdateSpec class describes the updates to be made to the configuration of a virtual floppy drive.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Connects a virtual floppy drive of a powered-on virtual machine to its backing. Connecting the virtual device makes the backing accessible from the perspective of the guest operating system.
For a powered-off virtual machine, the Floppy.update() method may be used to configure the virtual floppy drive to start in the connected state when the virtual machine is powered on.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual floppy drive is not found. |
Raise : | com.vmware.vapi.std.errors_client.AlreadyInDesiredState if the virtual floppy drive is already connected. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the virtual machine is not powered on. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Adds a virtual floppy drive to the virtual machine.
Parameters: |
|
---|---|
Return type: | str |
Returns: | Virtual floppy drive identifier. The return value will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Floppy. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reported that the floppy device was created but was unable to confirm the creation because the identifier of the new device could not be determined. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine is not found. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the virtual machine is not powered off. |
Raise : | com.vmware.vapi.std.errors_client.UnableToAllocateResource if the virtual machine already has the maximum number of supported floppy drives. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Removes a virtual floppy drive from the virtual machine.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual floppy drive is not found. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the virtual machine is not powered off. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Disconnects a virtual floppy drive of a powered-on virtual machine from its backing. The virtual device is still present and its backing configuration is unchanged, but from the perspective of the guest operating system, the floppy drive is not connected to its backing resource.
For a powered-off virtual machine, the Floppy.update() method may be used to configure the virtual floppy floppy to start in the disconnected state when the virtual machine is powered on.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual floppy drive is not found. |
Raise : | com.vmware.vapi.std.errors_client.AlreadyInDesiredState if the virtual floppy drive is already disconnected. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the virtual machine is not powered on. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Returns information about a virtual floppy drive.
Parameters: |
|
---|---|
Return type: | |
Returns: | Information about the specified virtual floppy drive. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual floppy drive is not found. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Returns commonly used information about the virtual floppy drives belonging to the virtual machine.
Parameters: | vm (str) – Virtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine. |
---|---|
Return type: | list of Floppy.Summary |
Returns: | List of commonly used information about virtual floppy drives. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine is not found. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Updates the configuration of a virtual floppy drive.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual floppy drive is not found. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if one or more of the attributes specified in the spec parameter cannot be modified due to the current power state of the virtual machine or the connection state of the virtual floppy drive. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Bases: vmware.vapi.bindings.struct.VapiStruct
The IdeAddressInfo class contains information about the address of a virtual device that is attached to a virtual IDE adapter of a virtual machine.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The IdeAddressSpec class contains information for specifying the address of a virtual device that is attached to a virtual IDE adapter of a virtual machine.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.stub.VapiInterface
The Memory class provides methods for configuring the memory settings of a virtual machine.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Memory.Info class contains memory-related information about a virtual machine.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Memory.UpdateSpec class describes the updates to be made to the memory-related settings of a virtual machine.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Returns the memory-related settings of a virtual machine.
Parameters: | vm (str) – Virtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine. |
---|---|
Return type: | Memory.Info |
Returns: | Memory-related settings of the virtual machine. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine is not found. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Updates the memory-related settings of a virtual machine.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine is not found. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument if one of the provided settings is not permitted; for example, specifying a negative value for sizeMiB. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if hotAddEnabled is specified and the virtual machine is not powered off. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if sizeMiB is specified, hotAddEnabled is false, and the virtual machine is not powered off. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Bases: vmware.vapi.bindings.stub.VapiInterface
The Parallel class provides methods for configuring the virtual parallel ports of a virtual machine.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Parallel.BackingInfo class contains information about the physical resource backing a virtual parallel port.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Parallel.BackingSpec class provides a specification of the physical resource backing a virtual parallel port.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
The Parallel.BackingType class defines the valid backing types for a virtual parallel port.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the BackingType instance. |
---|
Virtual parallel port is backed by a file.
Virtual parallel port is backed by a device on the host where the virtual machine is running.
Bases: vmware.vapi.bindings.struct.VapiStruct
The Parallel.CreateSpec class provides a specification for the configuration of a newly-created virtual parallel port.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Parallel.Info class contains information about a virtual parallel port.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Resource type for the virtual parallel port.
Bases: vmware.vapi.bindings.struct.VapiStruct
The Parallel.Summary class contains commonly used information about a virtual parallel port.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: | port (str) – Identifier of the virtual parallel port. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.ParallelPort. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.ParallelPort. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Parallel.UpdateSpec class describes the updates to be made to the configuration of a virtual parallel port.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Connects a virtual parallel port of a powered-on virtual machine to its backing. Connecting the virtual device makes the backing accessible from the perspective of the guest operating system.
For a powered-off virtual machine, the Parallel.update() method may be used to configure the virtual parallel port to start in the connected state when the virtual machine is powered on.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual parallel port is not found. |
Raise : | com.vmware.vapi.std.errors_client.AlreadyInDesiredState if the virtual parallel port is already connected. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the virtual machine is not powered on. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Adds a virtual parallel port to the virtual machine.
Parameters: |
|
---|---|
Return type: | str |
Returns: | Virtual parallel port identifier. The return value will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.ParallelPort. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reported that the parallel port device was created but was unable to confirm the creation because the identifier of the new device could not be determined. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine is not found. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the virtual machine is not powered off. |
Raise : | com.vmware.vapi.std.errors_client.UnableToAllocateResource if the virtual machine already has the maximum number of supported parallel ports. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Removes a virtual parallel port from the virtual machine.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual parallel port is not found. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the virtual machine is not powered off. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Disconnects a virtual parallel port of a powered-on virtual machine from its backing. The virtual device is still present and its backing configuration is unchanged, but from the perspective of the guest operating system, the parallel port is not connected to its backing.
For a powered-off virtual machine, the Parallel.update() method may be used to configure the virtual parallel port to start in the disconnected state when the virtual machine is powered on.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual parallel port is not found. |
Raise : | com.vmware.vapi.std.errors_client.AlreadyInDesiredState if the virtual parallel port is already disconnected. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the virtual machine is not powered on. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Returns information about a virtual parallel port.
Parameters: |
|
---|---|
Return type: | |
Returns: | Information about the specified virtual parallel port. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual parallel port is not found. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Returns commonly used information about the virtual parallel ports belonging to the virtual machine.
Parameters: | vm (str) – Virtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine. |
---|---|
Return type: | list of Parallel.Summary |
Returns: | List of commonly used information about virtual parallel ports. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine is not found. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Updates the configuration of a virtual parallel port.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual parallel port is not found. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if one or more of the attributes specified in the spec parameter cannot be modified due to the current power state of the virtual machine or the connection state of the virtual parallel port. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Bases: vmware.vapi.bindings.struct.VapiStruct
The SataAddressInfo class contains information about the address of a virtual device that is attached to a virtual SATA adapter of a virtual machine.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The SataAddressSpec class contains information for specifying the address of a virtual device that is attached to a virtual SATA adapter of a virtual machine.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The ScsiAddressInfo class contains information about the address of a virtual device that is attached to a virtual SCSI adapter of a virtual machine.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The ScsiAddressSpec class contains information for specifying the address of a virtual device that is attached to a virtual SCSI adapter of a virtual machine.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.stub.VapiInterface
The Serial class provides methods for configuring the virtual serial ports of a virtual machine.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Serial.BackingInfo class contains information about the physical resource backing a virtual serial port.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Serial.BackingSpec class provides a specification of the physical resource backing a virtual serial port.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
The Serial.BackingType class defines the valid backing types for a virtual serial port.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the BackingType instance. |
---|
Virtual serial port is backed by a file.
Virtual serial port is backed by a device on the host where the virtual machine is running.
Virtual serial port is backed by a network client. This backing may be used to create a network-accessible serial port on the virtual machine, initiating a connection to a remote system.
Virtual serial port is backed by a network server. This backing may be used to create a network-accessible serial port on the virtual machine, accepting a connection from a remote system.
Virtual serial port is backed by a named pipe client. The virtual machine will connect to the named pipe provided by a host application or another virtual machine on the same host. This is useful for capturing debugging information sent through the virtual serial port.
Virtual serial port is backed by a named pipe server. The virtual machine will accept a connection from a host application or another virtual machine on the same host. This is useful for capturing debugging information sent through the virtual serial port.
Bases: vmware.vapi.bindings.struct.VapiStruct
The Serial.CreateSpec class provides a specification for the configuration of a newly-created virtual serial port.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Serial.Info class contains information about a virtual serial port.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Resource type for the virtual serial port device.
Bases: vmware.vapi.bindings.struct.VapiStruct
The Serial.Summary class contains commonly used information about a virtual serial port.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: | port (str) – Identifier of the virtual serial port. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.SerialPort. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.SerialPort. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Serial.UpdateSpec class describes the updates to be made to the configuration of a virtual serial port.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Connects a virtual serial port of a powered-on virtual machine to its backing. Connecting the virtual device makes the backing accessible from the perspective of the guest operating system.
For a powered-off virtual machine, the Serial.update() method may be used to configure the virtual serial port to start in the connected state when the virtual machine is powered on.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual serial port is not found. |
Raise : | com.vmware.vapi.std.errors_client.AlreadyInDesiredState if the virtual serial port is already connected. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the virtual machine is not powered on. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Adds a virtual serial port to the virtual machine.
Parameters: |
|
---|---|
Return type: | str |
Returns: | Virtual serial port identifier. The return value will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.SerialPort. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reported that the serial port device was created but was unable to confirm the creation because the identifier of the new device could not be determined. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine is not found. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the virtual machine is not powered off. |
Raise : | com.vmware.vapi.std.errors_client.UnableToAllocateResource if the virtual machine already has the maximum number of supported serial ports. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Removes a virtual serial port from the virtual machine.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual serial port is not found. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the virtual machine is not powered off. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Disconnects a virtual serial port of a powered-on virtual machine from its backing. The virtual device is still present and its backing configuration is unchanged, but from the perspective of the guest operating system, the serial port is not connected to its backing.
For a powered-off virtual machine, the Serial.update() method may be used to configure the virtual serial port to start in the disconnected state when the virtual machine is powered on.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual serial port is not found. |
Raise : | com.vmware.vapi.std.errors_client.AlreadyInDesiredState if the virtual serial port is already disconnected. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the virtual machine is not powered on. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Returns information about a virtual serial port.
Parameters: |
|
---|---|
Return type: | |
Returns: | Information about the specified virtual serial port. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual serial port is not found. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Returns commonly used information about the virtual serial ports belonging to the virtual machine.
Parameters: | vm (str) – Virtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine. |
---|---|
Return type: | list of Serial.Summary |
Returns: | List of commonly used information about virtual serial ports. |
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine is not found. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |
Updates the configuration of a virtual serial port.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error if the system reports an error while responding to the request. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the virtual machine or virtual serial port is not found. |
Raise : | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if one or more of the attributes specified in the spec parameter cannot be modified due to the current power state of the virtual machine or the connection state of the virtual serial port. |
Raise : | com.vmware.vapi.std.errors_client.ResourceBusy if the virtual machine is busy performing another operation. |
Raise : | com.vmware.vapi.std.errors_client.ResourceInaccessible if the virtual machine’s configuration state cannot be accessed. |
Raise : | com.vmware.vapi.std.errors_client.ServiceUnavailable if the system is unable to communicate with a service to complete the request. |
Raise : | com.vmware.vapi.std.errors_client.Unauthenticated if the user can not be authenticated. |
Raise : | com.vmware.vapi.std.errors_client.Unauthorized if the user doesn’t have the required privileges. |