- 产品 API 使用指南
- SDDC
- 概览
- 计算
- 虚拟机
- virtual-machines
- /virtual-machines/GET
- /virtual-machines/POST
- /virtual-machines/{clone}POST
- /virtual-machines/{id}GET
- /virtual-machines/{id}DELETE
- /virtual-machines/{id}PATCH
- /virtual-machines/{id}/{failure-migrate}POST
- /virtual-machines/{id}/{flatten}POST
- /virtual-machines/{id}/{migrate}POST
- /virtual-machines/{id}/{reboot}POST
- /virtual-machines/{id}/{rollback}POST
- /virtual-machines/{id}/{start}POST
- /virtual-machines/{id}/{stop}POST
- /virtual-machines/{id}/{verify-gpasswd}POST
- vm-cd-roms
- vm-cleanup-jobs
- vm-disk-cleanup-jobs
- vm-disks
- vm-migration-jobs
- vm-nic-cleanup-jobs
- vm-nics
- vm-scheduling-rules
- 虚拟机快照
- 镜像
- 网络
- 块存储
- 弹性存储
- 集群
- 运维管理
- 标签管理
- 权限访问
- 加密
- 用户管理
- 产品信息
- 系统设置
- SDS
- action-logs
- alert-info-groups
- alert-infos
- alert-rule-groups
- alert-rules
- chunks
- disks
- osds
- pools
- /pools/
- /pools/
- /pools/{calc-capacity}
- /pools/{check-full}
- /pools/{pool_id}
- /pools/{pool_id}
- /pools/{pool_id}
- /pools/{pool_id}/osds
- /pools/{pool_id}/osds
- /pools/{pool_id}/predictions
- /pools/{pool_id}/samples
- /pools/{pool_id}/topology
- /pools/{pool_id}:disable-device-type-check
- /pools/{pool_id}:enable-device-type-check
- /pools/{pool_id}:initialize
- /pools/{pool_id}:reweight
- /pools/{pool_id}:switch-role
- /pools/{pool_id}:update-ec-crush-rule
- /pools/{pool_id}:update-gc-policy
/virtual-machines/{id}
GET
/virtual-machines/{id}
最后修改时间:2022-11-07 17:51:48
责任人:未设置
请求参数
Path 参数
id
integer
必需
Header 参数
x-sddc-token
string
可选
默认值:
78ce2df0c80e4b10a28c7779af4dc10f
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://10.16.11.91:6012/sddc/v1/virtual-machines/' \
--header 'x-sddc-token: 78ce2df0c80e4b10a28c7779af4dc10f'
返回响应
🟢200成功
application/json
Body
VirtualMachine is a virtual machine.
metadata
object (ResourceMeta is the metadata all resource type must have.)
必需
created_at
string <date-time>
必需
creation_finish
string <date-time>
可选
deletion_begin
string <date-time>
可选
deletion_finish
string <date-time>
可选
id
integer <int64>
必需
labels
array[object (ResourceMetaLabel is the label metadata of resource.) {4}]
可选
name
string
可选
project_id
integer <int64>
可选
state
object (ResourceMetaState is the state metadata of resource.)
可选
spec
object (VirtualMachineSpec vm's spec.)
必需
arch
string
必需
bios
string
必需
boot_device_order
array[string]
必需
cloud_init_uuid
string
必需
core_num_per_socket
integer <int64>
必需
cpu_mode
string
必需
cpu_num
integer <int64>
必需
created_at
string <date-time>
必需
creation_finish
string <date-time>
可选
deleted_at
object (NullTime represents a time.Time that may be null.)
可选
it can be used as a scan destination, similar to NullString.
deletion_begin
string <date-time>
可选
deletion_finish
string <date-time>
可选
description
string
必需
dest_node_id
integer <int64>
可选
etag
string
必需
flattened
boolean
必需
graphics_auth_enabled
boolean
必需
graphics_spice_enabled
boolean
必需
ha_enabled
boolean
必需
hostname
string
必需
hugepage_enabled
boolean
必需
id
integer <int64>
必需
memory_mb
integer <int64>
必需
name
string
必需
node_id
integer <int64>
可选
os_distribution
string
必需
os_name
string
必需
os_type
string
必需
os_user_name
string
必需
power_action_forced
boolean
可选
power_action_time
string <date-time>
可选
power_action_type
string
可选
power_state
string
必需
project_id
integer <int64>
必需
rollback_time
string <date-time>
可选
rollback_vm_snap_id
integer <int64>
可选
socket_num
integer <int64>
必需
ssh_public_key
string
必需
thread_num_per_core
integer <int64>
必需
time_zone
string
必需
updated_at
string <date-time>
必需
user_data
string
必需
uuid
string
必需
vm_snap_id
integer <int64>
可选
status
object (VirtualMachineStatus vm's status.)
必需
bios
string
必需
boot_device_order
array[string]
可选
core_num_per_socket
integer <int64>
必需
cpu_mode
string
必需
cpu_num
integer <int64>
必需
created_at
string <date-time>
必需
deleted_at
object (NullTime represents a time.Time that may be null.)
可选
it can be used as a scan destination, similar to NullString.
dest_node_id
integer <int64>
可选
etag
string
必需
flattened
boolean
必需
graphics_auth_enabled
boolean
必需
graphics_spice_enabled
boolean
必需
graphics_spice_port
integer <int64>
可选
graphics_vnc_port
integer <int64>
可选
id
integer <int64>
必需
ip_addresses
array[string]
可选
last_node_id
integer <int64>
可选
launched_at
string <date-time>
可选
machine_type
string
可选
memory_mb
integer <int64>
必需
node_id
integer <int64>
可选
power_action_time
string <date-time>
可选
power_state
string
必需
power_state_reason
string
必需
rollback_time
string <date-time>
可选
socket_num
integer <int64>
必需
storage_fenced
boolean
必需
terminated_at
string <date-time>
可选
thread_num_per_core
integer <int64>
必需
time_zone
string
必需
unschedulable
boolean
必需
unstoppable
boolean
必需
updated_at
string <date-time>
必需
vm_migration_job_id
integer <int64>
可选
vm_snap_num
integer <int64>
必需
示例
{
"metadata": {
"created_at": "2019-08-24T14:15:22Z",
"creation_finish": "2019-08-24T14:15:22Z",
"deletion_begin": "2019-08-24T14:15:22Z",
"deletion_finish": "2019-08-24T14:15:22Z",
"id": 0,
"labels": [
{
"label_key_id": 0,
"label_key_name": "string",
"label_value_id": 0,
"label_value_name": "string"
}
],
"name": "string",
"project_id": 0,
"state": {
"diff_fields": {
"irreconcilable": [
"string"
],
"reconciling": [
"string"
]
},
"state": "string"
}
},
"spec": {
"arch": "string",
"bios": "string",
"boot_device_order": [
"string"
],
"cloud_init_uuid": "string",
"core_num_per_socket": 0,
"cpu_mode": "string",
"cpu_num": 0,
"created_at": "2019-08-24T14:15:22Z",
"creation_finish": "2019-08-24T14:15:22Z",
"deleted_at": {
"Time": "2019-08-24T14:15:22Z",
"Valid": true
},
"deletion_begin": "2019-08-24T14:15:22Z",
"deletion_finish": "2019-08-24T14:15:22Z",
"description": "string",
"dest_node_id": 0,
"etag": "string",
"flattened": true,
"graphics_auth_enabled": true,
"graphics_spice_enabled": true,
"ha_enabled": true,
"hostname": "string",
"hugepage_enabled": true,
"id": 0,
"memory_mb": 0,
"name": "string",
"node_id": 0,
"os_distribution": "string",
"os_name": "string",
"os_type": "string",
"os_user_name": "string",
"power_action_forced": true,
"power_action_time": "2019-08-24T14:15:22Z",
"power_action_type": "string",
"power_state": "string",
"project_id": 0,
"rollback_time": "2019-08-24T14:15:22Z",
"rollback_vm_snap_id": 0,
"socket_num": 0,
"ssh_public_key": "string",
"thread_num_per_core": 0,
"time_zone": "string",
"updated_at": "2019-08-24T14:15:22Z",
"user_data": "string",
"uuid": "string",
"vm_snap_id": 0
},
"status": {
"bios": "string",
"boot_device_order": [
"string"
],
"core_num_per_socket": 0,
"cpu_mode": "string",
"cpu_num": 0,
"created_at": "2019-08-24T14:15:22Z",
"deleted_at": {
"Time": "2019-08-24T14:15:22Z",
"Valid": true
},
"dest_node_id": 0,
"etag": "string",
"flattened": true,
"graphics_auth_enabled": true,
"graphics_spice_enabled": true,
"graphics_spice_port": 0,
"graphics_vnc_port": 0,
"id": 0,
"ip_addresses": [
"string"
],
"last_node_id": 0,
"launched_at": "2019-08-24T14:15:22Z",
"machine_type": "string",
"memory_mb": 0,
"node_id": 0,
"power_action_time": "2019-08-24T14:15:22Z",
"power_state": "string",
"power_state_reason": "string",
"rollback_time": "2019-08-24T14:15:22Z",
"socket_num": 0,
"storage_fenced": true,
"terminated_at": "2019-08-24T14:15:22Z",
"thread_num_per_core": 0,
"time_zone": "string",
"unschedulable": true,
"unstoppable": true,
"updated_at": "2019-08-24T14:15:22Z",
"vm_migration_job_id": 0,
"vm_snap_num": 0
}
}
修改于 2022-11-07 17:51:48