VM Related Interfaces

Get VM Instance First Boot Device

GET/zstack/v1/vm-instances/{uuid}/first-boot-device

Headers

Authorization: OAuth the-session-uuid

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/vm-instances/50d8c8ed7d4737fd99a2e323cefeac81/first-boot-device

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
uuidStringurlResource UUID, uniquely identifies the resource 3.7.0
systemTags (Optional)ListquerySystem Tag 3.7.0
userTags (Optional)ListqueryUser Tag 3.7.0

API Response

Response Example

{
  "firstBootDevice": "CdRom"
}
NameTypeDescriptionStarting Version
firstBootDeviceStringVirtual Machine first boot device3.7.0
errorErrorCodeError code. If not null, the operation failed. When the operation succeeds, this field is null. For details, see error3.7.0

error

NameTypeDescriptionStarting Version
codeStringError code number, a globally unique identifier of the error, for example SYS.1000, HOST.10013.7.0
descriptionStringBrief description of the error3.7.0
detailsStringDetailed error information3.7.0
elaborationStringReserved field, defaults to null3.7.0
opaqueLinkedHashMapReserved field, defaults to null3.7.0
causeErrorCodeRoot cause. The error that triggered the current error. If there is no original error, this field is null3.7.0

SDK Examples

Java SDK

GetVmInstanceFirstBootDeviceAction action = new GetVmInstanceFirstBootDeviceAction();
action.uuid = "50d8c8ed7d4737fd99a2e323cefeac81";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetVmInstanceFirstBootDeviceAction.Result res = action.call();

Python SDK

GetVmInstanceFirstBootDeviceAction action = GetVmInstanceFirstBootDeviceAction()
action.uuid = "50d8c8ed7d4737fd99a2e323cefeac81"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetVmInstanceFirstBootDeviceAction.Result res = action.call()