ListChangeRequestExecutions
Applicable editions | Central Edition, Region Edition |
Service endpoint and authorization
- Get service endpoint: Replace {domain} in the API request syntax.
- Get personal access token
- Get organization ID: Required only for Central Edition. Find the organization ID on the Basic Information page in the organization management console.
Product | Resource | Required permission |
Application Delivery | change request | read-only |
Request syntax
Central Edition
GET https://{domain}/oapi/v1/appstack/organizations/{organizationId}/apps/{appName}/changeRequests/{sn}/executions
Region Edition
GET https://{domain}/oapi/v1/appstack/apps/{appName}/changeRequests/{sn}/executions
Request headers
Parameter | Type | Required | Description | Example |
x-yunxiao-token | string | Yes | Your personal access token. | pt-0fh3****0fbG_35af****0484 |
Request parameters
Parameter | Type | Location | Required | Description | Example |
appName | string | path | Yes | The application name. | my-web-service |
sn | string | path | Yes | The unique identifier of the change request. | f1e78f22428e4e2496a01691812a17af |
perPage | number | query | No | The number of items per page. | 20 |
page | number | query | No | The page number to retrieve. The default value is 1. | 1 |
orderBy | string | query | No | The property to sort the results by. For consistent iteration, we recommend setting this parameter to | id |
sort | string | query | No | The sort order. Valid values: | asc |
releaseWorkflowSn | string | query | Yes | The unique identifier of the workflow. | 1484e1facb5a4febbe1652607b2eb345 |
releaseStageSn | string | query | Yes | The unique identifier of the stage. | 3cfe6717e3dd2379a8ace4ea6a773e7d |
organizationId | string | path |
| The organization ID. | ec766e63aee3437d9a51f334d6exe671 |
Request examples
Central Edition
curl -X 'GET' \
'https://{domain}/oapi/v1/appstack/organizations/ec766e63aee3437d9a51f334d6exe671/apps/my-web-service/changeRequests/f1e78f22428e4e2496a01691812a17af/executions?perPage=20&page=1&orderBy=id&sort=asc&releaseWorkflowSn=1484e1facb5a4febbe1652607b2eb345&releaseStageSn=3cfe6717e3dd2379a8ace4ea6a773e7d' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Region Edition
curl -X 'GET' \
'https://{domain}/oapi/v1/appstack/apps/my-web-service/changeRequests/f1e78f22428e4e2496a01691812a17af/executions?perPage=20&page=1&orderBy=id&sort=asc&releaseWorkflowSn=1484e1facb5a4febbe1652607b2eb345&releaseStageSn=3cfe6717e3dd2379a8ace4ea6a773e7d' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
Parameter | Type | Description | Example |
| - | object | The paginated response. | |
| current | number | The current page number. | 1 |
| pageSize | number | The number of items per page. | 10 |
| pages | number | The total number of pages. | 10 |
| records | array | A list of execution records. | |
| - | object | A change request execution record. | |
| commit | object | The commit details of the execution record. | |
| committedDate | string | The timestamp of the commit. | 2024-09-01 00:00:00 |
| committerId | string | The ID of the committer. | 1c83bd48e254405fb27297ee1fb8xxxx |
| id | string | The ID of the commit. | id-xxx |
| runNumber | string | The run number. | 123 |
| state | string | The state of the execution record. Valid values: | SUCCESS |
| total | number | The total number of records. | 10 |
Response example
{
"current": 1,
"pageSize": 10,
"pages": 10,
"records": [
{
"commit": {
"committedDate": "2024-09-01 00:00:00",
"committerId": "1c83bd48e254405fb27297ee1fb8xxxx",
"id": "id-xxx"
},
"runNumber": "123",
"state": "SUCCESS"
}
],
"total": 10
}
Error codes
For a list of API-related error codes, see the Error Code Center.