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:
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.
@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/4b216910ea1c 4701a629d98fd86 00300/servers
tenant_id = 4b216910ea1c470 1a629d98fd86003 00
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": "4b216910ea1c47 01a629d98fd8600 300"
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: developer. openstack. org/api- ref-compute- v2.1.html# showServer
[1] http://