Reference

Renewal plan for one commitment

What to repurchase and when. States the instant to buy after rather than a date, because a replacement bills from the moment it is bought, and lists the pending changes that must land first so their capacity is not reserved for another term.

GET
/api/v1/commitments/renewal-plan/{commitment_id}

Authorization

BearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

commitment_id*Commitment Id

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/commitments/renewal-plan/string"
{
  "success": true,
  "timestamp": "2019-08-24T14:15:22Z",
  "data": {
    "commitment_id": "string",
    "service": "string",
    "holder_account_id": "string",
    "end_at": "string",
    "end_at_assumed": false,
    "buy_after_utc": "string",
    "expires_in_seconds": 0,
    "renewal_window_days": 0,
    "units_held": 0,
    "units_consumed": 0,
    "units_recommended": 0,
    "protects_monthly": 0,
    "rightsizing_monthly": 0,
    "pending_changes": [
      {
        "recommendation_id": "string",
        "service": "string",
        "account": "string",
        "monthly_savings": 0,
        "status": "string"
      }
    ],
    "blocking_changes": [
      {
        "recommendation_id": "string",
        "service": "string",
        "account": "string",
        "monthly_savings": 0,
        "status": "string"
      }
    ],
    "exchangeable": true,
    "cancellable": true
  }
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
Ask the FinOps Agent about your cloud spend