Skip to content

Instantly share code, notes, and snippets.

@MCDong
Created September 20, 2016 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MCDong/445249b7238c4d766f464bc3498f8bf2 to your computer and use it in GitHub Desktop.
Save MCDong/445249b7238c4d766f464bc3498f8bf2 to your computer and use it in GitHub Desktop.
GET /v2/CALL_EXTERNAL|syntribos.extensions.identity.client:get_project_id_v3:["user"]|/os-hypervisors/{hypervisor_id:CALL_EXTERNAL|syntribos.extensions.nova.client:get_hypervisor_id:[]|} HTTP/1.1
Accept: application/json
X-Auth-Token: CALL_EXTERNAL|syntribos.extensions.identity.client:get_scoped_token_v3:["user"]|
@cneill
Copy link

cneill commented Sep 20, 2016

This would be slightly easier to stomach if it was:

GET /v2/CALL_EXT|identity:get_project_id_v3:["user"]|/os-hypervisors/{hypervisor_id:CALL_EXT|nova:get_hypervisor_id:[]|} HTTP/1.1
Accept: application/json
X-Auth-Token: CALL_EXT|identity:get_scoped_token_v3:["user"]|

@cneill
Copy link

cneill commented Sep 20, 2016

Only other option I can think of that isn't a complete re-write (i.e. going to YAML) would be something like:

GET /v2/{tenant_id}/os-hypervisors/{hypervisor_id} HTTP/1.1
Accept: application/json
X-Auth-Token: {token}
========================
{
    "tenant_id": "identity:get_project_id_v3",
    "hypervisor_id": "nova:get_hypervisor_id",
    "token": "identity:get_scoped_token_v3"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment