Difference between revisions of "NovaAPIv2tov3"
Line 78: | Line 78: | ||
|} | |} | ||
− | + | '''AttachInterfaces''' | |
{| class="wikitable" | {| class="wikitable" | ||
Line 89: | Line 89: | ||
|- | |- | ||
| create || || interfaceAttachment->interface_attachments || || | | create || || interfaceAttachment->interface_attachments || || | ||
+ | |} | ||
+ | |||
+ | '''AvailabilityZone''' | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | ! Action !! Status code !! Request !! Response !! Error code | ||
+ | |- | ||
+ | | index/detail || || || availabilityZoneInfo->availability_zone_info<br />zoneName->zone_name<br />zoneState->zone_state || | ||
+ | |} | ||
+ | |||
+ | '''BlockDeviceMapping''' | ||
+ | |||
+ | Same with Block_device_mapping_v2_boot. But only support new format | ||
+ | |||
+ | '''CellCapacities''' | ||
+ | |||
+ | Merge into cells in v3 | ||
+ | |||
+ | '''Cells''' | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | ! Action !! Status code !! Request !! Response !! Error code | ||
+ | |- | ||
+ | | delete || 200->204 || || || | ||
+ | |- | ||
+ | | create || 200->201 || || || | ||
+ | |- | ||
+ | |sync_instances || 200->204 || || || | ||
|} | |} |
Revision as of 06:05, 7 November 2013
The Changes of Nova API v2 to v3
AccessIPs
Demote from server core as new extension called access-ips.
Action | Status code | Request | Response | Error code |
---|---|---|---|---|
create/show/update/rebuild/detail | access_ip_v4->os-access-ips:access_ip_v4 access_ip_v6->os-access-ips:access_ip_v6 |
access_ip_v4->os-access-ips:access_ip_v4 access_ip_v6->os-access-ips:access_ip_v6 |
AdminActions
Action | Status code | Request | Response | Error Code |
---|---|---|---|---|
pause | InstanceIsLocked: 422->409 | |||
unpause | InstanceIsLocked: 422->409 | |||
suspend | InstanceIsLocked: 422->409 | |||
resume | InstanceIsLocked: 422->409 | |||
migrate | InstanceIsLocked: 400->409 FlavorNotFound: 400->404 TooManyInstances: 400->413 | |||
resetNetwork->reset_network | InstanceIsLocked: 422->409 | |||
injectNetworkInfo->inject_network_info | InstanceIsLocked: 422->409 | |||
createBackup->create_backup | ||||
os-migrateLive->migrate_live | InstanceInvalidState: 400->409 | |||
os-resetState->reset_state |
AdminPassword
Demote action 'changePassword' from server core.
Action | Status code | Request | Response | Error code |
---|---|---|---|---|
changePassword=>change_password | 204->202 | adminPass->admin_password |
Agents
Action | Status code | Request | Response | Error code |
---|---|---|---|---|
update | Invalid Input: 422->400 | |||
delete | 200->204 | |||
create | 200->201 | Invalid Input: 422->400 AgentBuildExists: 500->409 |
Aggregates
Action | Status code | Request | Response | Error code |
---|---|---|---|---|
create | 200->201 | |||
delete | 200->204 | |||
add_host | 200->202 | |||
remove_host | 200->202 |
AttachInterfaces
Action | Status code | Request | Response | Error code |
---|---|---|---|---|
index | interfaceAttachments->interface_attachments | |||
show | interfaceAttachment->interface_attachments | |||
create | interfaceAttachment->interface_attachments |
AvailabilityZone
Action | Status code | Request | Response | Error code |
---|---|---|---|---|
index/detail | availabilityZoneInfo->availability_zone_info zoneName->zone_name zoneState->zone_state |
BlockDeviceMapping
Same with Block_device_mapping_v2_boot. But only support new format
CellCapacities
Merge into cells in v3
Cells
Action | Status code | Request | Response | Error code |
---|---|---|---|---|
delete | 200->204 | |||
create | 200->201 | |||
sync_instances | 200->204 |