GetApp - 获取指定应用

获取指定应用。

调试

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

授权信息

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

请求参数

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

集群 ID。

xxljob-d6a5243b6fa
AppNamestring

应用名称。

test-app

返回参数

名称类型描述示例值
object
Codeinteger

响应码。

200
Messagestring

错误信息。

Not found: appName not found.
RequestIdstring

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

D0DE9C33-992A-580B-89C4-B609A292748D
Successboolean

是否成功。

true
Dataobject
Idlong

主键 ID。

3402
AppNamestring

应用名称。

test-app
AccessTokenstring

AccessToken。

2f4ddeab8e344ed68e0402cf9b8502ffv3
Titlestring

标题。

测试应用
Creatorstring

创建人。

18582193685027xx
Updaterstring

更新人。

18582193685027xx
Leaderstring

Leader 地址。

http://28.***.***.3:80
MaxJobsinteger

最大任务数。

1000
MaxConcurrencyinteger

最大并发数。

100
JobNuminteger

任务数。

100
ExecutorNumlong

执行器数量。

2
EnableLogboolean

是否开启日志。

  • true:开启。

  • false:关闭。

true
AppTypeinteger

应用类型

1

示例

正常返回示例

JSON格式

{
  "Code": 200,
  "Message": "Not found: appName not found.",
  "RequestId": "D0DE9C33-992A-580B-89C4-B609A292748D",
  "Success": true,
  "Data": {
    "Id": 3402,
    "AppName": "test-app",
    "AccessToken": "2f4ddeab8e344ed68e0402cf9b8502ffv3",
    "Title": "测试应用",
    "Creator": "18582193685027xx",
    "Updater": "18582193685027xx",
    "Leader": "http://28.***.***.3:80\n",
    "MaxJobs": 1000,
    "MaxConcurrency": 100,
    "JobNum": 100,
    "ExecutorNum": 2,
    "EnableLog": true,
    "LabelRouteStrategy": 0,
    "AppType": 1
  }
}

错误码

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

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