Reporting group

📘

Beta

Hello. Just a note to let you know the underlying API on which this resource is built is general release and has been vetted, but because this is a new feature for our Terraform provider, we've given it beta label.

This status just means we've paused for a bit to get your feedback to make sure this resource works like you need and expect.

Create, update, or delete a reporting group. A reporting group organizes CP codes under a named group for billing purposes. A CP code can belong to multiple reporting groups.

You can only modify a reporting group's name and assigned CP codes.

To remove a group, run terraform destroy. You can only delete a reporting group if you have admin permissions. Deleting a reporting group removes information from your bill. However, it doesn't change the total cost.

Note: If you accidentally delete a reporting group, create a new group with the same CP codes to manage your billing going forward, and contact your ​Akamai​ representative to get historical billing information updated.

resource "akamai_reportinggroups_group" "my-group" {
  reporting_group_name = "My reporting group"
  access_group = {
    contract_id = "C-0N7RAC7"
    group_id    = "54321"
  }
  contract = {
    contract_id = "C-0N7RAC7"
    cp_codes = [
      {
        cp_code_id = "12345"
      },
      {
        cp_code_id = "54321"
      }
    ]
  }
}
my-group = {
  access_group         = {
    contract_id = "C-0N7RAC7"
    group_id    = "54321"
  }
  contract             = {
    contract_id = "C-0N7RAC7"
    cp_codes    = [
      {
        cp_code_id   = "12345"
        cp_code_name = "My CP code"
      },
      {
        cp_code_id   = "54321"
        cp_code_name = "My other CP code"
      },
    ]
  }
  reporting_group_id   = 98765
  reporting_group_name = "My reporting group"
}

Arguments

Pass a reporting group name along with the access group and contract details to create a new reporting group.

Important: You can't change contract and group IDs after you create the reporting group.

Name Required Description
reporting_group_name A human-readable name for the reporting group.
access_group An access control group that controls access to specific CP codes.
  • contract_id. Required. A contract's ID.
  • group_id. An access control group's ID. Required when creating the resource.
contract A contract and CP codes assigned to the reporting group.
  • contract_id. Required. A contract's ID.
  • cp_codes. Required. A collection of CP codes assigned to the reporting group. All CP codes in a reporting group must come from the same contract. At least one CP code is required.
    • cp_code_id. Required. A CP code's ID.

Attributes

There is no default standard output. Adding an output block returns the reporting group's details that you provided on create and the computed attributes.

NameDescription
reporting_group_idThe reporting group's ID.
contractThe contract and CP codes assigned to the reporting group returned in a cp_codes set with a human-readable cp_code_name for each group.