cp_code
Version: v2025-02-18 | 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_02_18 {
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 |
---|---|
value |
Specifies the CP code as an object. You only need to provide the initial
id stripping any cpc_ prefix to pass the integer to the rule tree. Additional CP code details may reflect back in subsequent read-only data.
|
value.cpCodeLimits |
Read-only. Describes the current usage limit for the CP code.
|
value |
Specifies the CP code as an object. You only need to provide the initial
id stripping any cpc_ prefix to pass the integer to the rule tree. Additional CP code details may reflect back in subsequent read-only data.
|
value.createdDate |
Read-only. UNIX epoch timestamp reflecting when the CP code was originally created.
|
value.description |
Read-only. Additional description for the CP code.
|
value.id |
The ID for each CP code. Initially, you get this value when creating a new CP code in PAPI. You can also assign a
cpcodeId value from the List CP codes operation.
|
value.name |
Read-only. The name of your CP code. You can modify this value with the
PUT operation in the CP codes and Reporting Groups API.
|
value.products |
Read-only. The set of products the CP code is assigned to. This reflects
productId values you specify when creating a new CP code in PAPI.
|
Updated 9 days ago