调用 GetImageAIProcessQueues 接口,获取当前账号下已创建的批量处理任务队列详情。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共请求参数。
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | GetImageAIProcessQueues | 接口名称。当前 API 的名称为 GetImageAIProcessQueues。 |
| Version | String | 是 | 2023-05-01 | 接口版本。当前 API 的版本为 2023-05-01。 |
| SearchPtn | String | 否 | test | 返回队列名称或队列描述中包含该值的队列。默认返回所有队列。 |
| Limit | Integer | 是 | 10 | 分页条数,取值范围为 (0, 100]。 |
| Offset | Integer | 否 | 0 | 分页偏移量,默认为 0。取值为 1 时,表示跳过第一条数据,从第二条数据取值。 |
下表仅列出本接口特有的返回参数。更多信息请见公共返回参数。
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| Queues | Array of Queues | - | 当前分页队列详细信息。 |
| Total | Integer | 1 | 符合条件的队列总数。 |
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| Id | String | 62f224ce61****826e38c29a | 任务队列 ID。 |
| Name | String | test | 任务队列名称。 |
| Desc | String | ceshi | 任务队列描述。 |
Status | String |
| 任务队列状态。取值如下:
|
Type | String |
| 任务队列类型。取值如下:
|
| CreateAt | String | 2025-07-02 15:04:05 | 任务队列的创建时间。遵循 RFC3339 格式的东八区(UTC+8)时间,精度为秒。 |
Attribute | String |
| 任务队列属性。取值如下:
|
EnableCallback | Boolean |
| 任务队列是否开启回调配置,取值如下:
|
| CallbackConf | Object of CallbackConf | - | 任务队列回调设置。 |
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| Method | String | HTTP | 回调方式。仅支持取值 HTTP。 |
| Endpoint | String | https://demo.com | 回调 HTTP 请求地址,用于接收批量处理结果详情。支持使用 https 和 http 协议。 |
DataFormat | String |
| 回调数据格式。取值如下:
|
| Args | String | product id | 业务自定义回调参数,将在回调消息的callback_args中透传出去。具体回调参数请参考回调内容。 |
Type | String |
| 回调触发类型。取值如下:
|
GET https://imagex.volcengineapi.com/?Action=GetImageAIProcessQueues&Version=2023-05-01&SearchPtn=test&Limit=10&Offset=0
{ "ResponseMetadata": { "RequestId": "20230604110420****100232280022D31", "Action": "GetImageAIProcessQueues", "Version": "2023-05-01", "Service": "ImageX", "Region": "cn-north-1" }, "Result": { "Total": 1, "Queues": [ { "Id": "62f224ce61****826e38c29a", "Name": "test", "Desc": "ceshi", "Status": "Pending", "Type": "ai", "CreateAt": "2025-07-02 15:04:05", "Attribute": "bgfill", "EnableCallback": true, "CallbackConf": { "Method": "HTTP", "Endpoint": "https://demo.com", "DataFormat": "JSON", "Args": "product id", "Type": "task" } } ] } }
本接口无特有的错误码。更多信息请见公共错误码和 veImageX 错误码。