Lists the revisions for an application.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MaxResults |
integer |
No |
The maximum number of results to return. |
10 |
| NextToken |
string |
No |
The token to retrieve the next page of results. |
MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJD********** |
| ApplicationName |
string |
No |
The name of the application. |
AgentColin3 |
| RevisionId |
string |
No |
The ID of the revision. |
rev-64488a5be25c4a5***** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The token to retrieve the next page of results. This parameter is returned only if the response is truncated. |
AHJKH-AHKJHDJK-AKHDIOWJL |
| RequestId |
string |
The request ID. |
13B71887-D215-53B5-8818-4D31906***** |
| MaxResults |
integer |
The number of entries returned on the current page. |
10 |
| Revisions |
array<object> |
A list of revisions for the application. |
|
|
object |
Details about a revision. |
||
| Description |
string |
The description of the revision. |
2026-01-05 |
| ApplicationName |
string |
The name of the application that the revision belongs to. |
service-d9456e4bf8e74ff***** |
| RevisionType |
string |
The type of the revision. |
Oss |
| Hooks |
string |
The deployment lifecycle hooks. |
{"applicationStart": "python3 main.py &", "workingDir": "/root", "applicationStop": "pkill -f main.py 2>/dev/null || true"} |
| RevisionId |
string |
The ID of the revision. |
rev-35bce89a16824f7***** |
| Location |
string |
The storage location of the revision file. |
{"bucketName":"ecs-application-ui-test","objectName":"task-cmd-exec.log","regionId":"cn-hangzhou"} |
| UpdateDate |
string |
The time the revision was last updated. |
2025-02-25 14:09:41 |
| CreateDate |
string |
The time the revision was created. |
2025-02-25 14:09:41 |
| DeployResourceType |
string |
The cloud resource type of the deployment target. |
Ecs |
Examples
Success response
JSON format
{
"NextToken": "AHJKH-AHKJHDJK-AKHDIOWJL",
"RequestId": "13B71887-D215-53B5-8818-4D31906*****",
"MaxResults": 10,
"Revisions": [
{
"Description": "2026-01-05",
"ApplicationName": "service-d9456e4bf8e74ff*****",
"RevisionType": "Oss",
"Hooks": "{\"applicationStart\": \"python3 main.py &\", \"workingDir\": \"/root\", \"applicationStop\": \"pkill -f main.py 2>/dev/null || true\"}",
"RevisionId": "rev-35bce89a16824f7*****",
"Location": "{\"bucketName\":\"ecs-application-ui-test\",\"objectName\":\"task-cmd-exec.log\",\"regionId\":\"cn-hangzhou\"}",
"UpdateDate": "2025-02-25 14:09:41",
"CreateDate": "2025-02-25 14:09:41",
"DeployResourceType": "Ecs"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.