Stop Pipeline

停止指定流数据处理任务。

前提条件

流数据处理任务需处于运行中状态。

请求格式

POST https://{apigw-address}/streaming/v2.0/streaming/pipeline/{pipelineId}?action=stop

请求参数(URI)

名称 位置(Path/Query) 必需/可选 数据类型 描述
pipelineId Path 必需 String 流数据处理任务ID,可通过 EnOS管理门口 > 流数据处理 > 流运维 页面查看,或通过调用 List Pipelines 接口获取。
orgId Query 必需 String 用户所属的组织ID。如何获取orgId信息>>

响应参数

名称 数据类型 描述
data String 运行成功返回空字符串。

错误码

代码 错误信息 描述
61108 Stream processing job does not exit. 流数据处理任务不存在。
61122 Failed to stop the stream processing job. 停止流数据处理任务失败。
61152 Status of the stream processing job cannot be changed from [XX] to Stopped. 流数据处理任务当前状态不支持停止操作。

示例

请求示例

url: https://{apigw-address}/streaming/v2.0/streaming/pipeline/{pipelineId}?action=stop

method: POST

返回示例

{
  "code": 0,
  "msg": "OK",
}