调用ModifyFlowForWeb,修改工作流。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String ModifyFlowForWeb

系统规定参数。取值:ModifyFlowForWeb

RegionId String cn-hangzhou

地域ID。

ProjectId String FP-257A173659F5****

项目ID。

Id String F-7A39731FE719****

工作流ID。

Name String my_flow

工作流名称, 长度限制为64个字符,同一个项目中不允许重名。

Status String STOP_SCHEDULE

工作流状态, 支持STOP_SCHEDULE和UNDER_SCHEDULE。

Description String 这是一个工作流描述

工作流描述,长度限制为256个字符。

Periodic Boolean true

是否周期调度。

StartSchedule Long 1538017814000

调度生效时间, 长整型时间戳。例如:System.currentTimeMillis()必须小于EndSchedule。当CronExpr不为空时, 此项必填。

EndSchedule Long 1538018814000

调度失效时间,长整型时间戳,例如:System.currentTimeMillis()。

CronExpr String 0 0 0-23/1 * * ?

时间周期调度的Cron表达式。

CreateCluster Boolean false

是否创建集群:

为true时,ClusterId为集群模板ID:CT-XXXXXX。

为false时,ClusterId为集群ID:C-XXXXXX。

ClusterId String C-F32FB31D8295****

集群ID。

HostName String emr-header-1.cluster-123456

指定运行的机器信息,格式为emr-header-1.cluster-123456。

Namespace String default

保留字段

Graph String {"nodes":[{"id":"48d474ea","attribute":{"type":"START"},"type":"node"},{"id":"59065ccd","label":"bep-test","attribute":{"jobId":"FJ-6B0706D041565649","type":"JOB","jobType":"SPARK"},"type":"node","config":{"hostName":"","clusterId":""}},{"id":"aa1557a6","attribute":{"type":"END"},"type":"node"},{"id":"29e683d7","label":"test","attribute":{"jobId":"FJ-A9E1B3AF5B5E28B3","type":"JOB","jobType":"SPARK"},"type":"node","config":{"hostName":"","clusterId":""}}],"edges":[{"sourceAnchor":0,"targetAnchor":0,"index":2,"source":"48d474ea","id":"1acb3290","target":"59065ccd"},{"sourceAnchor":1,"targetAnchor":0,"index":4,"source":"59065ccd","id":"ad0fdda5","target":"aa1557a6"}]}

工作流信息

AlertConf String {"items":[{"enable":true,"eventId":"EMR-210401001","alertUserGroupIdList":["AUG-b79bb29bb6e14ddd89674a242623851b"],"alertDingDingGroupList":["ADG-af1f9689d6194e2dbd89927d5c515172"]},{"enable":true,"eventId":"EMR-110401015","alertUserGroupIdList":["AUG-b79bb29bb6e14ddd89674a242623851b"],"alertDingDingGroupList":["ADG-af1f9689d6194e2dbd89927d5c515172"]},{"enable":true,"eventId":"EMR-110401002","alertUserGroupIdList":["AUG-b79bb29bb6e14ddd89674a242623851b"],"alertDingDingGroupList":["ADG-af1f9689d6194e2dbd89927d5c515172"]}]}

报警通知配置。

AlertUserGroupBizId String 已过期

保留字段

AlertDingDingGroupBizId String 已过期

保留字段

ParentFlowList String [F-123456]

依赖的父工作流列表。

ParentCategory String FC-F2495319DA05****

父目录ID。

返回数据

名称 类型 示例值 描述
Data Boolean true

返回执行结果,包含如下:

true:成功

false:失败

RequestId String 243D5A48-96A5-4C0C-8966-93CBF65635ED

请求ID。

示例

请求示例

http(s)://[Endpoint]/?Action=ModifyFlowForWeb
&RegionId=cn-hangzhou
&ProjectId=FP-257A173659F5****
&Id=F-7A39731FE719****
&Name=my_flow
&Status=STOP_SCHEDULE
&Description=这是一个工作流描述
&Periodic=true
&StartSchedule=1538017814000
&EndSchedule=1538018814000
&CronExpr=0 0 0-23/1 * * ?
&CreateCluster=false
&ClusterId=C-F32FB31D8295****
&HostName=emr-header-1.cluster-123456
&Namespace=default
&Graph={"nodes":[{"id":"48d474ea","attribute":{"type":"START"},"type":"node"},{"id":"59065ccd","label":"bep-test","attribute":{"jobId":"FJ-6B0706D041565649","type":"JOB","jobType":"SPARK"},"type":"node","config":{"hostName":"","clusterId":""}},{"id":"aa1557a6","attribute":{"type":"END"},"type":"node"},{"id":"29e683d7","label":"test","attribute":{"jobId":"FJ-A9E1B3AF5B5E28B3","type":"JOB","jobType":"SPARK"},"type":"node","config":{"hostName":"","clusterId":""}}],"edges":[{"sourceAnchor":0,"targetAnchor":0,"index":2,"source":"48d474ea","id":"1acb3290","target":"59065ccd"},{"sourceAnchor":1,"targetAnchor":0,"index":4,"source":"59065ccd","id":"ad0fdda5","target":"aa1557a6"}]}
&AlertConf={"items":[{"enable":true,"eventId":"EMR-210401001","alertUserGroupIdList":["AUG-b79bb29bb6e14ddd89674a242623851b"],"alertDingDingGroupList":["ADG-af1f9689d6194e2dbd89927d5c515172"]},{"enable":true,"eventId":"EMR-110401015","alertUserGroupIdList":["AUG-b79bb29bb6e14ddd89674a242623851b"],"alertDingDingGroupList":["ADG-af1f9689d6194e2dbd89927d5c515172"]},{"enable":true,"eventId":"EMR-110401002","alertUserGroupIdList":["AUG-b79bb29bb6e14ddd89674a242623851b"],"alertDingDingGroupList":["ADG-af1f9689d6194e2dbd89927d5c515172"]}]}
&AlertUserGroupBizId=已过期
&AlertDingDingGroupBizId=已过期
&ParentFlowList=[F-123456]
&ParentCategory=FC-F2495319DA05****
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifyFlowForWebResponse>
    <Data>true</Data>
    <RequestId>243D5A48-96A5-4C0C-8966-93CBF65635ED</RequestId>
</ModifyFlowForWebResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Data" : true,
  "RequestId" : "243D5A48-96A5-4C0C-8966-93CBF65635ED"
}

错误码

访问错误中心查看更多错误码。

访问错误中心查看更多错误码。