gridscale authentication plugin for HTTPie.
httpie plugins install httpie-gridscale-auth
or
pip install --upgrade httpie-gridscale-auth
You should now see httpie-gridscale-auth
when running httpie plugins list
.
The syntax and behavior is the same as with the basic auth.
http --auth-type gs --auth USERID:TOKEN https://api.gridscale.io/objects/locations
The names are identical to what gscloud
and other gridscale tools use, so you
might be already good to go.
export GRIDSCALE_UUID="<USERID>"
export GRIDSCALE_TOKEN="<TOKEN>"
http -A gs https://api.gridscale.io/objects/locations
The plugin uses the configuration that gscloud
and other gridscale tools use,
so you might be already good to go.
http --auth-type gs https://api.gridscale.io/objects/locations
It will use the project named "default" until you specify a project name or gridscale userId like this:
http --auth-type gs --auth <NAME|USERID> https://api.gridscale.io/objects/locations