size = 5
to give a 10% discount from the list rate only on the first 5 uses in the billing period.applicable_product_tags
and product_id
fields in the API or UI. Any product that has a product tag included in the applicable_product_tags
array, or with the specified product ID is targeted for the override.
If you need more complex logic, use the override_specifiers
field in the API to target overrides based on combinations of product ID, product tags, and pricing and presentation group values.
The override_specifiers
field takes in an array of objects, where each object is called a specifier. Within each specifier all fields are ANDed together. If the conditions of any specifier in the array are met, then the line item is targeted for the override.
For example, this override_specifiers
field targets a multiplier against any usage that meets either of these requirements:
Read
and Write
and a pricing group value of resource.region = af-south-1
Query
and the pricing group values resource.region = uaenorth
and resource.hardware = gpu1
us-east1
region and gpu1
hardware type, you must specify the product ID and both pricing group values in the override_specifiers
.starting_at
and ending_before
dates on the override. Beyond that, using product tags to target overrides makes launching new products easier. Add the pertinent product tags to a new product on creation, and any discounts automatically apply.
This API call grants a 30% discount on all products that have either the product tag Read
or Write
for all of 2024. This example has simple targeting logic, so it uses the applicable_product_tags
field. To target products that have both Read
and Write
product tags, you would use the override_specifiers
field instead.
af-south-1
and uaenorth
. So, they negotiate a discount for the usage of your product only in those two regions. If they use resources in other regions, they get charged at the list rate. This API call grants a discount on rates associated with usage in specific regions.
resource.region
and resource.hardware
. Adding the above override ensures that usage within af-south-1
and uaenorth
receive a 30% discount, regardless of the hardware type.
cluster_id
and resource_id
combination.