Consulte la liste des tâches de modération de contenu.
Description de l'opération
Cette opération interroge les tâches de modération de contenu créées au cours des trois derniers mois.
Limites de QPS
La limite de requêtes par seconde (QPS) pour un utilisateur unique est de 100. Si vous dépassez cette limite, les appels d'API sont limités, ce qui peut affecter votre activité. Appelez cette opération à une fréquence raisonnable. Pour plus d'informations, consultez Limites de QPS.
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
|
mts:QueryMediaCensorJobList |
get |
*All Resource
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| JobIds |
string |
Non |
L'identifiant de la tâche de modération de contenu. Vous pouvez obtenir l'identifiant de la tâche à partir des paramètres de réponse de l'opération SubmitMediaCensorJob. Séparez les identifiants multiples par des virgules (,). |
fa9c34be3bcf42919ac4d1775239****,78dc866518b843259669df58ed30**** |
| NextPageToken |
string |
Non |
Le jeton utilisé pour récupérer la page de résultats suivante. Laissez ce paramètre vide pour la première requête. Le jeton pour la page suivante est renvoyé dans la réponse à la première requête. |
79aff3eee82242e092899db5f669**** |
| MaximumPageSize |
integer |
Non |
Le nombre maximal de résultats à renvoyer par page.
|
20 |
| State |
string |
Non |
L'état des travaux à interroger. Valeurs valides :
|
All |
| StartOfJobCreatedTimeRange |
string |
Non |
Le début de la plage de temps pour interroger les tâches en fonction de leur heure de création.
|
2021-12-22T03:48:05Z |
| EndOfJobCreatedTimeRange |
string |
Non |
La fin de la plage de temps pour interroger les tâches en fonction de leur heure de création.
|
2022-02-14T02:16:07Z |
| PipelineId |
string |
Non |
L'identifiant de la file d'attente MPS. Pour obtenir l'identifiant de la file d'attente MPS, connectez-vous à la console ApsaraVideo Media Processing et choisissez Paramètres globaux > Files d'attente et rappels MPS. |
c5b30b7c0d0e4a0abde1d5f9e751**** |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
Les paramètres de réponse. |
||
| MediaCensorJobList |
object |
||
| MediaCensorJob |
array<object> |
La liste des tâches de modération de contenu. |
|
|
array<object> |
Les détails d'une tâche de modération de contenu. |
||
| CreationTime |
string |
The time when the job was created. |
2021-11-04T07:25:48Z |
| FinishTime |
string |
The time when the job was completed. |
2021-11-04T07:25:48Z |
| Suggestion |
string |
The recommended action. Valid values:
|
pass |
| CoverImageCensorResults |
object |
||
| CoverImageCensorResult |
array<object> |
The list of moderation results for the thumbnails. |
|
|
array<object> |
The details of the moderation result for a thumbnail. |
||
| Object |
string |
The OSS object of the thumbnail. |
test/ai/censor/v2/vme-****.jpg |
| Location |
string |
The OSS location of the thumbnail. |
oss-cn-shanghai |
| Bucket |
string |
The OSS bucket of the thumbnail. |
example-Bucket-**** |
| Results |
object |
||
| Result |
array<object> |
The moderation results of the job. |
|
|
object |
The details of a moderation result. |
||
| Suggestion |
string |
The overall moderation result of the job. Valid values:
Remarque
If the moderation result for any category is review, the overall result is review. If the moderation result for any category is block, the overall result is block. |
pass |
| Label |
string |
The labels of the moderation result. Multiple labels are separated by commas (,).
|
normal |
| Scene |
string |
The moderation scenario.
|
live |
| Rate |
string |
The score. Valid values: 0 to 100. |
100 |
| State |
string |
The state of the job. |
Success |
| TitleCensorResult |
object |
The moderation result for the title. |
|
| Suggestion |
string |
The recommended action. Valid values:
|
block |
| Label |
string |
The labels of the moderation result. Multiple labels are separated by commas (,).
|
meaningless |
| Scene |
string |
The moderation scenario. This is a static field. Value: antispam, which indicates text anti-spam. |
antispam |
| Rate |
string |
The score. |
99.91 |
| Message |
string |
The error message for a failed job. This parameter is not returned if the job is successful. |
The resource operated cannot be found |
| Input |
object |
The job input. |
|
| Object |
string |
The OSS object of the input file. |
test/ai/censor/test-****.mp4 |
| Location |
string |
The OSS location of the input file. |
oss-cn-shanghai |
| Bucket |
string |
The OSS bucket of the input file. |
bucket-test-in-**** |
| BarrageCensorResult |
object |
The moderation result for the live comments. |
|
| Suggestion |
string |
The recommended action. Valid values:
|
pass |
| Label |
string |
The category of the moderation result. Multiple categories are separated by commas (,). Valid values:
|
normal |
| Scene |
string |
The moderation scenario. This is a static field. Value: antispam, which indicates text anti-spam. |
antispam |
| Rate |
string |
The score. |
99.91 |
| DescCensorResult |
object |
The moderation result for the description. |
|
| Suggestion |
string |
The recommended action. Valid values:
|
pass |
| Label |
string |
The category of the moderation result. Multiple categories are separated by commas (,). Valid values:
|
ad |
| Scene |
string |
The moderation scenario. This is a static field. Value: antispam, which indicates text anti-spam. |
antispam |
| Rate |
string |
The score. |
100 |
| VideoCensorConfig |
object |
The video moderation configuration. |
|
| OutputFile |
object |
The storage location of the video snapshot results. |
|
| Object |
string |
The output file of the snapshot (an OSS object). Remarque
In the example, {Count} is a placeholder. The image objects are named in sequence, such as output00001-****.jpg and |
output{Count}.jpg |
| Location |
string |
The OSS location of the OSS bucket where the output snapshots are stored. |
oss-cn-shanghai |
| Bucket |
string |
The OSS bucket where the output snapshots are stored. |
test-bucket-**** |
| VideoCensor |
string |
Indicates whether to moderate the video content. Default value: true. Valid values:
|
true |
| BizType |
string |
The moderation template. Default value: common (the default template). Remarque
If you do not specify this parameter, the default value `common` is used. If you use a custom moderation template by submitting a ticket, the UID of the template is returned. |
common |
| JobId |
string |
The ID of the content moderation job. |
f8f166eea7a44e9bb0a4aecf9543**** |
| UserData |
string |
The custom user data. |
example userdata **** |
| Code |
string |
The error code for a failed job. This parameter is not returned if the job is successful. |
InvalidParameter.ResourceNotFound |
| VensorCensorResult |
object |
The video moderation result. |
|
| VideoTimelines |
object |
||
| VideoTimeline |
array<object> |
The moderation results at specific points in time, sorted in ascending order by time. |
|
|
array<object> |
The details. |
||
| Timestamp |
string |
The position in the video. Format: |
00:02:59.999 |
| Object |
string |
The output file of the snapshot (an OSS object). Remarque
In the example, {Count} is a placeholder. The image objects are named in sequence, such as output00001-****.jpg and |
output{Count}.jpg |
| CensorResults |
object |
||
| CensorResult |
array<object> |
The labels and scores of different types of moderation results. |
|
|
object |
The details. |
||
| Suggestion |
string |
The recommended action. Valid values:
|
block |
| Label |
string |
The categories of the moderation result. Multiple categories are separated by commas (,). Valid values:
|
normal |
| Scene |
string |
The moderation scenario.
|
pron |
| Rate |
string |
The score. |
99.99 |
| NextPageToken |
string |
The token for the next page. |
ea04afcca7cd4e80b9ece8fbb251**** |
| CensorResults |
object |
||
| CensorResult |
array<object> |
A collection of moderation results, which contains the summary information for various scenarios, such as pornography, terrorism, and political content. |
|
|
object |
The details of the moderation result. |
||
| Suggestion |
string |
The recommended action. Valid values:
|
review |
| Label |
string |
The categories of the moderation result. Multiple categories are separated by commas (,). Valid values:
|
meaningless |
| Scene |
string |
The moderation scenario.
|
terrorism |
| Rate |
string |
The score. |
100 |
| AudioCensorResult |
object |
The audio moderation result. |
|
| Suggestion |
string |
The recommended action. Valid values:
|
pass |
| Label |
string |
The category of the detection result. Valid values:
|
normal |
| PipelineId |
string |
The ID of the MPS queue. |
c5b30b7c0d0e4a0abde1d5f9e751**** |
| RequestId |
string |
L'identifiant de la requête. |
D1D5C080-8E2F-5030-8AB4-13092F17631B |
| NextPageToken |
string |
Le jeton pour la page suivante. Il s'agit d'un identifiant universel unique (UUID) de 32 bits. Ce paramètre est renvoyé lorsque les résultats de la requête s'étendent sur plusieurs pages. La valeur de ce paramètre est mise à jour pour chaque requête. |
9b1a42bc6e8d46e6a1383b7e7f01**** |
| NonExistIds |
object |
||
| String |
array |
La liste des identifiants de tâche qui n'existent pas. Ce paramètre n'est pas renvoyé si tous les identifiants de tâche spécifiés existent. |
|
|
string |
L'identifiant de la tâche. |
78dc866518b843259669df58ed30**** |
Exemples
JSON format
{
"MediaCensorJobList": {
"MediaCensorJob": [
{
"CreationTime": "2021-11-04T07:25:48Z",
"FinishTime": "2021-11-04T07:25:48Z",
"Suggestion": "pass",
"CoverImageCensorResults": {
"CoverImageCensorResult": [
{
"Object": "test/ai/censor/v2/vme-****.jpg",
"Location": "oss-cn-shanghai",
"Bucket": "example-Bucket-****",
"Results": {
"Result": [
{
"Suggestion": "pass",
"Label": "normal",
"Scene": "live",
"Rate": "100"
}
]
}
}
]
},
"State": "Success",
"TitleCensorResult": {
"Suggestion": "block",
"Label": "meaningless",
"Scene": "antispam",
"Rate": "99.91"
},
"Message": "The resource operated cannot be found",
"Input": {
"Object": "test/ai/censor/test-****.mp4",
"Location": "oss-cn-shanghai",
"Bucket": "bucket-test-in-****"
},
"BarrageCensorResult": {
"Suggestion": "pass",
"Label": "normal",
"Scene": "antispam",
"Rate": "99.91"
},
"DescCensorResult": {
"Suggestion": "pass",
"Label": "ad",
"Scene": "antispam",
"Rate": "100"
},
"VideoCensorConfig": {
"OutputFile": {
"Object": "output{Count}.jpg",
"Location": "oss-cn-shanghai",
"Bucket": "test-bucket-****"
},
"VideoCensor": "true",
"BizType": "common"
},
"JobId": "f8f166eea7a44e9bb0a4aecf9543****",
"UserData": "example userdata ****",
"Code": "InvalidParameter.ResourceNotFound",
"VensorCensorResult": {
"VideoTimelines": {
"VideoTimeline": [
{
"Timestamp": "00:02:59.999",
"Object": "output{Count}.jpg",
"CensorResults": {
"CensorResult": [
{
"Suggestion": "block",
"Label": "normal",
"Scene": "pron",
"Rate": "99.99"
}
]
}
}
]
},
"NextPageToken": "ea04afcca7cd4e80b9ece8fbb251****",
"CensorResults": {
"CensorResult": [
{
"Suggestion": "review",
"Label": "meaningless",
"Scene": "terrorism",
"Rate": "100"
}
]
}
},
"AudioCensorResult": {
"Suggestion": "pass",
"Label": "normal"
},
"PipelineId": "c5b30b7c0d0e4a0abde1d5f9e751****"
}
]
},
"RequestId": "D1D5C080-8E2F-5030-8AB4-13092F17631B",
"NextPageToken": "9b1a42bc6e8d46e6a1383b7e7f01****",
"NonExistIds": {
"String": [
"78dc866518b843259669df58ed30****"
]
}
}
Codes d'erreur
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.