<div dir="ltr"><div>I guess others may ask the same questions. </div><div><br></div><div>I read the nova API doc: </div><div>such as this API: </div><div><a href="http://developer.openstack.org/api-ref-compute-v2.1.html#showServer">http://developer.openstack.org/api-ref-compute-v2.1.html#showServer</a><br></div><div><br></div><div><div class="" style="min-height:1px;padding-right:15px;padding-left:15px;float:left;width:365.625px;color:rgb(83,83,83);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:18.1818px">GET /v2.1/​{tenant_id}​/servers/​{server_id}​</div><div class="" style="min-height:1px;padding-right:15px;padding-left:15px;float:left;width:365.625px;color:rgb(83,83,83);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:18.1818px"><strong id="showServer">Show server details</strong></div></div><div><br></div><div><br></div><div><b style="color:rgb(83,83,83);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:18.1818px">Request parameters</b><br></div><div><table class="" style="border-collapse:collapse;border-spacing:0px;max-width:100%;width:847.273px;margin-bottom:20px;border:1px solid rgb(221,221,221);color:rgb(83,83,83);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:18.1818px"><thead><tr><th style="padding:8px;line-height:1.42857;vertical-align:bottom;border-width:0px 1px 2px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);border-right-style:solid;border-left-style:solid;border-right-color:rgb(221,221,221);border-left-color:rgb(221,221,221)">Parameter</th><th style="padding:8px;line-height:1.42857;vertical-align:bottom;border-width:0px 1px 2px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);border-right-style:solid;border-left-style:solid;border-right-color:rgb(221,221,221);border-left-color:rgb(221,221,221)">Style</th><th style="padding:8px;line-height:1.42857;vertical-align:bottom;border-width:0px 1px 2px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);border-right-style:solid;border-left-style:solid;border-right-color:rgb(221,221,221);border-left-color:rgb(221,221,221)">Type</th><th style="padding:8px;line-height:1.42857;vertical-align:bottom;border-width:0px 1px 2px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);border-right-style:solid;border-left-style:solid;border-right-color:rgb(221,221,221);border-left-color:rgb(221,221,221)">Description</th></tr></thead><tbody><tr><td style="padding:8px;line-height:1.42857;vertical-align:top;border:1px solid rgb(221,221,221);background-color:rgb(249,249,249)">tenant_id</td><td style="padding:8px;line-height:1.42857;vertical-align:top;border:1px solid rgb(221,221,221);background-color:rgb(249,249,249)">URI</td><td style="padding:8px;line-height:1.42857;vertical-align:top;border:1px solid rgb(221,221,221);background-color:rgb(249,249,249)">csapi:UUID</td><td style="padding:8px;line-height:1.42857;vertical-align:top;border:1px solid rgb(221,221,221);background-color:rgb(249,249,249)"><p style="margin:0px 0px 10px">The UUID of the tenant in a multi-tenancy cloud.</p></td></tr><tr><td style="padding:8px;line-height:1.42857;vertical-align:top;border:1px solid rgb(221,221,221)">server_id</td><td style="padding:8px;line-height:1.42857;vertical-align:top;border:1px solid rgb(221,221,221)">URI</td><td style="padding:8px;line-height:1.42857;vertical-align:top;border:1px solid rgb(221,221,221)">csapi:UUID</td><td style="padding:8px;line-height:1.42857;vertical-align:top;border:1px solid rgb(221,221,221)"><p style="margin:0px 0px 10px">The UUID of the server.</p></td></tr></tbody></table></div><div><br></div><div>But I can get the server by DB index: </div><div><br></div><div>curl -s -H X-Auth-Token:6b8968eb38df47c6a09ac9aee81ea0c6 <a href="http://192.168.2.103:8774/v2.1/f5a8829cc14c4825a2728b273aa91aa1/servers/2">http://192.168.2.103:8774/v2.1/f5a8829cc14c4825a2728b273aa91aa1/servers/2</a><br></div><div><div>{</div><div>    "server": {</div><div>        "OS-DCF:diskConfig": "MANUAL",</div><div>        "OS-EXT-AZ:availability_zone": "nova",</div><div>        "OS-EXT-SRV-ATTR:host": "shaohe1",</div><div>        "OS-EXT-SRV-ATTR:hypervisor_hostname": "shaohe1",</div><div>        "OS-EXT-SRV-ATTR:instance_name": "instance-00000002",</div><div>        "OS-EXT-STS:power_state": 1,</div><div>        "OS-EXT-STS:task_state": "migrating",</div><div>        "OS-EXT-STS:vm_state": "error",</div><div>        "OS-SRV-USG:launched_at": "2015-12-18T07:41:00.000000",</div><div>        "OS-SRV-USG:terminated_at": null,</div></div><div>        ......</div><div>    }</div><div>}</div><div><br></div><div>and the code really allow it use  DB index</div><div><a href="https://github.com/openstack/nova/blob/master/nova/compute/api.py#L1939">https://github.com/openstack/nova/blob/master/nova/compute/api.py#L1939</a><br></div></div>