Comment 1 for bug 1551660

Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

@Cristian:

The "tenant_id" is part of the URI and *not* part of the parameters in
the request body. The value "URI" in the "Style" column explains that.
It's especially good to see when querying server details [1]:

    GET /v2.1/​{tenant_id}​/servers/​{server_id}​

    Parameter Style
    tenant_id URI
    server_id URI

Your POST call to create a server provides the "tenant_id" in its URI:

    http://10.13.111.56:8774/v2/4b216910ea1c4701a629d98fd8600300/servers

    tenant_id = 4b216910ea1c4701a629d98fd8600300

The other "tenant_id" you provide in the request body is silently
ignored.

Your call to get the server details shows that it correctly uses the
"tenant_id" you provided in the URI of the POST call:

    "tenant_id": "4b216910ea1c4701a629d98fd8600300"

The API behaves as expected and documented, which means I close this
bug report as "invalid". If you disagree, please reopen the bug and
provide a reasoning.

References:
[1] http://developer.openstack.org/api-ref-compute-v2.1.html#showServer