Mengkueri daftar pekerjaan moderasi konten.
Deskripsi operasi
This operation queries content moderation jobs that were created in the last three months.
QPS limits
The queries per second (QPS) limit for a single user is 100. If you exceed the limit, API calls are throttled, which may affect your business. Call this operation at a reasonable frequency. For more information, see QPS limits.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mts:QueryMediaCensorJobList |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| JobIds |
string |
No |
ID pekerjaan moderasi konten. Anda dapat memperoleh ID pekerjaan dari parameter tanggapan operasi SubmitMediaCensorJob. Pisahkan beberapa ID dengan koma (,). |
fa9c34be3bcf42919ac4d1775239****,78dc866518b843259669df58ed30**** |
| NextPageToken |
string |
No |
Token yang digunakan untuk mengambil halaman hasil berikutnya. Kosongkan parameter ini untuk permintaan pertama. Token untuk halaman berikutnya dikembalikan dalam tanggapan permintaan pertama. |
79aff3eee82242e092899db5f669**** |
| MaximumPageSize |
integer |
No |
Jumlah maksimum hasil yang dikembalikan pada setiap halaman.
|
20 |
| State |
string |
No |
Status pekerjaan yang akan dikueri. Nilai valid:
|
All |
| StartOfJobCreatedTimeRange |
string |
No |
Awal rentang pengatur waktu untuk mengkueri pekerjaan berdasarkan pengatur waktu pembuatannya.
|
2021-12-22T03:48:05Z |
| EndOfJobCreatedTimeRange |
string |
No |
Akhir rentang pengatur waktu untuk mengkueri pekerjaan berdasarkan pengatur waktu pembuatannya.
|
2022-02-14T02:16:07Z |
| PipelineId |
string |
No |
ID Antrian MPS. Untuk memperoleh ID Antrian MPS, masuk ke Konsol ApsaraVideo Media Processing dan pilih Pengaturan Global > Antrian MPS dan Callback. |
c5b30b7c0d0e4a0abde1d5f9e751**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| MediaCensorJobList |
object |
||
| MediaCensorJob |
array<object> |
The list of content moderation jobs. |
|
|
array<object> |
The details of a content moderation job. |
||
| 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 subsequent operation. Valid values:
|
pass |
| CoverImageCensorResults |
object |
||
| CoverImageCensorResult |
array<object> |
The moderation results of thumbnails. |
|
|
array<object> |
The details of the moderation result of a thumbnail. |
||
| Object |
string |
The Object Storage Service (OSS) object that is used as the video thumbnail. |
test/ai/censor/v2/vme-****.jpg |
| Location |
string |
The OSS region in which the video thumbnail resides. |
oss-cn-shanghai |
| Bucket |
string |
The OSS bucket that stores the video thumbnail. |
example-Bucket-**** |
| Results |
object |
||
| Result |
array<object> |
The moderation results of the content moderation jobs. |
|
|
object |
The details of the moderation result of a content moderation job |
||
| Suggestion |
string |
The overall result of the job. Valid values:
Catatan
If the moderation result of any type of the moderated content is review, the overall result is review. If the moderation result of any type of the moderated content is block, the overall result is block. |
pass |
| Label |
string |
The labels of the moderation result. Separate multiple labels with commas (,).
|
normal |
| Scene |
string |
The moderation scenario. Valid values:
|
live |
| Rate |
string |
The score. Valid values: 0 to 100. |
100 |
| State |
string |
The status of the job. |
Success |
| TitleCensorResult |
object |
The moderation result of the title. |
|
| Suggestion |
string |
The recommended subsequent operation. Valid values:
|
block |
| Label |
string |
The labels of the moderation result. Separate multiple labels with commas (,).
|
meaningless |
| Scene |
string |
The moderation scenario. The value is antispam. |
antispam |
| Rate |
string |
The score. |
99.91 |
| Message |
string |
The error message returned if the job fails. This parameter is not returned if the job is successful. |
The resource operated cannot be found |
| Input |
object |
The information about the job input. |
|
| Object |
string |
The name of the OSS object that is used as the input file. |
test/ai/censor/test-****.mp4 |
| Location |
string |
The OSS region in which the input file resides. |
oss-cn-shanghai |
| Bucket |
string |
The name of the OSS bucket in which the input file is stored. |
bucket-test-in-**** |
| BarrageCensorResult |
object |
The moderation result of live comments. |
|
| Suggestion |
string |
The recommended subsequent operation. Valid values:
|
pass |
| Label |
string |
The labels of the moderation result. Separate multiple labels with commas (,). Valid values:
|
normal |
| Scene |
string |
The moderation scenario. The value is antispam. |
antispam |
| Rate |
string |
The score. |
99.91 |
| DescCensorResult |
object |
The moderation result of the description. |
|
| Suggestion |
string |
The recommended subsequent operation. Valid values:
|
pass |
| Label |
string |
The labels of the moderation result. Separate multiple labels with commas (,). Valid values:
|
ad |
| Scene |
string |
The moderation scenario. The value is antispam. |
antispam |
| Rate |
string |
The score. |
100 |
| VideoCensorConfig |
object |
The video moderation configurations. |
|
| OutputFile |
object |
The information about output snapshots. |
|
| Object |
string |
The one or more OSS objects that are generated as the output snapshots. Catatan
In the example, {Count} is a placeholder. The OSS objects that are generated as output snapshots are named |
output{Count}.jpg |
| Location |
string |
The OSS region in which the OSS bucket for storing the output snapshot resides. |
oss-cn-shanghai |
| Bucket |
string |
The OSS bucket that stores the output snapshot. |
test-bucket-**** |
| VideoCensor |
string |
Indicates whether the video content needs to be moderated. Default value: true. Valid values:
|
true |
| BizType |
string |
The moderation template. Default value: common. The default value indicates that the default template is used. Catatan
If the moderation template is not specified, the default value common is returned. If a custom moderation template that is created by submitting a ticket is specified, a user ID is returned. |
common |
| JobId |
string |
The ID of the content moderation job. |
f8f166eea7a44e9bb0a4aecf9543**** |
| UserData |
string |
The custom data. |
example userdata **** |
| Code |
string |
The error code returned if the job fails. This parameter is not returned if the job is successful. |
InvalidParameter.ResourceNotFound |
| VensorCensorResult |
object |
The moderation results of the video. |
|
| VideoTimelines |
object |
||
| VideoTimeline |
array<object> |
The moderation results that are sorted in ascending order by time. |
|
|
array<object> |
The details of the moderation results. |
||
| Timestamp |
string |
The position in the video. Format: |
00:02:59.999 |
| Object |
string |
The OSS object that is generated as the output snapshot. Catatan
In the example, {Count} is a placeholder. The OSS objects that are generated as output snapshots are named |
output{Count}.jpg |
| CensorResults |
object |
||
| CensorResult |
array<object> |
The moderation results that include information such as labels and scores. |
|
|
object |
The details of the moderation results. |
||
| Suggestion |
string |
The recommended subsequent operation. Valid values:
|
block |
| Label |
string |
The labels of the moderation result. Separate multiple labels with commas (,). Valid values:
|
normal |
| Scene |
string |
The moderation scenario. Valid values:
|
pron |
| Rate |
string |
The score. |
99.99 |
| NextPageToken |
string |
The pagination token that is used in the next request to retrieve a new page of results. |
ea04afcca7cd4e80b9ece8fbb251**** |
| CensorResults |
object |
||
| CensorResult |
array<object> |
A collection of the moderation results. The information includes the summary about various scenarios such as pornographic content and terrorist content. |
|
|
object |
The details of the moderation results. |
||
| Suggestion |
string |
The recommended subsequent operation. Valid values:
|
review |
| Label |
string |
The labels of the moderation result. Separate multiple labels with commas (,).
|
meaningless |
| Scene |
string |
The moderation scenario. Valid values:
|
terrorism |
| Rate |
string |
The score. |
100 |
| AudioCensorResult |
object |
||
| Suggestion |
string |
pass |
|
| Label |
string |
normal |
|
| PipelineId |
string |
The ID of the MPS queue that is used to run the job. |
c5b30b7c0d0e4a0abde1d5f9e751**** |
| RequestId |
string |
The request ID. |
D1D5C080-8E2F-5030-8AB4-13092F17631B |
| NextPageToken |
string |
The token for the next page. This is a 32-bit universally unique identifier (UUID). This parameter is returned when the query results span multiple pages. The value of this parameter is updated for each query. |
9b1a42bc6e8d46e6a1383b7e7f01**** |
| NonExistIds |
object |
||
| String |
array |
The list of job IDs that do not exist. This parameter is not returned if all specified job IDs exist. |
|
|
string |
The job ID. |
78dc866518b843259669df58ed30**** |
Contoh
Respons sukses
JSONformat
{
"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****"
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.