UpdateJobScript - 更新任务执行脚本

更新任务执行脚本。

调试

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

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
ClusterIdstring

集群 ID。

xxljob-b6ec1xxxx
AppNamestring

应用名称。

test-app
ScriptContentstring

脚本内容。

#!/bin/bash echo "xxl-job: hello shell" echo "脚本位置: $0" echo "任务参数: $1" echo "分片序号 = $2" echo "分片总数 = $3" echo "Good bye!" exit 0
VersionDescriptionstring

脚本版本描述。

init version
JobIdlong

任务 ID。

74

返回参数

名称类型描述示例值
object
Codeinteger

响应码。

200
Messagestring

错误信息。

not support update script, please upgrade engine version to 2.2.2+
RequestIdstring

本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。

29ED6209-5DE6-5E1D-89B0-B7B1D823A1BF
Successboolean

是否调用成功。

true

示例

正常返回示例

JSON格式

{
  "Code": 200,
  "Message": "not support update script, please upgrade engine version to 2.2.2+",
  "RequestId": "29ED6209-5DE6-5E1D-89B0-B7B1D823A1BF",
  "Success": true
}

错误码

HTTP status code错误码错误信息描述
400InvalidParameterParameter error: %s.参数错误: %s
401IllegalRequestIllegalRequest: %s.非法请求:%s
403NoPermissionNo permission to perform this operation: %s.没有权限去执行该操作:%s
404NotFoundNot found: %s.资源不存在:%s
500InternalErrorInternalError: %s.系统内部错误:%s

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