Create IAM Role
POST
/iam-role
Body Required
-
name string Required
IAM Role name
Minimum length is
1
, maximum length is191
. -
description string
IAM Role description
Minimum length is
1
, maximum length is255
. -
permissions array[string]
IAM Role permissions
Value is
bypass-governance-retention
. -
editable boolean
Sets if the IAM Role Policy is editable or not (default: true). This setting cannot be changed after creation
-
labels object
Private Network labels
-
policy object
Policy
POST /iam-role
curl \
-X POST https://api-ch-gva-2.exoscale.com/v2/iam-role \
-H "Content-Type: application/json" \
-d '{"name":"string","description":"string","permissions":["bypass-governance-retention"],"editable":true,"labels":{},"policy":{"default-service-strategy":"allow","services":{}}}'
Request example
{
"name": "string",
"description": "string",
"permissions": [
"bypass-governance-retention"
],
"editable": true,
"labels": {},
"policy": {
"default-service-strategy": "allow",
"services": {}
}
}
Response example (200)
{
"id": "string",
"reason": "incorrect",
"reference": {
"id": "string",
"link": "string",
"command": "string"
},
"message": "string",
"state": "failure"
}