最近更新时间:2023.05.11 16:26:02
首次发布时间:2023.05.11 16:17:41
调用 StartApplication 接口,启动 Spark 任务。
一般是由运维人员(Project_OPS)负责任务启动、停止、下线等运维工作,请确保操作者已添加项目成员并为其关联角色,请参见权限概述。
参数 | 类型 | 是否必填 | 示例值 | 说明 |
---|---|---|---|---|
ApplicationTrn | string | 是 | 1647**54744065 | 任务 ID。 |
Conf | map<string,string> | 否 | { | 任务额外自定义配置参数。 |
Args | string | 否 | 3 60 | 任务启动类参数。 |
说明
调用 StartApplication 接口启动目标任务时,支持配置 Conf 和 Args 参数,并以配置的参数信息进行启动任务。
如果目标任务原先已经配置了 Conf 和 Args 参数,则原先配置优先级更高。
参数 | 类型 | 示例值 | 说明 |
---|---|---|---|
InstanceId | string | 16481***30828290 | 任务实例 ID。 |
Success | boolean | true | 启动任务是否成功:
|
POST https://open.volcengineapi.com?Action=StartApplication&Version=2021-06-01 Content-Type: application/json Region: cn-beijing ServiceName: spark { "ApplicationTrn": "1647**54744065" }
{ "ResponseMetadata": { "RequestId": "2023041811162647994D396BCFB287147F", "Action": "StartApplication", "Version": "2021-06-01", "Service": "spark", "Region": "cn-beijing" }, "Result": { "Id": "164815**090945", "InstanceId": "164816**30828290", "Success": true } }