Querying the Pipeline List
Function
This API is used to view the pipeline list.
URI
GET /cpepipeline/v2/pipelines
Request
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| Content-Type | Yes | String | Message body type (format). Default value: application/json;charset=utf8. |
| X-Auth-Token | Yes | String | API calling can be authenticated using a token or AK/SK. If you use a token, this parameter is mandatory and must be set to the token. For details about how to obtain the token, see Obtaining a User Token Through Password Authentication. |
Response
| Parameter | Type | Description |
|---|---|---|
| [Array elements] | Array of objects | Pipeline list. For details, see Table 3. |
| Parameter | Type | Description |
|---|---|---|
| id | String | Pipeline ID. |
| name | String | Pipeline name. |
| description | String | Pipeline description. |
| createdTime | Integer | Pipeline creation time. |
| updatedTime | Integer | Pipeline update time. |
| version | Integer | Pipeline version. |
| configMode | String | Pipeline creation type. |
| creator | Integer | Pipeline creator. |
| modelVersion | Integer | Pipeline model version. |
| status | String | Pipeline status. |
| lastTriggerAt | Integer | Last pipeline execution time. |
| enterpriseProjectId | String | Enterprise project ID. |
| enterpriseProject | String | Enterprise project name. |
| extendInfo | Object | Extension information. For details, see Table 4. |
| Parameter | Type | Description |
|---|---|---|
| latestPipelineState | Object | Last execution status of the pipeline. For details, see Table 5. |
| Parameter | Type | Description |
|---|---|---|
| id | Integer | Pipeline execution ID. |
| pipelineId | String | Pipeline ID. |
| version | Integer | Pipeline execution version. |
| status | Integer | Pipeline execution status. |
| stageStates | Array of objects | Status of the last execution stage. For details, see Table 6. |
| Parameter | Type | Description |
|---|---|---|
| name | String | Stage name. |
| approvalStatus | Integer | Approval status. |
| status | Integer | Status. |
| taskStates | Array of objects | Status of the last task execution. For details, see Table 7. |
Example Request
None
Example Response
[
{
"id": "c4f1a0cb-49d7-4e62-b4d0-a922f638c867",
"name": "vvasd",
"description": "",
"createdTime": 1753083611515,
"updatedTime": 1753083611515,
"version": 1,
"configMode": "ui",
"creator": "zhangyuhao",
"modelVersion": 1,
"status": 1,
"lastTriggerAt": 0,
"enterpriseProjectId": "0",
"enterpriseProject": null,
"extendInfo": {
"latestPipelineState": {
"id": 0,
"pipelineId": "c4f1a0cb-49d7-4e62-b4d0-a922f638c867",
"version": 1,
"status": 1,
"stageStates": [
{
"name": "Artifacts",
"approvalStatus": 0,
"status": 1,
"taskStates": [
{
"name": "ghy-test-comp-0626-3-62e353",
"displayName": "Empty",
"progress": 0,
"status": 1,
"orderIndex": 0
}
]
},
{
"name": "Environments",
"approvalStatus": 0,
"status": 1,
"taskStates": []
}
]
}
}
}
] Status Codes
| Status Code | Description |
|---|---|
| 200 | OK |
| 400 | Bad Request |
| 404 | Not Found |
| 500 | Internal Server Error |
Error Codes
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot