title | date | tags | authors | description | aliases | excludeSearch | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Identify VM Tasks through the API |
2023-11-29 |
|
|
You can now check if an application is a task via the Clever Cloud API |
|
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.