GetVmBootOrder
API Request
URLs
GET zstack/v1/vm-instances/{uuid}/boot-ordersHeaders
Authorization: OAuth the-session-uuidCurl
Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth: 458995c072644d28b32b26f69e512c2c" \
-X GET http://localhost:8080/zstack/v1/vm-instances/426cff83f17d4a5aa7c752484d730f20/boot-ordersRequest Parameters
| Name | Type | Location | Description | Optional Value | Starting Version |
|---|---|---|---|---|---|
| uuid | String | url | The VM instance UUID. | 0.6 | |
| systemTags | List | query | Optional. The system tags. | 0.6 | |
| userTags | List | query | Optional. The user tags. | 0.6 |
API Response
Sample
Response
{
"order": [
"HardDisk",
"CdRom"
]
}| Name | Type | Description | Starting Version |
|---|---|---|---|
| orders | List | The boot device list. | 0.6 |
| error | ErrorCode | The error code. If not null, the operation fails, or vice versa. For more information, see error. | 0.6 |
#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. | 0.6 |
| description | String | The brief description of the error. | 0.6 |
| details | String | The details about the error. | 0.6 |
| elaboration | String | The reserved field. Default value: null. | 0.6 |
| opaque | LinkedHashMap | The reserved field. Default value: null. | 0.6 |
| cause | ErrorCode | The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. | 0.6 |
SDK Sample
Java
SDK
GetVmBootOrderAction action = new GetVmBootOrderAction();
action.uuid = "914ab429715b40d59efa76c1ccfe64d8";
action.sessionId = "0472be4a6e2c4e7c9d7bcf3da2938313";
GetVmBootOrderAction.Result res = action.call();Python
SDK
GetVmBootOrderAction action = GetVmBootOrderAction()
action.uuid = "cba88e6e561049c8b7beaeccf4d46279"
action.sessionId = "bd37fd5e33e847d4bef4bb536d6410ea"
GetVmBootOrderAction.Result res = action.call()