GetVmInstanceFirstBootDevice
API Request
URLs
GET zstack/v1/vm-instances/{uuid}/first-boot-deviceHeaders
Authorization: OAuth the-session-uuidCurl
Sample
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-deviceRequest Parameters
| Name | Type | Location | Description | Optional Value | Starting Version |
|---|---|---|---|---|---|
| uuid | String | url | The resource UUID. | 3.7.0 | |
| systemTags | List | query | Optional. The system tags. | 3.7.0 | |
| userTags | List | query | Optional. The user tags. | 3.7.0 |
API Response
Sample Response
{
"firstBootDevice": "CdRom"
}| Name | Type | Description | Starting Version |
|---|---|---|---|
| firstBootDevice | String | The first boot device of the VM instance. | 3.7.0 |
| error | ErrorCode | The error code. If not null, the operation fails, or vice versa. For more information, see error. | 3.7.0 |
#error
| Name | Type | Description | Starting Version |
|---|---|---|---|
| code | String | The error code, which is a numbered or alphanumeric code that specifies an error. For example, SYS.1000, HOST.1001. | 3.7.0 |
| description | String | The brief description of the error. | 3.7.0 |
| details | String | The details about the error. | 3.7.0 |
| elaboration | String | The reserved field. Default value: null. | 3.7.0 |
| opaque | LinkedHashMap | The reserved field. Default value: null. | 3.7.0 |
| cause | ErrorCode | The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. | 3.7.0 |
SDK Sample
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()