获取应用列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ClusterId |
string |
是 |
集群 ID。 |
xxljob-b6ec1xxxx |
| AppName |
string |
否 |
应用名称。 |
test-app |
| Title |
string |
否 |
标题。 |
测试应用 |
| PageNum |
integer |
否 |
页码。 |
1 |
| PageSize |
integer |
否 |
分页大小。 |
10 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| Code |
integer |
响应码。 |
200 |
| Message |
string |
错误信息。 |
Parameter error: content is null. |
| RequestId |
string |
本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。 |
2C3E52FF-CBE9-5C0E-8252-37ACFF1F5EFF |
| Success |
boolean |
是否调用成功。
|
true |
| Data |
object |
||
| Records |
array<object> |
||
|
object |
|||
| Id |
integer |
主键 ID。 |
43885 |
| AppName |
string |
应用名称。 |
test-app |
| AccessToken |
string |
AccessToken。 |
2f4ddeab8e344ed68e0402cf9b8502ffv3 |
| Title |
string |
标题。 |
测试应用 |
| Creator |
string |
创建人。 |
1827811800555555 |
| Updater |
string |
更新人。 |
1827811800555555 |
| Leader |
string |
Leader 地址。 |
http://28.***.***.3:80 |
MaxJobs
deprecated
|
integer |
最大任务数。 |
1000 |
| MaxConcurrency |
integer |
最大并发数。 |
100 |
| JobNum |
integer |
任务数。 |
10 |
| ExecutorNum |
integer |
执行器数量。 |
1 |
| EnableLog |
boolean |
是否开启日志。
|
true |
| LabelRouteStrategy |
integer |
标签路由策略 |
1 |
| AppType |
integer |
应用类型 |
1 |
| WorkerType |
string |
openclaw |
|
| WorkflowNum |
integer |
当前工作流数量 |
3 |
WorkerRegistry
deprecated
|
string |
手动注册执行器类型 |
k8s_service |
| WorkerId |
integer |
1 |
|
| Total |
integer |
总条数。 |
10 |
| PageNumber |
integer |
页码。 |
1 |
| PageSize |
integer |
每页数量。 |
10 |
示例
正常返回示例
JSON格式
{
"Code": 200,
"Message": "Parameter error: content is null.\n",
"RequestId": "2C3E52FF-CBE9-5C0E-8252-37ACFF1F5EFF",
"Success": true,
"Data": {
"Records": [
{
"Id": 43885,
"AppName": "test-app",
"AccessToken": "2f4ddeab8e344ed68e0402cf9b8502ffv3",
"Title": "测试应用",
"Creator": "1827811800555555",
"Updater": "1827811800555555",
"Leader": "http://28.***.***.3:80",
"MaxJobs": 1000,
"MaxConcurrency": 100,
"JobNum": 10,
"ExecutorNum": 1,
"EnableLog": true,
"LabelRouteStrategy": 1,
"AppType": 1,
"WorkerType": "openclaw",
"WorkflowNum": 3,
"WorkerRegistry": "k8s_service",
"WorkerId": 1
}
],
"Total": 10,
"PageNumber": 1,
"PageSize": 10
}
}
错误码
|
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 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。