Querying a List of Application Versions
Function
This API is used to query a list of application versions.
URI
GET /v2/{project_id}/edgemgr/apps/{app_id}/versions?{limit=xxx,offset=xxx}
| Parameter | Mandatory | Description |
|---|---|---|
| project_id | Yes | Project ID. For details about how to obtain a project ID, see Obtaining a Project ID. |
| app_id | Yes | Application ID. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| limit | No | String | Number of records displayed on each page. The value range is 1–1000. The default value is 1000. |
| offset | No | String | Start position for a query. The value is a non-negative integer. The default value is 0. |
- If no query parameter is specified, all application versions of an account are returned.
- If multiple query parameters are specified, the application versions that meet all the specified query parameters are returned.
Request
None
Response
| Parameter | Type | Description |
|---|---|---|
| versions | Array of Table 17 objects | Application version details. |
| count | Integer | Number of application versions that meet the conditions. |
Response example:
{
"count": 1,
"versions": [
{
"envs": [],
"created_at": "2018-07-26T07:31:29+08:00",
"updated_at": null,
"version": "v1",
"image_url": "busybox:latest",
"volumes": [],
"readiness_probe": null,
"configs": {
"host_network": true,
"restart_policy": "Always",
"privileged": false
},
"project_id": "{project_id}",
"liveness_probe": null,
"id": "bc35aaff-bdd8-49e8-ace0-a25be2b09380",
"resources": {
"requests": {
"cpu": 0.25,
"memory": 512
},
"limits": {
"cpu": 1,
"memory": 512
}
}
}
]
} Error Codes
For details, see Error Codes.
Last Article: Querying Details About an Application Version
Next Article: Deleting an Application Version
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.