获取指定应用。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ClusterId |
string |
是 |
集群 ID。 |
xxljob-d6a5243b6fa |
| AppName |
string |
是 |
应用名称。 |
test-app |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| Code |
integer |
响应码。 |
200 |
| Message |
string |
错误信息。 |
Not found: appName not found. |
| RequestId |
string |
本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。 |
D0DE9C33-992A-580B-89C4-B609A292748D |
| Success |
boolean |
是否成功。 |
true |
| Data |
object |
|
|
| Id |
integer |
主键 ID。 |
3402 |
| AppName |
string |
应用名称。 |
test-app |
| AccessToken |
string |
AccessToken。 |
2f4ddeab8e344ed68e0402cf9b8502ffv3 |
| Title |
string |
标题。 |
测试应用 |
| Creator |
string |
创建人。 |
18582193685027xx |
| Updater |
string |
更新人。 |
18582193685027xx |
| Leader |
string |
Leader 地址。 |
http://28.***.***.3:80 |
| MaxJobs |
integer |
最大任务数。 |
1000 |
| MaxConcurrency |
integer |
最大并发数。 |
100 |
| JobNum |
integer |
任务数。 |
100 |
| ExecutorNum |
integer |
执行器数量。 |
2 |
| EnableLog |
boolean |
是否开启日志。
|
true |
| LabelRouteStrategy |
integer |
||
| AppType |
integer |
应用类型 |
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 |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter | Parameter error: %s. | 参数错误: %s |
| 401 | IllegalRequest | IllegalRequest: %s. | 非法请求:%s |
| 500 | InternalError | InternalError: %s. | 系统内部错误:%s |
| 403 | NoPermission | No permission to perform this operation: %s. | 没有权限去执行该操作:%s |
| 404 | NotFound | Not found: %s. | 资源不存在:%s |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。