diff options
| author | Zhineng Li <im@zhineng.li> | 2026-07-12 17:11:17 +0800 |
|---|---|---|
| committer | Zhineng Li <im@zhineng.li> | 2026-07-12 17:11:17 +0800 |
| commit | 1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 (patch) | |
| tree | 5f0857666365b7e40cdaa3733ebe1f3ba9e13c67 /data/zh_cn/viapi | |
| parent | 7347bac4ab7e136157fc94777e6cf87ef9e08599 (diff) | |
| download | afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.tar.gz afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.zip | |
update APIs 20260712
Diffstat (limited to 'data/zh_cn/viapi')
| -rw-r--r-- | data/zh_cn/viapi/2021-09-30/api-docs.php | 972 | ||||
| -rw-r--r-- | data/zh_cn/viapi/2023-01-17/api-docs.php | 565 |
2 files changed, 425 insertions, 1112 deletions
diff --git a/data/zh_cn/viapi/2021-09-30/api-docs.php b/data/zh_cn/viapi/2021-09-30/api-docs.php index 4e05479..6a10ce9 100644 --- a/data/zh_cn/viapi/2021-09-30/api-docs.php +++ b/data/zh_cn/viapi/2021-09-30/api-docs.php @@ -1,31 +1,12 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'viapi', - 'version' => '2021-09-30', - ], + 'info' => ['style' => 'RPC', 'product' => 'viapi', 'version' => '2021-09-30'], 'directories' => [ [ 'id' => 0, 'title' => '其它', 'type' => 'directory', - 'children' => [ - 'EnableAiStoreUserTask', - 'ListAiStoreBuckets', - 'QueryAiStoreRegions', - 'UpdateAiStoreUserTask', - 'CreateAiStoreReceiveConfig', - 'CreateAiStoreBucket', - 'GetAiStoreUserTask', - 'CreateAiStoreUserTask', - 'DisableAiStoreUserTask', - 'QueryAiStoreApiTree', - 'DeleteAiStoreUserTask', - 'GetAiStoreReceiveConfig', - 'GetAiStoreUserTaskByName', - 'QueryAiStoreUserTaskPage', - ], + 'children' => ['EnableAiStoreUserTask', 'ListAiStoreBuckets', 'QueryAiStoreRegions', 'UpdateAiStoreUserTask', 'CreateAiStoreReceiveConfig', 'CreateAiStoreBucket', 'GetAiStoreUserTask', 'CreateAiStoreUserTask', 'DisableAiStoreUserTask', 'QueryAiStoreApiTree', 'DeleteAiStoreUserTask', 'GetAiStoreReceiveConfig', 'GetAiStoreUserTaskByName', 'QueryAiStoreUserTaskPage'], ], ], 'components' => [ @@ -35,20 +16,12 @@ 'description' => '智能存储API树节点', 'type' => 'object', 'properties' => [ - 'Product' => [ - 'title' => '产品名称', - 'type' => 'string', - ], - 'ProductDesc' => [ - 'title' => '产品描述', - 'type' => 'string', - ], + 'Product' => ['title' => '产品名称', 'type' => 'string'], + 'ProductDesc' => ['title' => '产品描述', 'type' => 'string'], 'Apis' => [ 'title' => 'API列表', 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/AiStoreUserTask', - ], + 'items' => ['$ref' => '#/components/schemas/AiStoreUserTask'], ], ], ], @@ -61,92 +34,56 @@ 'title' => '事件总线', 'type' => 'object', 'properties' => [ - 'EventBus' => [ - 'title' => '事件总线', - 'type' => 'string', - ], - 'EventRule' => [ - 'title' => '事件规则', - 'type' => 'string', - ], + 'EventBus' => ['title' => '事件总线', 'type' => 'string'], + 'EventRule' => ['title' => '事件规则', 'type' => 'string'], ], ], 'Mns' => [ 'title' => 'MNS消息', 'type' => 'object', 'properties' => [ - 'Queue' => [ - 'title' => '队列名称', - 'type' => 'string', - ], + 'Queue' => ['title' => '队列名称', 'type' => 'string'], ], ], 'RocketMQ' => [ 'title' => 'ONS消息', 'type' => 'object', 'properties' => [ - 'InstanceId' => [ - 'title' => '实例ID', - 'type' => 'string', - ], - 'TopicName' => [ - 'title' => '主题名称', - 'type' => 'string', - ], + 'InstanceId' => ['title' => '实例ID', 'type' => 'string'], + 'TopicName' => ['title' => '主题名称', 'type' => 'string'], ], ], 'DingTalk' => [ 'title' => '钉钉', 'type' => 'object', 'properties' => [ - 'Address' => [ - 'title' => 'webhook地址', - 'type' => 'string', - ], - 'Secret' => [ - 'title' => '密钥', - 'type' => 'string', - ], + 'Address' => ['title' => 'webhook地址', 'type' => 'string'], + 'Secret' => ['title' => '密钥', 'type' => 'string'], ], ], 'Http' => [ 'title' => 'Http', 'type' => 'object', 'properties' => [ - 'Url' => [ - 'title' => 'http地址', - 'type' => 'string', - ], + 'Url' => ['title' => 'http地址', 'type' => 'string'], ], ], 'Https' => [ 'title' => 'Https', 'type' => 'object', 'properties' => [ - 'Url' => [ - 'title' => 'https地址', - 'type' => 'string', - ], + 'Url' => ['title' => 'https地址', 'type' => 'string'], ], ], - 'Custom' => [ - 'title' => '自定义事件桥', - 'type' => 'string', - ], + 'Custom' => ['title' => '自定义事件桥', 'type' => 'string'], ], ], 'AiStoreTemplate' => [ 'title' => 'A short description of struct', 'type' => 'object', 'properties' => [ - 'TemplateVariable' => [ - 'title' => '变量', - 'type' => 'string', - ], - 'TemplateContext' => [ - 'title' => '模版', - 'type' => 'string', - ], + 'TemplateVariable' => ['title' => '变量', 'type' => 'string'], + 'TemplateContext' => ['title' => '模版', 'type' => 'string'], ], ], 'AiStoreUserTask' => [ @@ -154,87 +91,26 @@ 'description' => '用户智能存储任务', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => 'ID', - 'type' => 'integer', - 'format' => 'int64', - ], - 'GmtCreate' => [ - 'title' => '创建时间', - 'type' => 'string', - ], - 'GmtModified' => [ - 'title' => '修改时间', - 'type' => 'string', - ], - 'Region' => [ - 'title' => '地域', - 'type' => 'string', - ], - 'RegionDesc' => [ - 'title' => '地域描述', - 'type' => 'string', - ], - 'Name' => [ - 'title' => '任务名称', - 'type' => 'string', - ], - 'Product' => [ - 'title' => '产品名称', - 'type' => 'string', - ], - 'ProductDesc' => [ - 'title' => '产品描述', - 'type' => 'string', - ], - 'ApiName' => [ - 'title' => 'API名称', - 'type' => 'string', - ], - 'ApiDesc' => [ - 'title' => 'API描述', - 'type' => 'string', - ], - 'Version' => [ - 'title' => 'API版本', - 'type' => 'string', - ], - 'ParamInfo' => [ - 'title' => '参数信息', - 'type' => 'string', - ], - 'BucketName' => [ - 'title' => 'bucket名称', - 'type' => 'string', - ], - 'BucketKeyPrefix' => [ - 'title' => 'bucketKey前缀', - 'type' => 'string', - ], - 'Remark' => [ - 'title' => '备注', - 'type' => 'string', - ], - 'ReceiveConfig' => [ - 'title' => '接收消息配置', - 'type' => 'string', - ], - 'Status' => [ - 'title' => '状态', - 'type' => 'string', - ], - 'EnableTime' => [ - 'title' => '启用时间', - 'type' => 'string', - ], - 'DisableTime' => [ - 'title' => '停用时间', - 'type' => 'string', - ], - 'TaskVersion' => [ - 'title' => '任务版本', - 'type' => 'string', - ], + 'Id' => ['title' => 'ID', 'type' => 'integer', 'format' => 'int64'], + 'GmtCreate' => ['title' => '创建时间', 'type' => 'string'], + 'GmtModified' => ['title' => '修改时间', 'type' => 'string'], + 'Region' => ['title' => '地域', 'type' => 'string'], + 'RegionDesc' => ['title' => '地域描述', 'type' => 'string'], + 'Name' => ['title' => '任务名称', 'type' => 'string'], + 'Product' => ['title' => '产品名称', 'type' => 'string'], + 'ProductDesc' => ['title' => '产品描述', 'type' => 'string'], + 'ApiName' => ['title' => 'API名称', 'type' => 'string'], + 'ApiDesc' => ['title' => 'API描述', 'type' => 'string'], + 'Version' => ['title' => 'API版本', 'type' => 'string'], + 'ParamInfo' => ['title' => '参数信息', 'type' => 'string'], + 'BucketName' => ['title' => 'bucket名称', 'type' => 'string'], + 'BucketKeyPrefix' => ['title' => 'bucketKey前缀', 'type' => 'string'], + 'Remark' => ['title' => '备注', 'type' => 'string'], + 'ReceiveConfig' => ['title' => '接收消息配置', 'type' => 'string'], + 'Status' => ['title' => '状态', 'type' => 'string'], + 'EnableTime' => ['title' => '启用时间', 'type' => 'string'], + 'DisableTime' => ['title' => '停用时间', 'type' => 'string'], + 'TaskVersion' => ['title' => '任务版本', 'type' => 'string'], ], ], ], @@ -242,14 +118,8 @@ 'apis' => [ 'EnableAiStoreUserTask' => [ 'summary' => '启用智能存储任务', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -262,18 +132,12 @@ [ 'name' => 'Id', 'in' => 'formData', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true], ], [ 'name' => 'AistoreVersion', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], ], 'responses' => [ @@ -282,55 +146,32 @@ 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - ], - 'Data' => [ - 'type' => 'string', - ], + 'RequestId' => ['title' => 'Id of the request', 'type' => 'string'], + 'Data' => ['type' => 'string'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ParameterError', - 'errorMessage' => 'The parameter is invalid. Please check again.', - ], + ['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.'], ], 403 => [ - [ - 'errorCode' => 'AuthFailed', - 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', - ], + ['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.'], ], 408 => [ - [ - 'errorCode' => 'Timeout', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.'], ], 503 => [ - [ - 'errorCode' => 'ServiceUnavailable', - 'errorMessage' => 'The service is unavailable.', - ], + ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.'], ], ], 'responseDemo' => '', ], 'ListAiStoreBuckets' => [ 'summary' => '查询智能存储bucket列表', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -338,23 +179,17 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - ], + 'systemTags' => ['operationType' => 'list'], 'parameters' => [ [ 'name' => 'Product', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], [ 'name' => 'ApiName', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], ], 'responses' => [ @@ -363,15 +198,10 @@ 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - ], + 'RequestId' => ['title' => 'Id of the request', 'type' => 'string'], 'Data' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], ], ], @@ -379,42 +209,24 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ParameterError', - 'errorMessage' => 'The parameter is invalid. Please check again.', - ], + ['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.'], ], 403 => [ - [ - 'errorCode' => 'AuthFailed', - 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', - ], + ['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.'], ], 408 => [ - [ - 'errorCode' => 'Timeout', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.'], ], 503 => [ - [ - 'errorCode' => 'ServiceUnavailable', - 'errorMessage' => 'The service is unavailable.', - ], + ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.'], ], ], 'responseDemo' => '', ], 'QueryAiStoreRegions' => [ 'summary' => '查询智能存储region列表', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -422,11 +234,7 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [], 'responses' => [ 200 => [ @@ -434,15 +242,10 @@ 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - ], + 'RequestId' => ['title' => 'Id of the request', 'type' => 'string'], 'Data' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/AiStoreUserTask', - ], + 'items' => ['$ref' => '#/components/schemas/AiStoreUserTask'], ], ], ], @@ -450,41 +253,23 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ParameterError', - 'errorMessage' => 'The parameter is invalid. Please check again.', - ], + ['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.'], ], 403 => [ - [ - 'errorCode' => 'AuthFailed', - 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', - ], + ['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.'], ], 408 => [ - [ - 'errorCode' => 'Timeout', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.'], ], 503 => [ - [ - 'errorCode' => 'ServiceUnavailable', - 'errorMessage' => 'The service is unavailable.', - ], + ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.'], ], ], ], 'UpdateAiStoreUserTask' => [ 'summary' => '更新智能存储任务', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -497,79 +282,52 @@ [ 'name' => 'Product', 'in' => 'formData', - 'schema' => [ - 'title' => '弃用', - 'type' => 'string', - ], + 'schema' => ['title' => '弃用', 'type' => 'string'], ], [ 'name' => 'ApiName', 'in' => 'formData', - 'schema' => [ - 'title' => '弃用', - 'type' => 'string', - ], + 'schema' => ['title' => '弃用', 'type' => 'string'], ], [ 'name' => 'BucketName', 'in' => 'formData', - 'schema' => [ - 'title' => '弃用', - 'type' => 'string', - ], + 'schema' => ['title' => '弃用', 'type' => 'string'], ], [ 'name' => 'BucketKeyPrefix', 'in' => 'formData', - 'schema' => [ - 'title' => '弃用', - 'type' => 'string', - ], + 'schema' => ['title' => '弃用', 'type' => 'string'], ], [ 'name' => 'Name', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], [ 'name' => 'ParamInfo', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], [ 'name' => 'Remark', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], [ 'name' => 'ReceiveConfig', 'in' => 'formData', - 'schema' => [ - 'title' => '弃用', - 'type' => 'string', - ], + 'schema' => ['title' => '弃用', 'type' => 'string'], ], [ 'name' => 'Status', 'in' => 'formData', - 'schema' => [ - 'title' => '弃用', - 'type' => 'string', - ], + 'schema' => ['title' => '弃用', 'type' => 'string'], ], [ 'name' => 'Id', 'in' => 'formData', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'schema' => ['type' => 'integer', 'format' => 'int64'], ], ], 'responses' => [ @@ -578,54 +336,31 @@ 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - ], - 'Data' => [ - 'type' => 'boolean', - ], + 'RequestId' => ['title' => 'Id of the request', 'type' => 'string'], + 'Data' => ['type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ParameterError', - 'errorMessage' => 'The parameter is invalid. Please check again.', - ], + ['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.'], ], 403 => [ - [ - 'errorCode' => 'AuthFailed', - 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', - ], + ['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.'], ], 408 => [ - [ - 'errorCode' => 'Timeout', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.'], ], 503 => [ - [ - 'errorCode' => 'ServiceUnavailable', - 'errorMessage' => 'The service is unavailable.', - ], + ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.'], ], ], ], 'CreateAiStoreReceiveConfig' => [ 'summary' => '创建用于接收消息的事件规则和接收目标配置', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -638,16 +373,12 @@ [ 'name' => 'Product', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], [ 'name' => 'ApiName', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], ], 'responses' => [ @@ -656,55 +387,32 @@ 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - ], - 'Data' => [ - '$ref' => '#/components/schemas/AiStoreReceiveConfig', - ], + 'RequestId' => ['title' => 'Id of the request', 'type' => 'string'], + 'Data' => ['$ref' => '#/components/schemas/AiStoreReceiveConfig'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ParameterError', - 'errorMessage' => 'The parameter is invalid. Please check again.', - ], + ['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.'], ], 403 => [ - [ - 'errorCode' => 'AuthFailed', - 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', - ], + ['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.'], ], 408 => [ - [ - 'errorCode' => 'Timeout', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.'], ], 503 => [ - [ - 'errorCode' => 'ServiceUnavailable', - 'errorMessage' => 'The service is unavailable.', - ], + ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.'], ], ], 'responseDemo' => '', ], 'CreateAiStoreBucket' => [ 'summary' => '创建智能存储bucket', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -717,9 +425,7 @@ [ 'name' => 'BucketName', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], ], 'responses' => [ @@ -728,55 +434,32 @@ 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - ], - 'Data' => [ - 'type' => 'string', - ], + 'RequestId' => ['title' => 'Id of the request', 'type' => 'string'], + 'Data' => ['type' => 'string'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ParameterError', - 'errorMessage' => 'The parameter is invalid. Please check again.', - ], + ['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.'], ], 403 => [ - [ - 'errorCode' => 'AuthFailed', - 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', - ], + ['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.'], ], 408 => [ - [ - 'errorCode' => 'Timeout', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.'], ], 503 => [ - [ - 'errorCode' => 'ServiceUnavailable', - 'errorMessage' => 'The service is unavailable.', - ], + ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.'], ], ], 'responseDemo' => '', ], 'GetAiStoreUserTask' => [ 'summary' => '获取智能存储任务详请', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -789,11 +472,7 @@ [ 'name' => 'Id', 'in' => 'formData', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true], ], ], 'responses' => [ @@ -802,54 +481,31 @@ 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - ], - 'Data' => [ - '$ref' => '#/components/schemas/AiStoreUserTask', - ], + 'RequestId' => ['title' => 'Id of the request', 'type' => 'string'], + 'Data' => ['$ref' => '#/components/schemas/AiStoreUserTask'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ParameterError', - 'errorMessage' => 'The parameter is invalid. Please check again.', - ], + ['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.'], ], 403 => [ - [ - 'errorCode' => 'AuthFailed', - 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', - ], + ['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.'], ], 408 => [ - [ - 'errorCode' => 'Timeout', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.'], ], 503 => [ - [ - 'errorCode' => 'ServiceUnavailable', - 'errorMessage' => 'The service is unavailable.', - ], + ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.'], ], ], ], 'CreateAiStoreUserTask' => [ 'summary' => '创建智能存储任务', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -862,72 +518,52 @@ [ 'name' => 'Product', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], [ 'name' => 'ApiName', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], [ 'name' => 'BucketName', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], [ 'name' => 'BucketKeyPrefix', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], [ 'name' => 'Name', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], [ 'name' => 'ParamInfo', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], [ 'name' => 'Remark', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], [ 'name' => 'Status', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], [ 'name' => 'CreateConfig', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], [ 'name' => 'ReceiveConfig', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], ], 'responses' => [ @@ -936,56 +572,32 @@ 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - ], - 'Data' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'RequestId' => ['title' => 'Id of the request', 'type' => 'string'], + 'Data' => ['type' => 'integer', 'format' => 'int64'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ParameterError', - 'errorMessage' => 'The parameter is invalid. Please check again.', - ], + ['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.'], ], 403 => [ - [ - 'errorCode' => 'AuthFailed', - 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', - ], + ['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.'], ], 408 => [ - [ - 'errorCode' => 'Timeout', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.'], ], 503 => [ - [ - 'errorCode' => 'ServiceUnavailable', - 'errorMessage' => 'The service is unavailable.', - ], + ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.'], ], ], 'responseDemo' => '', ], 'DisableAiStoreUserTask' => [ 'summary' => '禁用智能存储任务', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -998,18 +610,12 @@ [ 'name' => 'Id', 'in' => 'formData', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true], ], [ 'name' => 'AistoreVersion', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], ], 'responses' => [ @@ -1018,55 +624,32 @@ 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - ], - 'Data' => [ - 'type' => 'boolean', - ], + 'RequestId' => ['title' => 'Id of the request', 'type' => 'string'], + 'Data' => ['type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ParameterError', - 'errorMessage' => 'The parameter is invalid. Please check again.', - ], + ['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.'], ], 403 => [ - [ - 'errorCode' => 'AuthFailed', - 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', - ], + ['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.'], ], 408 => [ - [ - 'errorCode' => 'Timeout', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.'], ], 503 => [ - [ - 'errorCode' => 'ServiceUnavailable', - 'errorMessage' => 'The service is unavailable.', - ], + ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.'], ], ], 'responseDemo' => '', ], 'QueryAiStoreApiTree' => [ 'summary' => '查询智能存储API树', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1074,11 +657,7 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [], 'responses' => [ 200 => [ @@ -1086,15 +665,10 @@ 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - ], + 'RequestId' => ['title' => 'Id of the request', 'type' => 'string'], 'Data' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/AiStoreApiNode', - ], + 'items' => ['$ref' => '#/components/schemas/AiStoreApiNode'], ], ], ], @@ -1102,44 +676,24 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ParameterError', - 'errorMessage' => 'The parameter is invalid. Please check again.', - ], + ['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.'], ], 403 => [ - [ - 'errorCode' => 'AuthFailed', - 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', - ], + ['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.'], ], 408 => [ - [ - 'errorCode' => 'Timeout', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.'], ], 503 => [ - [ - 'errorCode' => 'ServiceUnavailable', - 'errorMessage' => 'The service is unavailable.', - ], + ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], ], 'DeleteAiStoreUserTask' => [ 'summary' => '删除智能存储任务', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1152,18 +706,12 @@ [ 'name' => 'Id', 'in' => 'formData', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true], ], [ 'name' => 'AistoreVersion', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], ], 'responses' => [ @@ -1172,55 +720,32 @@ 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - ], - 'Data' => [ - 'type' => 'boolean', - ], + 'RequestId' => ['title' => 'Id of the request', 'type' => 'string'], + 'Data' => ['type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ParameterError', - 'errorMessage' => 'The parameter is invalid. Please check again.', - ], + ['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.'], ], 403 => [ - [ - 'errorCode' => 'AuthFailed', - 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', - ], + ['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.'], ], 408 => [ - [ - 'errorCode' => 'Timeout', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.'], ], 503 => [ - [ - 'errorCode' => 'ServiceUnavailable', - 'errorMessage' => 'The service is unavailable.', - ], + ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.'], ], ], 'responseDemo' => '', ], 'GetAiStoreReceiveConfig' => [ 'summary' => '获取接收消息配置', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1228,23 +753,17 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'Product', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], [ 'name' => 'ApiName', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], ], 'responses' => [ @@ -1253,54 +772,31 @@ 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - ], - 'Data' => [ - '$ref' => '#/components/schemas/AiStoreReceiveConfig', - ], + 'RequestId' => ['title' => 'Id of the request', 'type' => 'string'], + 'Data' => ['$ref' => '#/components/schemas/AiStoreReceiveConfig'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ParameterError', - 'errorMessage' => 'The parameter is invalid. Please check again.', - ], + ['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.'], ], 403 => [ - [ - 'errorCode' => 'AuthFailed', - 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', - ], + ['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.'], ], 408 => [ - [ - 'errorCode' => 'Timeout', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.'], ], 503 => [ - [ - 'errorCode' => 'ServiceUnavailable', - 'errorMessage' => 'The service is unavailable.', - ], + ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.'], ], ], ], 'GetAiStoreUserTaskByName' => [ 'summary' => '根据任务名称获取智能存储任务', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1308,17 +804,12 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'Name', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], 'responses' => [ @@ -1327,54 +818,31 @@ 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - ], - 'Data' => [ - '$ref' => '#/components/schemas/AiStoreUserTask', - ], + 'RequestId' => ['title' => 'Id of the request', 'type' => 'string'], + 'Data' => ['$ref' => '#/components/schemas/AiStoreUserTask'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ParameterError', - 'errorMessage' => 'The parameter is invalid. Please check again.', - ], + ['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.'], ], 403 => [ - [ - 'errorCode' => 'AuthFailed', - 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', - ], + ['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.'], ], 408 => [ - [ - 'errorCode' => 'Timeout', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.'], ], 503 => [ - [ - 'errorCode' => 'ServiceUnavailable', - 'errorMessage' => 'The service is unavailable.', - ], + ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.'], ], ], ], 'QueryAiStoreUserTaskPage' => [ 'summary' => '分页查询智能存储任务', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1382,60 +850,42 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'Product', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], [ 'name' => 'ApiName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], [ 'name' => 'Status', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], [ 'name' => 'PageNo', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32'], ], [ 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32'], ], [ 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], [ 'name' => 'BucketName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], ], 'responses' => [ @@ -1444,22 +894,15 @@ 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], 'Data' => [ 'type' => 'object', 'properties' => [ 'TaskList' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/AiStoreUserTask', - ], - ], - 'TotalCount' => [ - 'type' => 'integer', - 'format' => 'int32', + 'items' => ['$ref' => '#/components/schemas/AiStoreUserTask'], ], + 'TotalCount' => ['type' => 'integer', 'format' => 'int32'], ], ], ], @@ -1468,36 +911,21 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'ParameterError', - 'errorMessage' => 'The parameter is invalid. Please check again.', - ], + ['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.'], ], 403 => [ - [ - 'errorCode' => 'AuthFailed', - 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', - ], + ['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.'], ], 408 => [ - [ - 'errorCode' => 'Timeout', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.'], ], 503 => [ - [ - 'errorCode' => 'ServiceUnavailable', - 'errorMessage' => 'The service is unavailable.', - ], + ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.'], ], ], ], ], 'endpoints' => [ - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'viapi.cn-shanghai.aliyuncs.com', - ], + ['regionId' => 'cn-shanghai', 'endpoint' => 'viapi.cn-shanghai.aliyuncs.com'], ], ]; diff --git a/data/zh_cn/viapi/2023-01-17/api-docs.php b/data/zh_cn/viapi/2023-01-17/api-docs.php index e525a31..c765226 100644 --- a/data/zh_cn/viapi/2023-01-17/api-docs.php +++ b/data/zh_cn/viapi/2023-01-17/api-docs.php @@ -1,129 +1,27 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'viapi', - 'version' => '2023-01-17', - ], - 'directories' => [ - 'QueryAsyncJobList', - 'GetAsyncJobResult', - 'CancelWaitingAsyncJob', - ], + 'info' => ['style' => 'RPC', 'product' => 'viapi', 'version' => '2023-01-17'], + 'directories' => ['QueryAsyncJobList', 'GetAsyncJobResult', 'CancelWaitingAsyncJob'], 'components' => [ 'schemas' => [], ], 'apis' => [ - 'QueryAsyncJobList' => [ - 'summary' => '在您成功提交异步任务以后,可以通过QueryAsyncJobList来查询已经提交的任务信息列表。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CancelWaitingAsyncJob' => [ + 'summary' => '通过CancelWaitingAsyncJob可以取消任务状态为QUEUING(排队中)的异步任务,任务状态为PROCESSING(已经开始处理的任务)无法取消。取消后任务状态为JOB_CANCELED(任务取消),已经取消的任务不会再次执行。', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'free', - 'tenantRelevance' => 'publicInformation', - ], + 'systemTags' => [], 'parameters' => [ [ - 'name' => 'StartTime', - 'in' => 'formData', - 'schema' => [ - 'description' => '开始时间。', - 'type' => 'string', - 'required' => false, - 'example' => '2023-01-04 00:00:00', - ], - ], - [ - 'name' => 'EndTime', - 'in' => 'formData', - 'schema' => [ - 'description' => '结束时间。', - 'type' => 'string', - 'required' => false, - 'example' => '2023-01-04 23:00:00', - ], - ], - [ 'name' => 'JobId', 'in' => 'formData', - 'schema' => [ - 'description' => '异步接口返回的RequestId。', - 'type' => 'string', - 'required' => false, - 'example' => 'E75FE679-0303-4DD1-8252-1143B4FA8A27 ', - ], - ], - [ - 'name' => 'PopProduct', - 'in' => 'formData', - 'schema' => [ - 'description' => '类目英文名,详情可参考[能力开通](~~465341~~)中的类目英文名。', - 'type' => 'string', - 'required' => false, - 'example' => 'ocr', - ], - ], - [ - 'name' => 'PopApiName', - 'in' => 'formData', - 'schema' => [ - 'description' => '能力接口名,详情可参考[能力开通](~~465341~~)中的能力接口名。', - 'type' => 'string', - 'required' => false, - 'example' => 'RecognizeIdentityCard ', - ], - ], - [ - 'name' => 'Status', - 'in' => 'formData', - 'schema' => [ - 'description' => '异步任务状态。包括:'."\n" - ."\n" - .'- QUEUING:任务排队中'."\n" - .'- PROCESSING:异步处理中'."\n" - .'- PROCESS_SUCCESS:处理成功'."\n" - .'- PROCESS_FAILED:处理失败'."\n" - .'- TIMEOUT_FAILED:任务超时未处理完成'."\n" - .'- LIMIT_RETRY_FAILED:超过最大重试次数'."\n" - .'- JOB_CANCELED:任务取消', - 'type' => 'string', - 'required' => false, - 'example' => 'PROCESS_SUCCESS', - ], - ], - [ - 'name' => 'PageNum', - 'in' => 'formData', - 'schema' => [ - 'description' => '起始页。', - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], - ], - [ - 'name' => 'PageSize', - 'in' => 'formData', - 'schema' => [ - 'description' => '每页查询条数,最大500条。', - 'type' => 'string', - 'required' => false, - 'example' => '20', - ], + 'schema' => ['description' => '异步接口返回的RequestId。', 'type' => 'string', 'required' => true, 'example' => 'E75FE679-0303-4DD1-8252-1143B4FA8A27 '], ], ], 'responses' => [ @@ -133,163 +31,49 @@ 'description' => 'Schema of Response.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '43A0AEB6-45F4-4138-8E89-E1A5D63200E3', - ], - 'Data' => [ - 'description' => '返回的数据内容。', - 'type' => 'object', - 'properties' => [ - 'CurrentPage' => [ - 'description' => '当前页。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'PageSize' => [ - 'description' => '每页查询条数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'TotalPage' => [ - 'description' => '总页数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'TotalRecord' => [ - 'description' => '总条数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '22', - ], - 'Result' => [ - 'description' => '查询结果。', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'CallerParentId' => [ - 'description' => '任务提交人ID。', - 'type' => 'string', - 'example' => '1850343078585779', - ], - 'EndTime' => [ - 'description' => '任务结束时间。', - 'type' => 'string', - 'example' => '2023-01-04 17:18:44', - ], - 'GmtCreate' => [ - 'description' => '任务创建时间。', - 'type' => 'string', - 'example' => '2023-01-04 17:18:44', - ], - 'JobId' => [ - 'description' => '异步任务ID。', - 'type' => 'string', - 'example' => '49E2CC28-ED1D-4CC5-854D-7D0AE2B20976', - ], - 'PopApiName' => [ - 'description' => '能力接口名,详情可参考[能力开通](~~465341~~)中的能力接口名。', - 'type' => 'string', - 'example' => 'DetectVideoShot', - ], - 'PopProduct' => [ - 'description' => '类目英文名,详情可参考[能力开通](~~465341~~)中的类目英文名。', - 'type' => 'string', - 'example' => 'videorecog', - ], - 'StartTime' => [ - 'description' => '任务开始时间。', - 'type' => 'string', - 'example' => '2023-01-04 17:18:44', - ], - 'Status' => [ - 'description' => '异步任务状态。包括:'."\n" - ."\n" - .'- QUEUING:任务排队中'."\n" - .'- PROCESSING:异步处理中'."\n" - .'- PROCESS_SUCCESS:处理成功'."\n" - .'- PROCESS_FAILED:处理失败'."\n" - .'- TIMEOUT_FAILED:任务超时未处理完成'."\n" - .'- LIMIT_RETRY_FAILED:超过最大重试次数', - 'type' => 'string', - 'example' => 'PROCESS_SUCCESS', - ], - ], - ], - ], - ], - ], - 'Message' => [ - 'description' => '异步任务错误码信息。', - 'type' => 'string', - 'example' => 'paramsIllegal', - ], - 'Success' => [ - 'description' => '是否调用成功,取值true或false。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpCode' => [ - 'description' => '异步任务错误码。', - 'type' => 'string', - 'example' => 'InvalidParameter', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '43A0AEB6-45F4-4138-8E89-E1A5D63200E3'], + 'Message' => ['description' => '返回结果信息。', 'type' => 'string', 'example' => 'Cancel job success'], + 'Success' => ['description' => '是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'HttpCode' => ['description' => '异步任务错误码。', 'type' => 'string', 'example' => 'InvalidParameter'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"43A0AEB6-45F4-4138-8E89-E1A5D63200E3\\",\\n \\"Data\\": {\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalPage\\": 2,\\n \\"TotalRecord\\": 22,\\n \\"Result\\": [\\n {\\n \\"CallerParentId\\": \\"1850343078585779\\",\\n \\"EndTime\\": \\"2023-01-04 17:18:44\\",\\n \\"GmtCreate\\": \\"2023-01-04 17:18:44\\",\\n \\"JobId\\": \\"49E2CC28-ED1D-4CC5-854D-7D0AE2B20976\\",\\n \\"PopApiName\\": \\"DetectVideoShot\\",\\n \\"PopProduct\\": \\"videorecog\\",\\n \\"StartTime\\": \\"2023-01-04 17:18:44\\",\\n \\"Status\\": \\"PROCESS_SUCCESS\\"\\n }\\n ]\\n },\\n \\"Message\\": \\"paramsIllegal\\",\\n \\"Success\\": true,\\n \\"HttpCode\\": \\"InvalidParameter\\"\\n}","errorExample":""},{"type":"xml","example":"<QueryAsyncJobListResponse>\\n <RequestId>43A0AEB6-45F4-4138-8E89-E1A5D63200E3</RequestId>\\n <Data>\\n <CurrentPage>1</CurrentPage>\\n <PageSize>20</PageSize>\\n <TotalPage>2</TotalPage>\\n <TotalRecord>22</TotalRecord>\\n <Result>\\n <CallerParentId>1850343078585779</CallerParentId>\\n <EndTime>2023-01-04 17:18:44</EndTime>\\n <GmtCreate>2023-01-04 17:18:44</GmtCreate>\\n <JobId>49E2CC28-ED1D-4CC5-854D-7D0AE2B20976</JobId>\\n <PopApiName>DetectVideoShot</PopApiName>\\n <PopProduct>videorecog</PopProduct>\\n <StartTime>2023-01-04 17:18:44</StartTime>\\n <Status>PROCESS_SUCCESS</Status>\\n </Result>\\n </Data>\\n <Message>paramsIllegal</Message>\\n <Success>true</Success>\\n <HttpCode>InvalidParameter</HttpCode>\\n</QueryAsyncJobListResponse>","errorExample":""}]', - 'title' => '查询异步任务列表', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"43A0AEB6-45F4-4138-8E89-E1A5D63200E3\\",\\n \\"Message\\": \\"Cancel job success\\",\\n \\"Success\\": true,\\n \\"HttpCode\\": \\"InvalidParameter\\"\\n}","errorExample":""},{"type":"xml","example":"<CancelWaitingAsyncJobResponse>\\n <RequestId>43A0AEB6-45F4-4138-8E89-E1A5D63200E3</RequestId>\\n <Message>Cancel job success</Message>\\n <Success>true</Success>\\n <HttpCode>InvalidParameter</HttpCode>\\n</CancelWaitingAsyncJobResponse>","errorExample":""}]', + 'title' => '取消排队中异步任务', 'description' => '## 功能描述'."\n" - .'在您成功提交异步任务以后,可以通过QueryAsyncJobList来查询已经提交的任务信息列表。'."\n" + .'通过CancelWaitingAsyncJob可以取消任务状态为QUEUING(排队中)的异步任务,任务状态为PROCESSING(已经开始处理的任务)无法取消。取消后任务状态为JOB_CANCELED(任务取消),已经取消的任务不会再次执行。'."\n" ."\n" .'> - 您可以进入[在线咨询](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2)获取在线人工帮助。'."\n" .'- 阿里云视觉智能开放平台视觉AI能力API接入、接口使用或问题咨询等,请通过钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n" + .'- 本接口只能取消任务状态为QUEUING(排队中)的异步任务,其他状态的任务无法取消。'."\n" ."\n" .'## 示例代码'."\n" - .'该能力常用语言查询异步任务列表的示例代码,请参见[查询异步任务列表示例代码](~~607975~~)。'."\n" - ."\n" - .'## 调用说明'."\n" - ."\n" - .'- 只能查询当前账号提交的异步任务。'."\n" - .'- 只有开通了对应能力以后才可以根据类目名称和能力接口名称进行筛选查询。'."\n" - .'- 当前接口调用每5秒内只允许请求1次,如果返回报错,请5秒后再次重试。'."\n" - .'- 无法查询时间长度超过24小时以外的数据。', + .'该能力常用语言取消排队中异步任务的示例代码,请参见[取消排队中异步任务示例代码](~~607976~~)。', 'requestParamsDescription' => '### 请求示例'."\n" + ."\n" .'```http'."\n" - .'http(s)://viapi.cn-shanghai.aliyuncs.com/?action=QueryAsyncJobList //更多关于访问域名(Endpoint)信息,请参见:https://help.aliyun.com/document_detail/143103.html'."\n" - .'&callerParentId=1850343078585779 '."\n" - .'&startTime=2023-01-04 17:18:44'."\n" - .'&endTime=2023-01-04 17:18:44'."\n" - .'&jobId=49E2CC28-ED1D-4CC5-854D-7D0AE2B20976'."\n" - .'&popProduct=videorecog'."\n" - .'&popApiName=DetectVideoShot'."\n" - .'&status=PROCESS_SUCCESS'."\n" - .'&gmtCreate=2023-01-04 17:18:44 '."\n" + .'http(s)://viapi.cn-shanghai.aliyuncs.com/?action=CancelWaitingAsyncJob //更多关于访问域名(Endpoint)信息,请参见:https://help.aliyun.com/document_detail/143103.html'."\n" + .'&jobId=E75FE679-0303-4DD1-8252-1143B4FA8A27 '."\n" .'&<公共请求参数>'."\n" .'```', 'responseParamsDescription' => '## SDK参考'."\n" .'阿里云视觉AI能力推荐使用SDK调用,支持多种编程语言,具体可参见[SDK总览](~~145033~~)。', 'extraInfo' => '## 错误码'."\n" .'关于取消排队中异步任务的错误码,详情请参见[常见错误码](~~606865~~)。', - ], - 'GetAsyncJobResult' => [ - 'methods' => [ - 'post', + 'changeSet' => [ + ['createdAt' => '2024-02-27T12:08:08.000Z', 'description' => '响应参数发生变更'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CancelWaitingAsyncJob'], + ], ], + ], + 'GetAsyncJobResult' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -302,12 +86,7 @@ [ 'name' => 'JobId', 'in' => 'formData', - 'schema' => [ - 'description' => '输入异步接口返回的RequestId,输入后可以查询异步接口的真实请求结果。', - 'type' => 'string', - 'required' => true, - 'example' => 'B6590005-5E7C-4A25-8F97-4479888D8271', - ], + 'schema' => ['description' => '输入异步接口返回的RequestId,输入后可以查询异步接口的真实请求结果。', 'type' => 'string', 'required' => true, 'example' => 'B6590005-5E7C-4A25-8F97-4479888D8271'], ], ], 'responses' => [ @@ -315,50 +94,27 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0E448D84-1736-1BCD-BEA5-866C413515A1', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0E448D84-1736-1BCD-BEA5-866C413515A1'], 'Data' => [ 'description' => '返回的数据内容。', 'type' => 'object', 'properties' => [ - 'Status' => [ - 'description' => '异步任务状态。包括:'."\n" - ."\n" - .'- QUEUING:任务排队中'."\n" - .'- PROCESSING:异步处理中'."\n" - .'- PROCESS_SUCCESS:处理成功'."\n" - .'- PROCESS_FAILED:处理失败'."\n" - .'- TIMEOUT_FAILED:任务超时未处理完成'."\n" - .'- LIMIT_RETRY_FAILED:超过最大重试次数(如返回该状态,请稍后重新调用算法接口,然后调用查询异步任务结果接口GetAsyncJobResult)', - 'type' => 'string', - 'example' => 'PROCESS_SUCCESS', - ], - 'ErrorMessage' => [ - 'description' => '异步任务错误码信息。', - 'type' => 'string', - 'example' => 'paramsIllegal', - ], - 'Result' => [ - 'description' => '异步任务返回的真实请求结果。', - 'type' => 'string', - 'example' => '"{\\"jsonUrl\\":\\"http://vibktprfx-prod-prod-damo-eas-cn-shanghai.oss-cn-shanghai.aliyuncs.com/eas-video-quality-assessment/2023-01-11-16/01%3A52-crxCR763VXTeY0bP.json?Expires=1673425915&OSSAccessKeyId=LTAI****************&Signature=iW07EIZaqaiMNoF3RJZwsLVxOx****\\",\\"pdfUrl\\":\\"http://vibktprfx-prod-prod-damo-eas-cn-shanghai.oss-cn-shanghai.aliyuncs.com/eas-video-quality-assessment/2023-01-11-16/01%3A52-crxCR763VXTeY0bP.pdf?Expires=1673425916&OSSAccessKeyId=LTAI****************&Signature=BvZ3ayeTTxaR65ZvQ2%2FoE8W8Lr****\\"}"', - ], - 'ErrorCode' => [ - 'description' => '异步任务错误码。', - 'type' => 'string', - 'example' => 'InvalidParameter', - ], - 'JobId' => [ - 'description' => '异步任务ID。', - 'type' => 'string', - 'example' => 'A421D5F0-4F73-19F5-8D92-D509FAD281D2', - ], + 'Status' => ['description' => '异步任务状态。包括:'."\n" + ."\n" + .'- QUEUING:任务排队中'."\n" + .'- PROCESSING:异步处理中'."\n" + .'- PROCESS_SUCCESS:处理成功'."\n" + .'- PROCESS_FAILED:处理失败'."\n" + .'- TIMEOUT_FAILED:任务超时未处理完成'."\n" + .'- LIMIT_RETRY_FAILED:超过最大重试次数(如返回该状态,请稍后重新调用算法接口,然后调用查询异步任务结果接口GetAsyncJobResult)', 'type' => 'string', 'example' => 'PROCESS_SUCCESS'], + 'ErrorMessage' => ['description' => '异步任务错误码信息。', 'type' => 'string', 'example' => 'paramsIllegal'], + 'Result' => ['description' => '异步任务返回的真实请求结果。', 'type' => 'string', 'example' => '"{\\"jsonUrl\\":\\"http://vibktprfx-prod-prod-damo-eas-cn-shanghai.oss-cn-shanghai.aliyuncs.com/eas-video-quality-assessment/2023-01-11-16/01%3A52-crxCR763VXTeY0bP.json?Expires=1673425915&OSSAccessKeyId=LTAI****************&Signature=iW07EIZaqaiMNoF3RJZwsLVxOx****\\",\\"pdfUrl\\":\\"http://vibktprfx-prod-prod-damo-eas-cn-shanghai.oss-cn-shanghai.aliyuncs.com/eas-video-quality-assessment/2023-01-11-16/01%3A52-crxCR763VXTeY0bP.pdf?Expires=1673425916&OSSAccessKeyId=LTAI****************&Signature=BvZ3ayeTTxaR65ZvQ2%2FoE8W8Lr****\\"}"'], + 'ErrorCode' => ['description' => '异步任务错误码。', 'type' => 'string', 'example' => 'InvalidParameter'], + 'JobId' => ['description' => '异步任务ID。', 'type' => 'string', 'example' => 'A421D5F0-4F73-19F5-8D92-D509FAD281D2'], ], ], ], + 'description' => '', ], ], ], @@ -382,33 +138,70 @@ .'## 安全声明'."\n" .'- 请确保上传的图片或文件来源符合相应的法律法规。'."\n" .'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。'."\n", - ], - 'CancelWaitingAsyncJob' => [ - 'summary' => '通过CancelWaitingAsyncJob可以取消任务状态为QUEUING(排队中)的异步任务,任务状态为PROCESSING(已经开始处理的任务)无法取消。取消后任务状态为JOB_CANCELED(任务取消),已经取消的任务不会再次执行。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [ + ['createdAt' => '2024-02-27T12:08:08.000Z', 'description' => '响应参数发生变更'], ], + ], + 'QueryAsyncJobList' => [ + 'summary' => '在您成功提交异步任务以后,可以通过QueryAsyncJobList来查询已经提交的任务信息列表。', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'], 'parameters' => [ [ + 'name' => 'StartTime', + 'in' => 'formData', + 'schema' => ['description' => '开始时间。', 'type' => 'string', 'required' => false, 'example' => '2023-01-04 00:00:00'], + ], + [ + 'name' => 'EndTime', + 'in' => 'formData', + 'schema' => ['description' => '结束时间。', 'type' => 'string', 'required' => false, 'example' => '2023-01-04 23:00:00'], + ], + [ 'name' => 'JobId', 'in' => 'formData', - 'schema' => [ - 'description' => '异步接口返回的RequestId。', - 'type' => 'string', - 'required' => true, - 'example' => 'E75FE679-0303-4DD1-8252-1143B4FA8A27 ', - ], + 'schema' => ['description' => '异步接口返回的RequestId。', 'type' => 'string', 'required' => false, 'example' => 'E75FE679-0303-4DD1-8252-1143B4FA8A27 '], + ], + [ + 'name' => 'PopProduct', + 'in' => 'formData', + 'schema' => ['description' => '类目英文名,详情可参考[能力开通](~~465341~~)中的类目英文名。', 'type' => 'string', 'required' => false, 'example' => 'ocr'], + ], + [ + 'name' => 'PopApiName', + 'in' => 'formData', + 'schema' => ['description' => '能力接口名,详情可参考[能力开通](~~465341~~)中的能力接口名。', 'type' => 'string', 'required' => false, 'example' => 'RecognizeIdentityCard '], + ], + [ + 'name' => 'Status', + 'in' => 'formData', + 'schema' => ['description' => '异步任务状态。包括:'."\n" + ."\n" + .'- QUEUING:任务排队中'."\n" + .'- PROCESSING:异步处理中'."\n" + .'- PROCESS_SUCCESS:处理成功'."\n" + .'- PROCESS_FAILED:处理失败'."\n" + .'- TIMEOUT_FAILED:任务超时未处理完成'."\n" + .'- LIMIT_RETRY_FAILED:超过最大重试次数'."\n" + .'- JOB_CANCELED:任务取消', 'type' => 'string', 'required' => false, 'example' => 'PROCESS_SUCCESS'], + ], + [ + 'name' => 'PageNum', + 'in' => 'formData', + 'schema' => ['description' => '起始页。', 'type' => 'string', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'formData', + 'schema' => ['description' => '每页查询条数,最大500条。', 'type' => 'string', 'required' => false, 'example' => '20'], ], ], 'responses' => [ @@ -418,62 +211,154 @@ 'description' => 'Schema of Response.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '43A0AEB6-45F4-4138-8E89-E1A5D63200E3', - ], - 'Message' => [ - 'description' => '返回结果信息。', - 'type' => 'string', - 'example' => 'Cancel job success', - ], - 'Success' => [ - 'description' => '是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpCode' => [ - 'description' => '异步任务错误码。', - 'type' => 'string', - 'example' => 'InvalidParameter', + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '43A0AEB6-45F4-4138-8E89-E1A5D63200E3'], + 'Data' => [ + 'description' => '返回的数据内容。', + 'type' => 'object', + 'properties' => [ + 'CurrentPage' => ['description' => '当前页。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'PageSize' => ['description' => '每页查询条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'TotalPage' => ['description' => '总页数。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], + 'TotalRecord' => ['description' => '总条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '22'], + 'Result' => [ + 'description' => '查询结果。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'CallerParentId' => ['description' => '任务提交人ID。', 'type' => 'string', 'example' => '1850343078585779'], + 'EndTime' => ['description' => '任务结束时间。', 'type' => 'string', 'example' => '2023-01-04 17:18:44'], + 'GmtCreate' => ['description' => '任务创建时间。', 'type' => 'string', 'example' => '2023-01-04 17:18:44'], + 'JobId' => ['description' => '异步任务ID。', 'type' => 'string', 'example' => '49E2CC28-ED1D-4CC5-854D-7D0AE2B20976'], + 'PopApiName' => ['description' => '能力接口名,详情可参考[能力开通](~~465341~~)中的能力接口名。', 'type' => 'string', 'example' => 'DetectVideoShot'], + 'PopProduct' => ['description' => '类目英文名,详情可参考[能力开通](~~465341~~)中的类目英文名。', 'type' => 'string', 'example' => 'videorecog'], + 'StartTime' => ['description' => '任务开始时间。', 'type' => 'string', 'example' => '2023-01-04 17:18:44'], + 'Status' => ['description' => '异步任务状态。包括:'."\n" + ."\n" + .'- QUEUING:任务排队中'."\n" + .'- PROCESSING:异步处理中'."\n" + .'- PROCESS_SUCCESS:处理成功'."\n" + .'- PROCESS_FAILED:处理失败'."\n" + .'- TIMEOUT_FAILED:任务超时未处理完成'."\n" + .'- LIMIT_RETRY_FAILED:超过最大重试次数', 'type' => 'string', 'example' => 'PROCESS_SUCCESS'], + ], + 'description' => '', + ], + ], + ], ], + 'Message' => ['description' => '异步任务错误码信息。', 'type' => 'string', 'example' => 'paramsIllegal'], + 'Success' => ['description' => '是否调用成功,取值true或false。', 'type' => 'boolean', 'example' => 'true'], + 'HttpCode' => ['description' => '异步任务错误码。', 'type' => 'string', 'example' => 'InvalidParameter'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"43A0AEB6-45F4-4138-8E89-E1A5D63200E3\\",\\n \\"Message\\": \\"Cancel job success\\",\\n \\"Success\\": true,\\n \\"HttpCode\\": \\"InvalidParameter\\"\\n}","errorExample":""},{"type":"xml","example":"<CancelWaitingAsyncJobResponse>\\n <RequestId>43A0AEB6-45F4-4138-8E89-E1A5D63200E3</RequestId>\\n <Message>Cancel job success</Message>\\n <Success>true</Success>\\n <HttpCode>InvalidParameter</HttpCode>\\n</CancelWaitingAsyncJobResponse>","errorExample":""}]', - 'title' => '取消排队中异步任务', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"43A0AEB6-45F4-4138-8E89-E1A5D63200E3\\",\\n \\"Data\\": {\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalPage\\": 2,\\n \\"TotalRecord\\": 22,\\n \\"Result\\": [\\n {\\n \\"CallerParentId\\": \\"1850343078585779\\",\\n \\"EndTime\\": \\"2023-01-04 17:18:44\\",\\n \\"GmtCreate\\": \\"2023-01-04 17:18:44\\",\\n \\"JobId\\": \\"49E2CC28-ED1D-4CC5-854D-7D0AE2B20976\\",\\n \\"PopApiName\\": \\"DetectVideoShot\\",\\n \\"PopProduct\\": \\"videorecog\\",\\n \\"StartTime\\": \\"2023-01-04 17:18:44\\",\\n \\"Status\\": \\"PROCESS_SUCCESS\\"\\n }\\n ]\\n },\\n \\"Message\\": \\"paramsIllegal\\",\\n \\"Success\\": true,\\n \\"HttpCode\\": \\"InvalidParameter\\"\\n}","errorExample":""},{"type":"xml","example":"<QueryAsyncJobListResponse>\\n <RequestId>43A0AEB6-45F4-4138-8E89-E1A5D63200E3</RequestId>\\n <Data>\\n <CurrentPage>1</CurrentPage>\\n <PageSize>20</PageSize>\\n <TotalPage>2</TotalPage>\\n <TotalRecord>22</TotalRecord>\\n <Result>\\n <CallerParentId>1850343078585779</CallerParentId>\\n <EndTime>2023-01-04 17:18:44</EndTime>\\n <GmtCreate>2023-01-04 17:18:44</GmtCreate>\\n <JobId>49E2CC28-ED1D-4CC5-854D-7D0AE2B20976</JobId>\\n <PopApiName>DetectVideoShot</PopApiName>\\n <PopProduct>videorecog</PopProduct>\\n <StartTime>2023-01-04 17:18:44</StartTime>\\n <Status>PROCESS_SUCCESS</Status>\\n </Result>\\n </Data>\\n <Message>paramsIllegal</Message>\\n <Success>true</Success>\\n <HttpCode>InvalidParameter</HttpCode>\\n</QueryAsyncJobListResponse>","errorExample":""}]', + 'title' => '查询异步任务列表', 'description' => '## 功能描述'."\n" - .'通过CancelWaitingAsyncJob可以取消任务状态为QUEUING(排队中)的异步任务,任务状态为PROCESSING(已经开始处理的任务)无法取消。取消后任务状态为JOB_CANCELED(任务取消),已经取消的任务不会再次执行。'."\n" + .'在您成功提交异步任务以后,可以通过QueryAsyncJobList来查询已经提交的任务信息列表。'."\n" ."\n" .'> - 您可以进入[在线咨询](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2)获取在线人工帮助。'."\n" .'- 阿里云视觉智能开放平台视觉AI能力API接入、接口使用或问题咨询等,请通过钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n" - .'- 本接口只能取消任务状态为QUEUING(排队中)的异步任务,其他状态的任务无法取消。'."\n" ."\n" .'## 示例代码'."\n" - .'该能力常用语言取消排队中异步任务的示例代码,请参见[取消排队中异步任务示例代码](~~607976~~)。', - 'requestParamsDescription' => '### 请求示例'."\n" + .'该能力常用语言查询异步任务列表的示例代码,请参见[查询异步任务列表示例代码](~~607975~~)。'."\n" + ."\n" + .'## 调用说明'."\n" ."\n" + .'- 只能查询当前账号提交的异步任务。'."\n" + .'- 只有开通了对应能力以后才可以根据类目名称和能力接口名称进行筛选查询。'."\n" + .'- 当前接口调用每5秒内只允许请求1次,如果返回报错,请5秒后再次重试。'."\n" + .'- 无法查询时间长度超过24小时以外的数据。', + 'requestParamsDescription' => '### 请求示例'."\n" .'```http'."\n" - .'http(s)://viapi.cn-shanghai.aliyuncs.com/?action=CancelWaitingAsyncJob //更多关于访问域名(Endpoint)信息,请参见:https://help.aliyun.com/document_detail/143103.html'."\n" - .'&jobId=E75FE679-0303-4DD1-8252-1143B4FA8A27 '."\n" + .'http(s)://viapi.cn-shanghai.aliyuncs.com/?action=QueryAsyncJobList //更多关于访问域名(Endpoint)信息,请参见:https://help.aliyun.com/document_detail/143103.html'."\n" + .'&callerParentId=1850343078585779 '."\n" + .'&startTime=2023-01-04 17:18:44'."\n" + .'&endTime=2023-01-04 17:18:44'."\n" + .'&jobId=49E2CC28-ED1D-4CC5-854D-7D0AE2B20976'."\n" + .'&popProduct=videorecog'."\n" + .'&popApiName=DetectVideoShot'."\n" + .'&status=PROCESS_SUCCESS'."\n" + .'&gmtCreate=2023-01-04 17:18:44 '."\n" .'&<公共请求参数>'."\n" .'```', 'responseParamsDescription' => '## SDK参考'."\n" .'阿里云视觉AI能力推荐使用SDK调用,支持多种编程语言,具体可参见[SDK总览](~~145033~~)。', 'extraInfo' => '## 错误码'."\n" .'关于取消排队中异步任务的错误码,详情请参见[常见错误码](~~606865~~)。', + 'changeSet' => [], ], ], - 'endpoints' => [ + 'endpoints' => [], + 'errorCodes' => [], + 'changeSet' => [ [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'viapi.cn-shanghai.aliyuncs.com', + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'CancelWaitingAsyncJob'], + ['description' => '响应参数发生变更', 'api' => 'GetAsyncJobResult'], + ['description' => '响应参数发生变更', 'api' => 'QueryAsyncJobList'], + ], + 'createdAt' => '2024-02-27T12:08:17.000Z', + 'description' => '', + ], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CancelWaitingAsyncJob'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAsyncJobResult'], + ['threshold' => '1', 'countWindow' => 5, 'regionId' => '*', 'api' => 'QueryAsyncJobList'], + ], + ], + 'ram' => [ + 'productCode' => 'VisualIntelligenceAPI', + 'productName' => '视觉智能开放平台', + 'ramCodes' => ['viapi-imageseg', 'viapi-imageaudit', 'viapi-ocr', 'viapi-objectdet', 'viapi-imageenhan', 'viapi-videorecog', 'viapi-imageprocess', 'viapi', 'viapi-ekyc', 'viapi-imgsearch', 'viapi-goodstech', 'viapi-facebody', 'viapi-threedvision', 'viapi-videoenhan', 'viapi-imagerecog', 'viapi-videoseg', 'viapi-regen', 'viapi-aigen'], + 'ramLevel' => '服务级', + 'ramConditions' => [], + 'ramActions' => [ + [ + 'apiName' => 'CancelWaitingAsyncJob', + 'description' => '取消排队中异步任务', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'viapi:CancelWaitingAsyncJob', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetAsyncJobResult', + 'description' => '查询异步任务结果', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'viapi:GetAsyncJobResult', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'QueryAsyncJobList', + 'description' => '查询异步任务列表', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'viapi:QueryAsyncJobList', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'resourceTypes' => [], ], ]; |
