1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'RPC', 'product' => 'viapi', 'version' => '2023-01-17'],
'directories' => ['QueryAsyncJobList', 'GetAsyncJobResult', 'CancelWaitingAsyncJob'],
'components' => [
'schemas' => [],
],
'apis' => [
'CancelWaitingAsyncJob' => [
'summary' => 'You can use CancelWaitingAsyncJob to cancel async tasks with a status of QUEUING. Tasks with a status of PROCESSING (already being processed) cannot be canceled. After cancellation, the task status changes to JOB_CANCELED, and canceled tasks will not be executed again.',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'JobId',
'in' => 'formData',
'schema' => ['description' => 'The RequestId returned by the asynchronous API.', 'type' => 'string', 'required' => true, 'example' => 'E75FE679-0303-4DD1-8252-1143B4FA8A27 ', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'Schema of Response.',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => '', 'description' => 'Request ID.', 'type' => 'string', 'example' => '43A0AEB6-45F4-4138-8E89-E1A5D63200E3'],
'Message' => ['description' => 'The returned result message.', 'type' => 'string', 'example' => 'Cancel job success', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'HttpCode' => ['description' => 'The error code of the asynchronous task.', 'type' => 'string', 'example' => 'InvalidParameter', 'title' => ''],
],
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"43A0AEB6-45F4-4138-8E89-E1A5D63200E3\\",\\n \\"Message\\": \\"Cancel job success\\",\\n \\"Success\\": true,\\n \\"HttpCode\\": \\"InvalidParameter\\"\\n}","type":"json"}]',
'title' => 'Cancel a Queuing Async Task',
'description' => '## Description'."\n"
.'You can use CancelWaitingAsyncJob to cancel async tasks with a status of QUEUING. Tasks with a status of PROCESSING (already being processed) cannot be canceled. After cancellation, the task status changes to JOB_CANCELED, and canceled tasks will not be executed again.'."\n"
."\n"
.'> - You can visit [Online Consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) for online assistance.'."\n"
.'- To integrate Alibaba Cloud Visual Intelligence Open Platform Visual AI APIs, learn about API usage, or get consultations, please join the Alibaba Cloud Visual Intelligence Open Platform consultation group via DingTalk group (23109592) to contact us.'."\n"
.'- This API can only cancel async tasks with a status of QUEUING. Tasks in other statuses cannot be canceled.'."\n"
."\n"
.'## Sample Code'."\n"
.'For sample code in commonly used programming languages to cancel a queuing async task, see [Cancel Queuing Async Task Sample Code](~~607976~~).',
'requestParamsDescription' => '### Request Example'."\n"
."\n"
.'```http'."\n"
.'http(s)://viapi.cn-shanghai.aliyuncs.com/?action=CancelWaitingAsyncJob //For more information about the endpoint, see: https://help.aliyun.com/document_detail/143103.html'."\n"
.'&jobId=E75FE679-0303-4DD1-8252-1143B4FA8A27 '."\n"
.'&<Common request parameters>'."\n"
.'```',
'responseParamsDescription' => '## SDK Reference'."\n"
.'We recommend that you use an SDK to call Alibaba Cloud Visual AI APIs. SDKs are available for multiple programming languages. For more information, see [SDK Overview](~~145033~~).',
'extraInfo' => '## Error Codes'."\n"
.'For error codes related to canceling a queuing async task, see [Common Error Codes](~~606865~~).',
'changeSet' => [
['createdAt' => '2024-02-27T12:08:08.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CancelWaitingAsyncJob'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi:CancelWaitingAsyncJob',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'GetAsyncJobResult' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'JobId',
'in' => 'formData',
'schema' => ['description' => 'The RequestId returned by the asynchronous API operation. You can use this value to query the actual result of the asynchronous operation.', 'type' => 'string', 'required' => true, 'example' => 'B6590005-5E7C-4A25-8F97-4479888D8271', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '0E448D84-1736-1BCD-BEA5-866C413515A1', 'title' => ''],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The status of the asynchronous task. Valid values:'."\n"
."\n"
.'- QUEUING: The task is waiting in the queue.'."\n"
.'- PROCESSING: The task is being processed.'."\n"
.'- PROCESS_SUCCESS: The task was processed.'."\n"
.'- PROCESS_FAILED: The task failed to be processed.'."\n"
.'- TIMEOUT_FAILED: The task timed out.'."\n"
.'- LIMIT_RETRY_FAILED: The maximum number of retries was exceeded. If this status is returned, invoke the algorithm API operation again and then invoke GetAsyncJobResult to query the task result.', 'type' => 'string', 'example' => 'PROCESS_SUCCESS', 'title' => ''],
'ErrorMessage' => ['description' => 'The error message of the asynchronous task.', 'type' => 'string', 'example' => 'paramsIllegal', 'title' => ''],
'Result' => ['description' => 'The actual result of the asynchronous task.', '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****\\"}"', 'title' => ''],
'ErrorCode' => ['description' => 'The error code of the asynchronous task.', 'type' => 'string', 'example' => 'InvalidParameter', 'title' => ''],
'JobId' => ['description' => 'The asynchronous task ID.', 'type' => 'string', 'example' => 'A421D5F0-4F73-19F5-8D92-D509FAD281D2', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0E448D84-1736-1BCD-BEA5-866C413515A1\\",\\n \\"Data\\": {\\n \\"Status\\": \\"PROCESS_SUCCESS\\",\\n \\"ErrorMessage\\": \\"paramsIllegal\\",\\n \\"Result\\": \\"\\\\\\"{\\\\\\\\\\\\\\"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****\\\\\\\\\\\\\\"}\\\\\\"\\",\\n \\"ErrorCode\\": \\"InvalidParameter\\",\\n \\"JobId\\": \\"A421D5F0-4F73-19F5-8D92-D509FAD281D2\\"\\n }\\n}","type":"json"}]',
'title' => 'Query asynchronous task results',
'summary' => 'For asynchronous API operations, the initial response does not contain the actual result. Save the RequestId from the response and call GetAsyncJobResult to obtain the actual result.',
'description' => '## Feature description'."\n"
.'For asynchronous API operations, the initial response does not contain the actual result. Save the RequestId from the response and invoke GetAsyncJobResult to obtain the actual result.'."\n"
."\n"
.'> - Files generated by asynchronous tasks expire after 30 minutes. To use the files for an extended period, download them to a local server or store them in Object Storage Service (OSS). For more information about OSS operations, see [Upload files](~~31886~~).'."\n"
.'- You can join the [online consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) to get help from online support.'."\n"
.'- For questions about Visual Intelligence API access, usage, or other inquiries, contact us by joining the Visual Intelligence API consultation DingTalk group (23109592).'."\n"
."\n"
.'## Sample code'."\n"
.'For sample code in commonly used programming languages for querying asynchronous task results, see [Sample code for querying asynchronous task results](~~607974~~).',
'responseParamsDescription' => '## SDK reference'."\n"
.'We recommend that you use the Alibaba Cloud Visual AI SDK. The SDK supports multiple programming languages. For more information, see [SDK overview](~~145033~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of the query asynchronous task results operation, see [Common error codes](~~606865~~).'."\n"
."\n"
.'## Security notice'."\n"
.'- Make sure that the images or files you upload comply with applicable laws and regulations.'."\n"
.'- Temporary files uploaded through the debugging feature are valid for 1 hour and are automatically cleaned up and deleted by the system after 24 hours.',
'changeSet' => [
['createdAt' => '2024-02-27T12:08:08.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAsyncJobResult'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi:GetAsyncJobResult',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'QueryAsyncJobList' => [
'summary' => 'Queries the list of submitted asynchronous tasks after you successfully submit an asynchronous task.',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'StartTime',
'in' => 'formData',
'schema' => ['description' => 'The start time.', 'type' => 'string', 'required' => false, 'example' => '2023-01-04 00:00:00', 'title' => ''],
],
[
'name' => 'EndTime',
'in' => 'formData',
'schema' => ['description' => 'The end time.', 'type' => 'string', 'required' => false, 'example' => '2023-01-04 23:00:00', 'title' => ''],
],
[
'name' => 'JobId',
'in' => 'formData',
'schema' => ['description' => 'The RequestId returned by the asynchronous API operation.', 'type' => 'string', 'required' => false, 'example' => 'E75FE679-0303-4DD1-8252-1143B4FA8A27 ', 'title' => ''],
],
[
'name' => 'PopProduct',
'in' => 'formData',
'schema' => ['description' => 'The category name in English. For more information, see the category name in English in [Activate capabilities](~~465341~~).', 'type' => 'string', 'required' => false, 'example' => 'ocr', 'title' => ''],
],
[
'name' => 'PopApiName',
'in' => 'formData',
'schema' => ['description' => 'The capability API name. For more information, see the capability API name in [Activate capabilities](~~465341~~).', 'type' => 'string', 'required' => false, 'example' => 'RecognizeIdentityCard ', 'title' => ''],
],
[
'name' => 'Status',
'in' => 'formData',
'schema' => ['description' => 'The submit status of the asynchronous task. Valid values:'."\n"
."\n"
.'- QUEUING: The task is queuing.'."\n"
.'- PROCESSING: The task is being processed.'."\n"
.'- PROCESS_SUCCESS: The task is processed.'."\n"
.'- PROCESS_FAILED: The task failed to be processed.'."\n"
.'- TIMEOUT_FAILED: The task timed out.'."\n"
.'- LIMIT_RETRY_FAILED: The maximum number of retries is exceeded.'."\n"
.'- JOB_CANCELED: The task is canceled.', 'type' => 'string', 'required' => false, 'example' => 'PROCESS_SUCCESS', 'title' => ''],
],
[
'name' => 'PageNum',
'in' => 'formData',
'schema' => ['description' => 'The start page number.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'formData',
'schema' => ['description' => 'The number of entries per page. Maximum value: 500.', 'type' => 'string', 'required' => false, 'example' => '20', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'Schema of Response.',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '43A0AEB6-45F4-4138-8E89-E1A5D63200E3'],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'CurrentPage' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
'TotalPage' => ['description' => 'The total number of pages.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
'TotalRecord' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '22', 'title' => ''],
'Result' => [
'description' => 'The query results.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'CallerParentId' => ['description' => 'The ID of the task submitter.', 'type' => 'string', 'example' => '1850343078585779', 'title' => ''],
'EndTime' => ['description' => 'The end time of the task.', 'type' => 'string', 'example' => '2023-01-04 17:18:44', 'title' => ''],
'GmtCreate' => ['description' => 'The creation time of the task.', 'type' => 'string', 'example' => '2023-01-04 17:18:44', 'title' => ''],
'JobId' => ['description' => 'The asynchronous task ID.', 'type' => 'string', 'example' => '49E2CC28-ED1D-4CC5-854D-7D0AE2B20976', 'title' => ''],
'PopApiName' => ['description' => 'The capability API name. For more information, see the capability API name in [Activate capabilities](~~465341~~).', 'type' => 'string', 'example' => 'DetectVideoShot', 'title' => ''],
'PopProduct' => ['description' => 'The category name in English. For more information, see the category name in English in [Activate capabilities](~~465341~~).', 'type' => 'string', 'example' => 'videorecog', 'title' => ''],
'StartTime' => ['description' => 'The start time of the task.', 'type' => 'string', 'example' => '2023-01-04 17:18:44', 'title' => ''],
'Status' => ['description' => 'The submit status of the asynchronous task. Valid values:'."\n"
."\n"
.'- QUEUING: The task is queuing.'."\n"
.'- PROCESSING: The task is being processed.'."\n"
.'- PROCESS_SUCCESS: The task is processed.'."\n"
.'- PROCESS_FAILED: The task failed to be processed.'."\n"
.'- TIMEOUT_FAILED: The task timed out.'."\n"
.'- LIMIT_RETRY_FAILED: The maximum number of retries is exceeded.', 'type' => 'string', 'example' => 'PROCESS_SUCCESS', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'Message' => ['description' => 'The error message of the asynchronous task.', 'type' => 'string', 'example' => 'paramsIllegal', 'title' => ''],
'Success' => ['description' => 'Indicates whether the call was successful. Valid values: true and false.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'HttpCode' => ['description' => 'The error code of the asynchronous task.', 'type' => 'string', 'example' => 'InvalidParameter', 'title' => ''],
],
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","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}","type":"json"}]',
'title' => 'Query asynchronous task list',
'description' => '## Description'."\n"
.'After you successfully submit an asynchronous task, you can call QueryAsyncJobList to query the list of submitted task information.'."\n"
."\n"
.'> - You can join the [online consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) to get online help.'."\n"
.'- To get help with Visual Intelligence API capability access, API usage, or other issues, join the DingTalk group (23109592) to contact us.'."\n"
."\n"
.'## Sample code'."\n"
.'For sample code of querying the asynchronous task list in commonly used programming languages, see [Sample code for querying asynchronous task list](~~607975~~).'."\n"
."\n"
.'## Usage notes'."\n"
."\n"
.'- You can only query asynchronous tasks submitted by the current account.'."\n"
.'- You can perform a filtered query by category name and capability API name only after you have activated the corresponding capability.'."\n"
.'- You can invoke this API operation only once every 5 seconds. If an error is returned, retry after 5 seconds.'."\n"
.'- You cannot query data older than 24 hours.',
'requestParamsDescription' => '### Request example'."\n"
.'```http'."\n"
.'http(s)://viapi.cn-shanghai.aliyuncs.com/?action=QueryAsyncJobList //For more information about endpoints, see: 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"
.'&<Common request parameters>'."\n"
.'```.',
'responseParamsDescription' => '## SDK reference'."\n"
.'We recommend that you use the Visual Intelligence API SDK. SDKs are available for multiple programming languages. For more information, see [SDK overview](~~145033~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes related to canceling queued asynchronous tasks, see [Common error codes](~~606865~~).',
'changeSet' => [
['createdAt' => '2024-02-27T12:08:08.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '1', 'countWindow' => 5, 'regionId' => '*', 'api' => 'QueryAsyncJobList'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'viapi:QueryAsyncJobList',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
],
'endpoints' => [
['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'viapi.cn-shanghai.aliyuncs.com', 'endpoint' => 'viapi.cn-shanghai.aliyuncs.com', 'vpc' => 'viapi-vpc.cn-shanghai.aliyuncs.com'],
],
'errorCodes' => [
['code' => 'InvalidParameter', 'message' => 'JobStatusError.', 'http_code' => 400, 'description' => 'JobStatusError'],
['code' => 'InvalidParameter', 'message' => 'JobCanceled.', 'http_code' => 400, 'description' => 'JobCanceled'."\n"],
['code' => 'InvalidParameter.BadRequest', 'message' => 'job Id not exists.', 'http_code' => 400, 'description' => 'job Id not exists.'],
['code' => 'Throttling', 'message' => 'The request was denied due to QPS limits.', 'http_code' => 400, 'description' => 'The request was denied due to QPS limits.'."\n"],
],
'changeSet' => [
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'CancelWaitingAsyncJob'],
['description' => 'Response parameters changed', 'api' => 'GetAsyncJobResult'],
['description' => 'Response parameters changed', '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' => 'Visual Intelligence API',
'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' => 'SERVICE',
'ramConditions' => [],
'ramActions' => [
[
'apiName' => 'CancelWaitingAsyncJob',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi:CancelWaitingAsyncJob',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetAsyncJobResult',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi:GetAsyncJobResult',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'QueryAsyncJobList',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'viapi:QueryAsyncJobList',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'resourceTypes' => [],
],
];
|