Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
POST http://{domain}/_admin/manage/tenants/tenant256/tokens/
Auth: john:password
X-User-Token-Expires-Meta: +730
X-User-Secret-Key-Meta: 5ZdMSEubcFHJjnkyEzy722ZQHjd2xsTo
X-Custom-Meta-Source: Laptop Applications
 
HTTP/1.1 201 Created
Gateway-Request-Id: 7612F7FDB63B7C02 
Set-Cookie: token=cc8ea2467d196b047497818f6271f00c; path=/
Content-Length: 0
Creating a tenant token for S3 with

...

cURL
Code Block
languagebash
$ USER="john"
$ SECRETKEY="1NnYIOXeHfuuW30eARH19iJQXNvvjMSF"
$ EXPIRES="+365"
$ curl -u $USER -X POST --data-binary "" \
	-H "X-User-Secret-Key-Meta: $SECRETKEY" \
	-H "X-User-Token-Expires-Meta: $EXPIRES" \
	"http://mydomain.example.com/_admin/manage/tenants/tenant255/tokens/"
Enter host password for user 'john':
{"token":"8c3955185d3ae8347caca1a14e4e2416", ... }