Queries AI templates.
Description
You can call this operation to query AI templates of a specified type.
QPS limit
You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business can be affected. We recommend that you take note of the limit when you call this operation. For more information, see QPS limits on API operations in ApsaraVideo VOD.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListAITemplate |
The operation that you want to perform. Set the value to ListAITemplate. |
TemplateType | String | Yes | AIMediaAudit |
The type of the AI template. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 75B7BC67-FB8C-4653-4788-F4B01ED2**** |
The ID of the request. |
TemplateInfoList | Array of TemplateInfoList |
The information about the AI templates. |
|
CreationTime | String | 2020-07-08T06:50:45Z |
The time when the AI template was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
IsDefault | String | NoDefault |
Indicates whether the template is the default AI template. Valid values:
|
TemplateType | String | AIMediaAudit |
The type of the AI template. Valid values:
|
TemplateConfig | String | {"AuditRange":["text-title","video"],"AuditContent":["screen"],"AuditItem":["terrorism","porn"],"AuditAutoBlock":"yes"} |
The detailed configurations of the AI template. The value is a JSON string. |
TemplateName | String | DemoAITemplate |
The name of the AI template. |
Source | String | Custom |
The source of the AI template. Valid values:
|
TemplateId | String | 1706a0063dd733f6a823ef32e0a5**** |
The ID of the AI template. |
ModifyTime | String | 2020-07-08T06:58:45Z |
The time when the AI template was modified. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
Examples
Sample requests
http(s)://vod.cn-shanghai.aliyuncs.com/?Action=ListAITemplate
&TemplateType=AIMediaAudit
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ListAITemplateResponse>
<RequestId>75B7BC67-FB8C-4653-4788-F4B01ED2****</RequestId>
<TemplateInfoList>
<CreationTime>2020-07-08T06:50:45Z</CreationTime>
<IsDefault>NoDefault</IsDefault>
<TemplateType>AIMediaAudit</TemplateType>
<TemplateConfig>{"AuditRange":["text-title","video"],"AuditContent":["screen"],"AuditItem":["terrorism","porn"],"AuditAutoBlock":"yes"}</TemplateConfig>
<TemplateName>DemoAITemplate</TemplateName>
<Source>Custom</Source>
<TemplateId>1706a0063dd733f6a823ef32e0a5****</TemplateId>
<ModifyTime>2020-07-08T06:58:45Z</ModifyTime>
</TemplateInfoList>
</ListAITemplateResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "75B7BC67-FB8C-4653-4788-F4B01ED2****",
"TemplateInfoList" : [ {
"CreationTime" : "2020-07-08T06:50:45Z",
"IsDefault" : "NoDefault",
"TemplateType" : "AIMediaAudit",
"TemplateConfig" : "{\"AuditRange\":[\"text-title\",\"video\"],\"AuditContent\":[\"screen\"],\"AuditItem\":[\"terrorism\",\"porn\"],\"AuditAutoBlock\":\"yes\"}",
"TemplateName" : "DemoAITemplate",
"Source" : "Custom",
"TemplateId" : "1706a0063dd733f6a823ef32e0a5****",
"ModifyTime" : "2020-07-08T06:58:45Z"
} ]
}
Error codes
For a list of error codes, visit the API Error Center.