Add IAM role to an S3 Instant Access endpoint
Adds a user-defined IAM role to allow access to an S3 Instant Access endpoint.
Path Parameters
- endpoint_id string required
ID of the endpoint to add a role
- application/json
Request Body required
- is_allow_external_account boolean
Allow the addition of a role from an external account. This requires a feature flag to be enabled, contact support@clumio.com.
- role_alias string
Descriptive alias of the IAM role.
- role_arn string required
ARN of the IAM role to allow access the endpoint. The role must be accessible from AWS account registered with Clumio.
Responses
- 200
- default
Success
- application/api.clumio.restored-protection-group-instant-access-endpoints=v1+json
- Schema
- Example (from schema)
Schema
_embedded object
_links object
- role_id string
The issued ID to the added role
{
"_embedded": {},
"_links": {
"_self": {
"href": "string",
"templated": true,
"type": "string"
}
},
"role_id": "string"
}
Error
- application/json
- Schema
- Example (from schema)
Schema
errors object[]
{
"errors": [
{
"error_code": 0,
"error_message": "string"
}
]
}
POST /restores/protection-groups/instant-access-endpoints/:endpoint_id/roles
Authorization
Request
Request
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/instant-access-endpoints/:endpoint_id/roles' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-group-instant-access-endpoints=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"is_allow_external_account": true,
"role_alias": "string",
"role_arn": "string"
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/instant-access-endpoints/:endpoint_id/roles' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-group-instant-access-endpoints=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"is_allow_external_account": true,
"role_alias": "string",
"role_arn": "string"
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/instant-access-endpoints/:endpoint_id/roles' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-group-instant-access-endpoints=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"is_allow_external_account": true,
"role_alias": "string",
"role_arn": "string"
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/instant-access-endpoints/:endpoint_id/roles' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-group-instant-access-endpoints=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"is_allow_external_account": true,
"role_alias": "string",
"role_arn": "string"
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/instant-access-endpoints/:endpoint_id/roles' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-group-instant-access-endpoints=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"is_allow_external_account": true,
"role_alias": "string",
"role_arn": "string"
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/instant-access-endpoints/:endpoint_id/roles' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-group-instant-access-endpoints=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"is_allow_external_account": true,
"role_alias": "string",
"role_arn": "string"
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/protection-groups/instant-access-endpoints/:endpoint_id/roles' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.restored-protection-group-instant-access-endpoints=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"is_allow_external_account": true,
"role_alias": "string",
"role_arn": "string"
}'