GuideReference
TrainingSupportCommunity
Guide

Group

akamai_iam_group

Get details about a given group and any of its subgroups.

data "akamai_iam_group" "my_group" {
  group_id = 12345
}

output "my_group" {
  value = data.akamai_iam_group.my_group
}
Changes to Outputs:
  + my_group = {
      + actions         = {
          + delete = false
          + edit   = true
        }
      + created_by      = "Akamai"
      + created_date    = "2023-01-22T22:00:01.000Z"
      + group_id        = 12345
      + group_name      = "My group"
      + modified_by     = "jsmith"
      + modified_date   = "2023-06-06T16:16:27.000Z"
      + parent_group_id = 0
      + sub_groups      = [
          + {
              + actions         = {
                  + delete = false
                  + edit   = true
                }
              + created_by      = "jsmith"
              + created_date    = "2023-01-20T17:21:07.000Z"
              + group_id        = 23456
              + group_name      = "Subgroup 1"
              + modified_by     = "jsmith"
              + modified_date   = "2023-03-20T17:08:23.000Z"
              + parent_group_id = 12345
              + sub_groups      = null
            },
          + {
              + actions         = {
                  + delete = false
                  + edit   = true
                }
              + created_by      = "jsmith"
              + created_date    = "2023-04-20T15:27:19.000Z"
              + group_id        = 98765
              + group_name      = "Subgroup 2"
              + modified_by     = "jsmith"
              + modified_date   = "2023-05-21T10:42:19.000Z"
              + parent_group_id = 12345
              + sub_groups      = []
            },
        ]
    }

Argument

Pass a group_id in the data block to get information about a group.

Attributes

Returned are details about the given group.

AttributeDescription
actionsThe operations you can perform on the role.
  • delete. Whether you can delete the role.
    • true allows you to delete the role.
    • false means you can't.
  • edit. Whether you can edit the role.
    • true allows you to update the role.
    • false means you can't.
created_byThe user who created the group.
created_dateThe group's creation date in ISO 8601 format.
modified_byThe user who last modified the group.
modified_dateThe group's modification date in ISO 8601 format.
group_idThe group's ID.
group_nameThe group's name.
parent_group_idThe group's parent group ID.
sub_groupsA list of subgroups for the group, if any.