QueryVmInstance
QueryVmInstance
/zstack/v1/vm-instances/zstack/v1/vm-instances/{uuid}Operation ID
QueryVmInstanceSince
0.6Execution Mode
SynchronousAuth Context
Auth RequiredAuth Context
Send these values as request headers when calling this API.
AuthorizationstringRequiredBearer Token
X-Tenant-IDstringX-Tenant-ID
Request Inputs
Query Parameters
qStringQuery conditions.
Responses
200 OKOn success, this API returns the following response structure.
errorErrorCodeRequiredThe error code. If not null, the operation fails, or vice versa. For more information, see error.
codeStringRequiredThe error code, which is a numbered or alphanumeric code that specifies an error. For example, SYS.1000, HOST.1001.
descriptionStringRequiredThe brief description of the error.
detailsStringRequiredThe details about the error.
elaborationStringRequiredThe reserved field. Default value: null.
opaqueLinkedHashMapRequiredThe reserved field. Default value: null.
causeErrorCodeRequiredThe root error, which is the associated root cause of the current error. If no root error exists, this parameter is null.
inventoriesListRequiredSee inventories.
uuidStringRequiredThe resource UUID.
nameStringRequiredThe resource name.
descriptionStringRequiredThe detailed description of the resource.
zoneUuidStringRequiredThe zone UUID.
clusterUuidStringRequiredThe cluster UUID.
imageUuidStringRequiredThe image UUID.
hostUuidStringRequiredThe host UUID.
lastHostUuidStringRequiredThe last host UUID.
instanceOfferingUuidStringRequiredThe instance offering UUID.
rootVolumeUuidStringRequiredThe root volume UUID.
platformStringRequiredThe platform.
architectureStringRequiredThe architecture type.
defaultL3NetworkUuidStringRequiredThe default L3 network UUID.
typeStringRequiredThe VM instance type. Options: UserVm ApplianceVm
hypervisorTypeStringRequiredThe hypervisor type.
memorySizeLongRequiredThe memory size.
cpuNumIntegerRequiredThe number of CPUs.
cpuSpeedLongRequiredThe CPU speed.
allocatorStrategyStringRequiredThe allocator strategy.
createDateTimestampRequiredThe creation date.
lastOpDateTimestampRequiredThe last operation date.
stateStringRequiredThe state of the VM instance. Options: Created Starting Running Stopping Stopped Rebooting Destroying Destroyed Migrating Expunging Pausing Paused Resuming VolumeMigrating Unknown
guestOsTypeStringRequiredThe Operating System type.
vmNicsListRequiredSee vmNics.
uuidStringRequiredThe resource UUID.
vmInstanceUuidStringRequiredThe VM instance UUID.
l3NetworkUuidStringRequiredThe L3 network UUID.
ipStringRequiredThe IP address.
macStringRequiredThe MAC address.
hypervisorTypeStringRequiredThe hypervisor type.
netmaskStringRequiredThe netmask.
gatewayStringRequiredThe gateway.
metaDataStringRequiredThe metadata.
ipVersionIntegerRequiredThe IP version.
deviceIdIntegerRequiredThe device ID.
typeStringRequiredThe NIC type.
usedIpsListRequiredFor more information, see usedIps
uuidStringRequiredThe resource UUID.
ipRangeUuidStringRequiredThe IP range UUID.
l3NetworkUuidStringRequiredThe L3 network UUID.
ipVersionIntegerRequiredThe IP version.
ipStringRequiredThe IP address.
netmaskStringRequiredThe netmask.
gatewayStringRequiredThe gateway.
usedForStringRequiredThe intended use.
ipInLonglongRequiredThe IP address represented as a long integer.
vmNicUuidStringRequiredThe VM NIC UUID.
createDateTimestampRequiredThe creation date.
lastOpDateTimestampRequiredThe last operation date.
createDateTimestampRequiredThe creation date.
lastOpDateTimestampRequiredThe last operation date.
allVolumesListRequiredSee allVolumes.
uuidStringRequiredThe resource UUID.
nameStringRequiredThe resource name.
descriptionStringRequiredThe detailed description of the resource.
primaryStorageUuidStringRequiredThe primary storage UUID.
vmInstanceUuidStringRequiredThe VM instance UUID.
diskOfferingUuidStringRequiredThe disk offering UUID.
rootImageUuidStringRequiredThe root image UUID.
installPathStringRequiredThe installation path.
typeStringRequiredThe volume type.
formatStringRequiredThe volume format.
sizeLongRequiredThe volume size.
actualSizeLongRequiredThe actual size of the volume.
deviceIdIntegerRequiredThe device ID.
stateStringRequiredThe volume state.
statusStringRequiredThe volume status.
createDateTimestampRequiredThe creation date.
lastOpDateTimestampRequiredThe last operation date.
isShareableBooleanRequiredWhether the resource is shareable.
volumeQosStringRequiredThe volume QoS, in the format of total=1048576
vmCdRomsListRequiredSee vmCdRoms
uuidStringRequiredThe resource UUID.
vmInstanceUuidStringRequiredThe VM instance UUID.
deviceIdIntegerRequiredThe drive sequence number.
isoUuidStringRequiredThe ISO image UUID.
isoInstallPathStringRequiredThe mount path of the ISO image.
nameStringRequiredThe resource name.
descriptionStringOptional. The detailed description of the resource.
createDateTimestampRequiredThe creation date.
lastOpDateTimestampRequiredThe last operation date.
