| 類別 |
Nova V2 REST API Action |
Nova CLI |
Horizon |
解釋 |
| 虛機操作 |
POST |
boot |
Launch Instance |
啟動一個新的虛機
|
| |
DELETE |
delete |
Terminate Instance |
關閉和刪除一個虛機
- call dom.destroy
- call dom.undefineFlags
|
| |
confirmResize |
resize-confirm |
N/A |
確認 resize 操作
|
| |
revertResize |
resize-revert |
N/A |
取消 resize 操作
|
| |
reboot |
reboot [--hard] |
Soft Reboot Instance
Hard Reboot Instance
|
重啟虛機
|
| |
changePassword |
root-password |
|
libvirt driver 沒有實現 |
| |
resize |
resize |
Resize Instance |
遷移虛機或者改變虛機的flavor |
| |
rebuild |
rebuild |
Rebuild Instance |
先調用 driver.destroy (destroy domain,detach volume connections,plug VIF), 然后再調用 driver.spawn |
| |
createImage |
image-create |
N/A |
快照 |
| |
os-start |
start |
Launch Instance |
= hard reboot |
| |
os-stop |
stop |
Shut Off Instance |
call dom.destroy |
| admin action |
pause |
pause |
Pause Instance |
call dom.suspend |
| |
unpause |
unpause |
Resume Instance |
call dom.resume |
| |
suspend |
suspend |
N/A |
- _detach_pci_devices
- _detach_sriov_ports
- dom.managedSave(0)
|
| |
resume |
resume |
N/A |
- get domain xml
- _create_domain_and_network
- attach pci devices
- attach sriov port
|
| |
migrate |
migrate |
N/A |
遷移 |
| |
resetNetwork |
|
N/A |
libvirt 沒有實現 |
| |
injectNetworkInfo |
|
N/A |
Set up basic filtering (MAC, IP, and ARP spoofing protection),調用 _conn.nwfilterDefineXML(xml) |
| |
lock |
lock |
N/A |
直接在數據庫中 instance 上面設置 lock = true |
| |
unlock |
unlock |
N/A |
直接在數據庫中 instance 上面設置 lock = false |
| |
createBackup |
backup |
N/A |
同 createImage,可以指定類型(daily 或者 weekly),和保存的 image 的最大數目,老的 image 會被刪除
{"backup_type": "daily", "rotation": "2", "name": "bk"}
|
| |
os-migrateLive |
live-migration |
N/A |
熱遷移 |
| |
os-resetState |
reset-state |
N/A |
傳入 state 參數,直接修改數據庫中 instance 的狀態 |
| bare metal |
add_interface |
baremetal-interface-add |
|
TBD |
| |
remove_interface |
baremetal-interface-remove |
|
TBD |
| cloudpipe |
update |
cloudpipe-configure |
|
TBD |
| console |
os-getVNCConsole |
get-vnc-console |
Console |
|
| |
os-getSPICEConsole |
get-spice-console |
|
TBD |
| |
os-getRDPConsole |
get-rdp-console |
|
TBD |
| |
os-getSerialConsole |
|
|
TBD |
| |
os-getConsoleOutput |
console-log |
View Log |
讀取 虛機的 console.log 文件并返回其內容;如果沒有這文件的話,則使用 “pty”,將其內容寫入到 consolue文件并返回其內容。 |
| delete |
restore |
restore |
Terminate Instance |
Restore a previously deleted (but not reclaimed) instance。直接修改數據庫。 |
| |
forceDelete |
force-delete |
N/A |
有 snapshot,則全部刪除;然后從 DB 中刪除 instance.
|
| evacuate |
evacuate |
evacuate |
|
從 DB 中讀取 instance 數據,在一個新的主機上 rebuild。 |
| flavor access |
addTenantAccess |
flavor-access-add |
Flavor - Modify Access |
修改 DB 中 flavor 表 |
| |
removeTenantAccess |
flavor-access-remove |
Flavor - Modify Access |
修改 DB 中 flavor 表 |
| flavor manage |
delete |
flavor-delete |
Flavor - Delete Flavor |
直接 DB 操作 |
| |
create |
flavor-create |
Flavor - Create Flavor |
直接 DB 操作 |
| floating ip |
addFloatingIp |
floating-ip-create |
Associate Floating IP |
調用 network_api.associate_floating_ip |
| |
removeFloatingIp |
floating-ip-delete |
Disassociate Floating IP |
調用 network_api.disassociate_floating_ip |
| NIC |
addFixedIp |
fixed-ip-reserve |
|
參數 "networkId"。
- call network_api.add_fixed_ip_to_instance
- call firewall_driver.setup_basic_filtering
|
| |
removeFixedIp |
fixed-ip-unreserve |
|
參數 "address"。
- call network_api.remove_fixed_ip_from_instance
- call firewall_driver.setup_basic_filtering(instance, nw_info)
|
| network associate |
disassociate_host |
|
|
Associate or disassociate host or project to network。 call network_api.associate |
| |
disassociate_project |
network-disassociate |
|
call network_api.associate |
| |
associate_host |
network-associate-host |
|
call network_api.associate |
| os network |
disassociate |
|
|
call network_api.associate |
| rescue |
rescue |
rescue |
|
|
| |
unrescue |
unrescue |
|
|
| security group |
addSecurityGroup |
add-secgroup |
|
call security_group_rpcapi.refresh_security_group_rules |
| |
removeSecurityGroup |
secgroup-delete |
|
call security_group_rpcapi.refresh_security_group_rules |
| shelve |
shelve |
shelve |
|
|
| |
shelveOffload |
shelve-offload |
|
|
| |
unshelve |
unshelve |
|
|