For the complete documentation index, see llms.txt. This page is also available as Markdown.

Exchanges

API for commitment exchange recommendations

Get Azure exchange recommendations

get

Returns Azure reservation exchange recommendations using the same recommendation logic as the beta exchange endpoint, including plan-derived exchanges and eligible same-SKU 1-year native to 1-year GRI exchanges. When plan_id is omitted, the endpoint prefers the latest calculated 'Recommended RIs Only' default plan for the provider-resources segment (a twin of the Recommended plan without savings plans, which cannot be exchanged), falling back to the Recommended default plan when that plan does not exist yet. Currently only provider=azure is supported.

Path parameters
org_idstring · uuidRequired
Query parameters
providerstring · enumRequired

Cloud provider (aws, azure, gcp)

Example: awsPossible values:
plan_idstring · nullableOptional

Optional commitment plan ID to use for plan-derived exchange purchases. When omitted, the endpoint prefers the latest calculated 'Recommended RIs Only' default plan for the provider-resources segment — a twin of the Recommended plan without savings plans, which cannot be exchanged — falling back to the same Recommended default plan selected by GET /commitment-plans/recommended when that plan does not exist yet. Responses may also include non-plan-derived native-to-GRI exchanges.

Default: null
commitment_idsstring · uuid[] · nullableOptional

Optional explicit Azure commitment IDs to consider returning. When omitted, the exchanger detects underutilized exchange candidates from the default 3-day DailyUtilization lookback. Explicit commitments without utilization rows in that lookback are excluded. Mutually exclusive with plan_id.

Default: null
Responses
200

OK

application/json
current_utilization_lookback_daysintegerRequired

Number of trailing days of DailyUtilization used for returned-commitment utilization and financials.

get/v1/org/{org_id}/exchanges/recommendations

Apply Azure exchange recommendations

post

Requests application of one Azure reservation exchange recommendation using the same explicit purchase and return item body as the beta exchange endpoint. Currently only provider=azure is supported.

Path parameters
org_idstring · uuidRequired
Body
providerstring · enumRequired

Cloud provider (aws, azure, gcp)

Example: awsPossible values:
Responses
200

OK

application/json
statusstringRequired

Application status for the exchange recommendations.

recommendation_countintegerRequired

Number of exchange recommendations applied.

post/v1/org/{org_id}/exchanges/recommendations/apply

Last updated

Was this helpful?