[BETA] Request generation of key/secret that allow caller to assume target role

POST /iam-role/{target-role-id}/assume

[BETA] Request generation of key/secret that allow caller to assume target role

Path parameters

  • target-role-id string(uuid) Required
application/json

Body Required

  • ttl integer(int64)

    TTL in seconds for the generated access key (cannot exceed the max TTL defined in the targeted assume role)

    Minimum value is 0.

Responses

  • 200 application/json

    200

    Hide response attributes Show response attributes object
    • key string
    • name string
    • org-id string
    • role-id string
    • secret string
POST /iam-role/{target-role-id}/assume
curl \
 --request POST 'https://api-ch-gva-2.exoscale.com/v2/iam-role/{target-role-id}/assume' \
 --header "Content-Type: application/json" \
 --data '{"ttl":42}'
Request examples
{
  "ttl": 42
}
Response examples (200)
{
  "key": "string",
  "name": "string",
  "org-id": "string",
  "role-id": "string",
  "secret": "string"
}