Skip to navigation

Create Role

Creates a custom role.

When creating a role, you’ll specify a list of permissions and, optionally, data access conditions. Data access conditions let you restrict the resources a permission is granted for. For example, for a particular role, you can set data access conditions to allow access only to resources without PII.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
namestringRequired
Role display name. Must be unique in your Eon account.
permissionGrantslist of objectsRequired
Permissions granted by the role.
filePreviewDownloadLimitsobjectOptional
accessConditionslist of objectsOptional

If present, the ID of the set of access conditions that restrict the resources the permission is granted for. The ID must be present in an entry in accessConditions, and the permission itself must support access conditions. If omitted, the permission is granted for all resources.

restoreDestinationLimitsobjectOptional
Limits the restore accounts that can be used as restore destinations for operations granted by the role.
restoreDestinationTagLimitsobjectOptional

Limits the restore accounts that can be used as restore destinations for operations granted by the role, using the tags the cloud provider holds against the account (AWS account tags, Azure subscription tags, or GCP project labels).

Applied in combination with restoreDestinationLimits, so a destination has to satisfy both. Matching is exact on key and value. If Eon discovers no tags for an account, the account satisfies only CONTAINS_NONE_OF.

sameSourceAccountRestoreLimitsobjectOptional
Restricts restoring applicable resources to the source account they were backed up from.

Response

Role created.
roleobject
Role.

Errors

400
Bad Request Error
409
Conflict Error