[openstack-dev] [Nova][API] Does nova API allow the server_id parem as DB index?

少合冯 lvmxhster at gmail.com
Tue Feb 16 00:03:36 UTC 2016

I guess others may ask the same questions.

I read the nova API doc:
such as this API:

GET /v2.1/​{tenant_id}​/servers/​{server_id}​
*Show server details*

*Request parameters*
tenant_id URI csapi:UUID

The UUID of the tenant in a multi-tenancy cloud.
server_id URI csapi:UUID

The UUID of the server.

But I can get the server by DB index:

curl -s -H X-Auth-Token:6b8968eb38df47c6a09ac9aee81ea0c6
    "server": {
        "OS-DCF:diskConfig": "MANUAL",
        "OS-EXT-AZ:availability_zone": "nova",
        "OS-EXT-SRV-ATTR:host": "shaohe1",
        "OS-EXT-SRV-ATTR:hypervisor_hostname": "shaohe1",
        "OS-EXT-SRV-ATTR:instance_name": "instance-00000002",
        "OS-EXT-STS:power_state": 1,
        "OS-EXT-STS:task_state": "migrating",
        "OS-EXT-STS:vm_state": "error",
        "OS-SRV-USG:launched_at": "2015-12-18T07:41:00.000000",
        "OS-SRV-USG:terminated_at": null,

and the code really allow it use  DB index
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160216/a779e89c/attachment.html>

More information about the OpenStack-dev mailing list