Create discount

Body Params
string | null
string
required

The available CSP values are: [aws, azure, gcp, oracle]

boolean
required
string
enum
Defaults to SOURCE_UNKNOWN
  • SOURCE_USER: Specifies that the discount was manually created by a user
  • SOURCE_TIERED_PRICING_SYNC: Specifies that the discount was automatically synced by CAST AI
Allowed:
date-time | null
date-time | null
string
enum
required
Defaults to TARGET_UNKNOWN
  • TARGET_CPU: Specifies that the discount is applicable to CPU
  • TARGET_MEMORY: Specifies that the discount is applicable to memory
  • TARGET_INSTANCE: Specifies that the discount is applicable to the whole instance
  • TARGET_COMMITMENT: Specifies that the discount is applicable to the commitment
  • TARGET_CUSTOM_CPU: Specifies that the discount is applicable to GCP's custom instance CPU
  • TARGET_CUSTOM_MEMORY: Specifies that the discount is applicable to GCP's custom instance memory
  • TARGET_CUSTOM_EXTENDED_MEMORY: Specifies that the discount is applicable to GCP's custom instance extended RAM
  • TARGET_CUSTOM_INSTANCE: Specifies that the discount is applicable to the whole custom instance
clusters
array of strings

Array of cluster IDs for which the discount should be applied. Empty array means no constraint.

clusters
lifeCycles
array of objects

Array of instance type lifecycles for which the discount should be applied. Empty array means no constraint.

lifeCycles
families
array of strings

Array of instance families for which the discount should be applied. Empty array means no constraint.

families
instanceTypes
array of strings

Array of instance types for which the discount should be applied. If families are provided, types must match the families. Empty array means no constraint.

instanceTypes
regions
array of strings

Array of regions for which the discount should be applied. Empty array means no constraint.

regions
zones
array of strings

Array of zones in which the discount should be applied. If regions are provided, zones must match the regions. Empty array means no constraint.

zones
os
array of strings

The available OS values are: [linux, windows]

os
pricing
array of objects
required

Array of pricing tiers for the discount. Currently only single-tiered discounts are supported.

pricing*
Response

Language
Credentials
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json