Skip to content

Latest commit

 

History

History
45 lines (43 loc) · 1.35 KB

11-29-api-update.md

File metadata and controls

45 lines (43 loc) · 1.35 KB
title date tags authors description aliases excludeSearch
Identify VM Tasks through the API
2023-11-29
api
applications
You can now check if an application is a task via the Clever Cloud API
/changelog/2023-11-29-api-update
true

For years, you can deploy applications on Clever Cloud as a Task with the API or more recently the CC_TASK=true environment variable. As this feature will be widely available and used, the API has been updated to return such a state in the instance.lifetime object:

{
  "id": "string",
  "name": "string",
  "description": "string",
  "zone": "string",
  "zoneId": "string",
  "instance": {
    "type": "string",
    "version": "string",
    "variant": {},
    "minInstances": int,
    "maxInstances": int,
    "maxAllowedInstances": int,
    "minFlavor": {},
    "maxFlavor": {},
    "flavors": [],
    "lifetime": "string",  //Allowed: REGULAR ┃ MIGRATION ┃ TASK
    "instanceAndVersion": "string"
  },
  ...
}

You can read the full APIv2 documentation here.