[Openstack] help: os-virtual-interfaces API does not work well. how to get the macaddress of a vm instance by using restful API?

Licongjuan licongjuan at huawei.com
Thu Nov 7 06:54:04 UTC 2013


Hi,
I have tested the os-virtual-interfaces API described here http://api.openstack.org/api-ref-compute.html#compute_server-addresses, but got the 500 error and the response

Message is "{"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}". My request message is :
    GET /v2/{tenant_id}/servers/{server_id}/os-virtual-interfaces HTTP/1.1
Host:{ ip}:8774
Content-Type: application/json
Accept: application/json
X-Auth-Token:0065fb7de25146aeb70c0c207db18ad7

Is there anything wrong? Does anyone know how to get the macaddress of a vm instance?

By the way, does anyone know how to get the ipaddress of a host by a restful API?

Thanks,

lisa

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20131107/0fd8b78a/attachment.html>


More information about the Openstack mailing list