Create a legacy IAM Access Key
POST
/access-key
This operation creates a legacy IAM Access Key, to create a key for use with IAM roles use the api-key endpoint.The corresponding secret is only available in the response returned by this operation, the caller must take care of storing it safely as there is no other way to retrieve it.
Body Required
-
name string
IAM Access Key name
-
operations array[string]
IAM Access Key operations
-
resources array[object]
Access key resource
POST /access-key
curl \
-X POST https://api-ch-gva-2.exoscale.com/v2/access-key \
-H "Content-Type: application/json" \
-d '{"name":"string","tags":["string"],"operations":["string"],"resources":[{"domain":"partner","resource-type":"product","resource-name":"string"}]}'
Request example
{
"name": "string",
"tags": [
"string"
],
"operations": [
"string"
],
"resources": [
{
"domain": "partner",
"resource-type": "product",
"resource-name": "string"
}
]
}
Response examples (200)
{
"name": "string",
"key": "string",
"secret": "string",
"type": "restricted",
"version": "v2",
"tags": [
"string"
],
"operations": [
"string"
],
"resources": [
{
"domain": "partner",
"resource-type": "product",
"resource-name": "string"
}
]
}