cp_code
Version: v2025-09-09 | Includes use: Yes |
|---|
Behavior name: Content Provider Code
Content Provider Codes (CP codes) allow you to distinguish various reporting and billing traffic segments, and you need them to access properties. You receive an initial CP code when purchasing Akamai, and you can run the Create a new CP code operation to generate more.
This behavior applies any valid CP code, either as required as a default at the top of the rule tree, or subsequently to override the default. For a CP code to be valid, it needs to be assigned the same contract and product as the property, and the group needs access to it. For available values, run the List CP codes operation.
Default behavior
These samples reflect the behavior's default settings. You can use these as is in your configurations or make adjustments based on the behavior's available options.
data "akamai_property_rules_builder" "cp_code" {
rules_v2025_09_09 {
name = "Content Provider Code"
comments = "Assigns a CP code for reporting and billing traffic segments."
behavior {
cp_code {
value = ""
}
}
}
}
"behaviors": [
{
"name": "cpCode",
"options": {
"value": ""
}
}
]
Options
| Option | Description |
|---|---|
enable_default_content_provider_code |
Assigns the default CP code to the property.
|
value |
Specifies the CP code as an object. Contains an The CP code's name, description, limits, creation date, and associated products may return in read-only data. |
Updated 30 days ago
