调用 CreateImageAIProcessQueue 接口,创建批量处理任务队列,并自定义任务队列配置,例如名称、描述、回调配置等。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共请求参数。
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | CreateImageAIProcessQueue | 接口名称。当前 API 的名称为 CreateImageAIProcessQueue。 |
| Version | String | 是 | 2023-05-01 | 接口版本。当前 API 的版本为 2023-05-01。 |
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Name | String | 是 | test | 任务队列名称。 |
| Desc | String | 否 | ceshi | 任务队列描述,可用于备注该队列的用途。 |
IsStart | Boolean | 否 |
| 是否启动任务队列,开始执行批量处理操作。默认值为
|
Attribute | String | 是 |
| 任务队列属性。取值如下:
|
| 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 | 是 |
| 回调触发类型。取值如下:
|
下表仅列出本接口特有的返回参数。更多信息请见公共返回参数。
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| QueueId | String | 62f224ce61****826e38c29a | 任务队列 ID。 |
POST https://imagex.volcengineapi.com/?Action=CreateImageAIProcessQueue&Version=2023-05-01 { "Name": "test", "Desc": "ceshi", "IsStart": true, "Attribute": "bgfill", "CallbackConf": { "Method": "HTTP", "Endpoint": "https://demo.com", "DataFormat": "JSON", "Args": "product id", "Type": "task" } }
{ "ResponseMetadata": { "RequestId": "20230604110420****100232280022D31", "Action": "CreateImageAIProcessQueue", "Version": "2023-05-01", "Service": "ImageX", "Region": "cn-north-1" }, "Result": { "QueueId": "62f224ce61****826e38c29a" } }
本接口无特有的错误码。更多信息请见公共错误码和 veImageX 错误码。