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

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://openapi-v2.exoscale.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
"Exoscale APIv2 MCP server": {
  "url": "https://openapi-v2.exoscale.com/mcp"
}
Close
POST /iam-role/{id}/assume

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

Path parameters

  • id string(uuid) Required
application/json

Body Required

  • ttl integer(int64) Required

    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
    • expires-at string
POST /iam-role/{id}/assume
curl \
 --request POST 'https://api-ch-gva-2.exoscale.com/v2/iam-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",
  "expires-at": "string"
}