Example 2: Stopping a Pipeline
Scenario
This section shows how to stop a pipeline task by pipeline ID by using APIs.
For details about how to call APIs, see Calling APIs.
Constraints
A pipeline exists and is being executed.
Involved APIs
Use the user token and pipeline ID to stop a pipeline.
Procedure
- Query the build tasks in a specified project.
- API information
For details about this API, visit Stopping a Pipeline.
- Example request
https://cloudpipeline-ext.ap-southeast-3.myhuaweicloud.com/v3/pipelines/stop?pipeline_id=824e784b3f43492e99152a.....
- Example request body
{}
- Example response
{ "result": { "name": "pipeline-test", "pipelineId": "e9bdc806955e48368e3ecbcdf2...." }, "error": null, "status": "success" }
- API information
Feedback
Was this page helpful?
Provide feedbackThank 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