Viewing Pipeline Details
Function
This API is used to view pipeline details.
URI
GET /cpepipeline/v2/pipelines/{pipeline_id}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| pipeline_id | Yes | String | Pipeline ID. |
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 |
|---|---|---|
| project | String | Project name. |
| domain | String | Tenant name. |
| id | String | Pipeline ID. |
| enterpriseProjectId | String | Enterprise project ID. |
| modelVersion | Integer | Pipeline type. |
| creator | String | Creator. |
| revisor | String | Reviser. |
| createdAt | Integer | Creation time. |
| createdAt | Integer | Update time. |
| failMode | String | Best effort policy. |
| strategyType | Integer | Trigger policy. |
| pipelineDeclaration | Object | Pipeline definition. For details, see Table 4. |
| Parameter | Type | Description |
|---|---|---|
| name | String | Pipeline name. |
| modelVersion | Integer | Pipeline type. |
| version | Integer | Pipeline version. |
| stages | Array of objects | Pipeline stage. For details, see Table 5. |
| configMode | String | Pipeline creation type. |
| Parameter | Type | Description |
|---|---|---|
| id | String | Stage ID. |
| name | String | Stage name. |
| displayName | String | Stage display name. |
| type | String | Stage type. |
| pipelineId | String | Pipeline ID. |
| orderIndex | String | Stage execution sequence. |
| status | Integer | Stage status. |
| taskGroup | String | Task group. |
| tasks | Array of objects | Pipeline task. For details, see Table 6. |
| Parameter | Type | Description |
|---|---|---|
| id | Integer | Task ID. |
| name | String | Task name. |
| displayName | String | Display name of a task. |
| input | Object | Task input parameter. For details, see Table 8. |
| output | Object | Task output parameter. |
| status | Integer | Task status. |
| orderIndex | Integer | Task execution order. |
| skipped | Boolean | Skip or not. |
| groupIndex | String | Task group to which a task belongs. |
| delayTime | Integer | Task execution delay. |
| errorDetails | String | Task error information. |
| stageName | String | Stage type. |
| taskTypeId | Object | Task type parameters. For details, see Table 7. |
Example Request
None
Example Response
{
"project": "cn-north-4",
"domain": "hwstaff_pub_servicestagew3",
"id": "c5a2abab-6c56-4b04-bb67-92470daef78f",
"enterpriseProjectId": "0",
"name": "testzasd",
"enterpriseProject": "default",
"modelVersion": 1,
"creator": "zhangyuhao",
"revisor": "zhangyuhao",
"createdAt": 1753080263966,
"updatedAt": 1753080263966,
"failMode": "stop",
"strategyType": 0,
"pipelineDeclaration": {
"name": "testzasd",
"description": "",
"modelVersion": 0,
"version": 1,
"stages": [
{
"id": 0,
"name": "Artifacts",
"approvalType": 0,
"displayName": null,
"type": null,
"pipelineId": null,
"orderIndex": 0,
"status": null,
"taskGroup": null,
"tasks": [
{
"id": 0,
"name": "ghy-test-comp-0626-3-62e353",
"displayName": "Empty",
"taskTypeId": {
"category": "Build",
"owner": "System",
"provider": "Assembling",
"type": null
},
"input": {
"assemblingId": "audzvfrtnru94o8jtb9g38svx0rezi86rq43ff8m"
},
"output": {},
"status": null,
"orderIndex": 0,
"skipped": false,
"groupIndex": null,
"delayTime": 0,
"errorDetails": null,
"stageName": null
}
]
},
{
"id": 0,
"name": "Environments",
"approvalType": 0,
"displayName": null,
"type": null,
"pipelineId": null,
"orderIndex": 0,
"status": null,
"taskGroup": null,
"tasks": [
{
"id": 0,
"name": "production",
"displayName": "echotest-nodel",
"taskTypeId": {
"category": "Environment",
"owner": "System",
"provider": "Environment",
"type": null
},
"input": {
"environment_id": "6a67914f-8233-4a62-bd7c-5905bfde5df8"
},
"output": {},
"status": null,
"orderIndex": 0,
"skipped": false,
"groupIndex": null,
"delayTime": 0,
"errorDetails": null,
"stageName": null
}
]
}
],
"configMode": "ui"
}
} Status Codes
| Status Code | Description |
|---|---|
| 200 | OK |
| 400 | Bad Request |
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