获取应用名称列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ClusterId |
string |
是 |
集群 ID。 |
xxljob-b6ec1xxxx |
| AppName |
string |
否 |
应用名称。 |
test-app |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| Code |
integer |
响应码。 |
200 |
| Message |
string |
错误信息。 |
Parameter error: content is null. |
| RequestId |
string |
本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。 |
3881C59F-59F1-5B2E-8110-7D689CA9B207 |
| Success |
boolean |
是否调用成功。
|
true |
| Data |
array<object> |
||
|
object |
|||
| Id |
integer |
主键。 |
15 |
| AppName |
string |
应用名称。 |
test-app |
| Title |
string |
标题。 |
测试应用 |
| AppGroupId |
string |
任务分组 ID。 |
test-app |
| AppType |
integer |
应用类型 |
1 |
| WorkerRegistry |
string |
手动注册执行器类型 |
k8s_service |
示例
正常返回示例
JSON格式
{
"Code": 200,
"Message": "Parameter error: content is null.",
"RequestId": "3881C59F-59F1-5B2E-8110-7D689CA9B207",
"Success": true,
"Data": [
{
"Id": 15,
"AppName": "test-app",
"Title": "测试应用",
"AppGroupId": "test-app\n",
"AppType": 1,
"WorkerRegistry": "k8s_service"
}
]
}
错误码
|
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 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?