Performing Operations on a Specified Pipeline
Function
This API is used to perform operations on a specified pipeline.
URI
POST /cpepipeline/v2/pipelines/{pipeline_id}/action
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| pipeline_id | Yes | String | Pipeline ID. See Querying the Pipeline List. |
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. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| actionId | Yes | String | Operation type. The options are as follows:
|
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| name | Yes | String | Pipeline name. |
Response
| Parameter | Type | Description |
|---|---|---|
| id | Integer | Execution ID. |
| pipelineId | String | Pipeline ID. |
| status | Integer | Pipeline status. |
| version | Integer | Pipeline version. |
Example Request
To start a pipeline, call /cpepipeline/v2/pipelines/c4f1a0cb-49d7-4e62-b4d0-a922f638c867/action?actionId=start.
{
"name": "vvasd"
} Example Response
{
"id": 288508,
"pipelineId": "c4f1a0cb-49d7-4e62-b4d0-a922f638c867",
"version": 0,
"status": 4
} 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