Role
akamai_iam_role
Get details about a given role.
data "akamai_iam_role" "my_role" {
role_id = 123456
}
output "my_role" {
value = data.akamai_iam_role.my_role
}
my_role = {
actions = {
delete = false
edit = true
}
created_by = "jsmith"
created_date = "2022-09-27T18:14:13Z"
granted_roles = [
{
granted_role_description = "This role lets users edit or create reports."
granted_role_id = 12345
granted_role_name = "Edit Reports"
},
{
granted_role_description = "Admin role for Marketplace Direct Contract."
granted_role_id = 987654
granted_role_name = "AMD Reports"
},
]
modified_by = "jmith"
modified_date = "2023-03-08T14:51:04Z"
role_description = "Lets a user process business admin tasks."
role_id = 123456
role_name = "Business Admin"
type = "custom"
users = [
{
account_id = "act_A-CCT1234"
email = "jsmith@email.com"
first_name = "John"
last_login_date = "2024-09-20T21:37:35.504Z"
last_name = "Smith"
ui_identity_id = "A-BC-987654"
},
{
account_id = "act_A-CCT1234"
email = "janesmith@email.com"
first_name = "Jane"
last_login_date = "2023-12-16T19:42:18.955Z"
last_name = "Smith"
ui_identity_id = "A-BC-1234567"
},
]
}
Arguments
Pass a role_id to get information about the role.
Attributes
Returned is a list of details about the given role.
| Attribute | Description |
|---|---|
role_id | The role's ID |
actions | The operations you can perform on the role.
|
created_by | The user who created the role. |
created_date | The role's creation date in ISO 8601 format. |
modified_by | The user who last modified the role. |
modified_date | The role's modification date in ISO 8601 format. |
role_description | A human-readable note about the role. |
role_name | The role's name. |
type | The role type. Possible values:
|
granted_roles | A list of roles granted to the user. Contains:
|
users | A list of users who are granted a given role. Contains:
|
Updated 16 days ago
