CP code
BetaHello. Just a note to let you know the underlying API on which this data source 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 data source works like you need and expect.
Retrieve details of a CP code.
To create a new CP code, use the akamai_cp_code resource from the Property Manager subprovider.
data "akamai_reportinggroups_cp_code" "my-cp-code" {
cp_code_id = 12345
}
output "my-cp-code" {
value = data.akamai_reportinggroups_cp_code.my-cp-code
}my-cp-code = {
access_group = {
contract_id = "C-0N7RAC7"
group_id = "54321"
}
account_id = "A-CCT1234"
contracts = [
{
contract_id = "C-0N7RAC7"
status = "ongoing"
},
]
cp_code_id = 12345
default_time_zone = "GMT 0 (Greenwich Mean Time)"
name = "My CP code"
override_time_zone = {
time_zone_id = "0"
time_zone_value = "GMT 0 (Greenwich Mean Time)"
}
products = [
{
product_id = "ObjectDelivery::ObjectDelivery"
product_name = "Object Delivery"
},
]
purgeable = true
type = "Regular"
}Arguments
Pass a CP code ID in the data block to get its details.
Attributes
Returned to you is the CP code with its details.
| Name | Description |
|---|---|
account_id | The account's ID. |
name | The name of the CP code. |
purgeable | When true, you can purge the content cached by the CP code. |
default_time_zone | The default GMT time zone of the CP code. |
override_time_zone | The override GMT time zone that overrides the default time zone of the CP code.
|
type | Whether the CP code supports serving traffic from China, or Regular traffic elsewhere. |
contracts | A list of contracts assigned to the CP code.
|
products | A list of products assigned to the CP code.
|
access_group | A group that controls access to specific CP codes.
|
Updated 3 days ago
