This topic provides examples of asynchronous messages for asynchronous requests.
Metadata management
Metadata indexing
Sample MNS messages of IndexFileMeta
Sample success response
{ "ProjectName": "immtest", "DatasetName": "dataset1", "RequestId": "C96FE60A-C007-02BF-AC56-****", "StartTime": "2023-01-04T13:17:00.270148129+08:00", "EndTime": "2023-01-04T13:17:00.904455255+08:00", "Success": true, "Message": "", "Files": [ { "URI": "oss://test-bucket/test-object", // The URI of the object whose metadata was indexed. "Error": "" // An empty string indicates that request was successful. } ] }
Sample error response
{ "ProjectName": "immtest", "DatasetName": "dataset1", "RequestId": "0FE445BD-F76C-031C-B9B1-****", "StartTime": "2023-01-04T13:20:23.938065853+08:00", "EndTime": "2023-01-04T13:20:24.092661447+08:00", "Success": true, "Message": "", "Files": [ { "URI": "oss://abcxxx", // The URI of the object whose metadata you want to index. "Error": "[InvalidArgument] File does not exist." // A non-empty string indicates that the request failed. } ] }
Sample MNS messages of BatchIndexFileMeta
{
"ProjectName": "immtest",
"DatasetName": "dataset1",
"RequestId": "337DDD2C-3F74-0CD7-9BDA-C439011406FC",
"StartTime": "2023-01-04T13:04:44.909424326+08:00",
"EndTime": "2023-01-04T13:04:45.669649372+08:00",
"Success": true,
"Message": "",
"Files": [
{
"URI": "oss://test-bucket/test-object-1", // The URI of the object whose metadata was indexed.
"Error": "" // An empty string indicates that request was successful.
},
{
"URI": "oss://test-bucket/test-object-2", // The URI of the object whose metadata you want to index.
"Error": "[InvalidArgument] File does not exist." // A non-empty string indicates that the request failed.
}
]
}
Sample MNS messages of CreateFacesSearchingTask
{
"ProjectName": "immtest",
"DatasetName": "dataset1",
"RequestId": "FB57E2F6-5CB5-0EEB-B80A-****",
"StartTime": "2023-01-04T05:08:28.582Z",
"EndTime": "2023-01-04T05:08:28.785Z",
"UserData": "test",
"TaskType": "FacesSearching",
"TaskId": "CreateFacesSearchingTask-72515b1d-448a-4320-9cfd-****",
"Status": "Succeeded",
"Code": "", // An empty value indicates that the request was successful.
"Message": "Success",
"SimilarFaces": [
{
"URI": "oss://test-bucket/test-object.jpg",
"Boundary": {
"Width": 109,
"Height": 150,
"Left": 69,
"Top": 49
},
// A list of similar faces.
"SimilarFaces": [
{
"URI": "oss://test-bucket/test-object-1.jpg",
"FigureId": "4cacbb71-52fd-4d3f-9d14-0840fecee0bf",
"Similarity": 0.73321015
},
{
"URI": "oss://test-bucket/test-object-2.jpg",
"FigureId": "7a4cd08d-bcd0-4bc4-93f4-1291075819cf",
"Similarity": 0.77035695
},
{
"URI": "oss://test-bucket/test-object-3.jpg",
"FigureId": "da920124-410a-4493-9fd3-1a3b366dca86",
"Similarity": 0.9836307
}
]
}
]
}
Face clustering
Sample MNS messages of CreateFigureClusteringTask
{
"ProjectName": "immtest",
"DatasetName": "dataset1",
"RequestId": "8541C62B-F379-0ADE-9A21-****",
"StartTime": "2023-01-04T05:11:06.365Z",
"EndTime": "2023-01-04T05:11:06.594Z",
"UserData": "abcdef",
"TaskType": "FaceClustering",
"TaskId": "CreateFigureClusteringTask-4783e3c5-4099-464a-9530-****",
"Status": "Succeeded",
"Code": "", // An empty value indicates that the request was successful.
"Message": "Success",
"NewClusterCount": 1, // The number of new clusters.
"UpdatedClusterCount": 0, // The number of updated clusters.
"UpdatedFigureCount": 5 // The number of new faces.
}
Sample MNS messages of CreateFigureClustersMergingTask
Sample success response
{ "ProjectName": "immtest", "DatasetName": "dataset1", "RequestId": "6B95FE0A-614E-01BA-A1CB-****", "StartTime": "2023-01-04T05:04:50.25Z", "EndTime": "2023-01-04T05:04:50.72Z", "UserData": "", "TaskType": "FaceClusterMerging", "TaskId": "CreateFigureClustersMergingTask-4c9d5919-97e8-4145-96e9-****", "Status": "Succeeded", "Code": "", // An empty value indicates that the request was successful. "Message": "Success", "From": "Cluster-069b470c-b004-449b-b215-0a5e227ba727", "To": "Cluster-ee56c6f1-c9db-46e4-af5a-9c8bcc43444d", "UpdatedFigureCount": 4 // The number of new faces. }
Sample error response
{ "ProjectName": "immtest", "DatasetName": "dataset1", "RequestId": "2B6A466F-4AA8-087F-9E7A-****", "StartTime": "2023-01-04T05:21:48.455Z", "EndTime": "2023-01-04T05:21:48.742Z", "UserData": "", "TaskType": "FaceClusterMerging", "TaskId": "CreateFigureClustersMergingTask-c66050ea-3850-40b0-8bdd-****", "Status": "Failed", "Code": "InvalidArgument", // A non-empty code indicates that the request failed. "Message": "The input parameter From is not valid", // The error message. "From": "abcdefaaaa", "To": "Cluster-dcd021b6-8870-4135-8414-d9a60d52f5ca", "UpdatedFigureCount": 0 }
Spatiotemporal clustering
Sample MNS messages of CreateLocationDateClusteringTask
{
"ProjectName": "immtest",
"DatasetName": "dataset1",
"RequestId": "7F069F5C-E226-05B3-8690-****",
"StartTime": "2023-01-04T05:09:36.478Z",
"EndTime": "2023-01-04T05:09:36.741Z",
"UserData": "test",
"TaskType": "LocationDateClustering",
"TaskId": "LocationDateClustering-585f2e38-fe9b-4282-be88-****",
"Status": "Succeeded",
"Code": "", // An empty value indicates that the request was successful.
"Message": ""
}
Story
Sample MNS messages of CreateStory
Sample success response
{ "ProjectName": "immtest", "DatasetName": "dataset1", "RequestId": "6C466710-0AB1-09FB-9CC8-****", "StartTime": "2023-01-04T05:05:54.679Z", "EndTime": "2023-01-04T05:05:55.131Z", "UserData": "", "TaskType": "StoryCreation", "TaskId": "CreateStory-03f13dc9-08a9-4eb9-a4e2-****", "Status": "Succeeded", "Code": "", // An empty value indicates that the request was successful. "Message": "", "ObjectId": "id1" }
Sample error response
{ "ProjectName": "immtest", "DatasetName": "dataset1", "RequestId": "7F069F5C-E226-05B3-8690-****", "StartTime": "2023-01-04T05:18:41.565Z", "EndTime": "2023-01-04T05:18:41.708Z", "UserData": "", "TaskType": "StoryCreation", "TaskId": "CreateStory-05fb77df-740d-4d9b-9943-****", "Status": "Failed", "Code": "InvalidParameter", // A non-empty value indicates that the request failed. "Message": "The specified parameter StorySubType is not valid.", // The error message. "ObjectId": "id1" }
Image processing
Sample MNS messages of CreateImageToPDFTask
Sample success response
{ "ProjectName": "immtest", "DatasetName": "", "RequestId": "A9F681DA-9170-01D5-A090-****", "StartTime": "2023-01-04T05:21:42.1Z", "EndTime": "2023-01-04T05:21:42.37Z", "UserData": "test", "TaskType": "ImageToPDF", "TaskId": "ImageToPDF-036d9b7a-1b9f-4f50-a19d-****", "Status": "Succeeded", "Code": "", // An empty value indicates that the request was successful. "Message": "" }
Sample error response
{ "ProjectName": "immtest", "DatasetName": "", "RequestId": "CAA2C757-8027-07A0-A4A0-6F1A0A8F5549", "StartTime": "2023-01-04T05:11:32.492Z", "EndTime": "2023-01-04T05:11:32.745Z", "UserData": "test", "TaskType": "ImageToPDF", "TaskId": "ImageToPDF-fc96da75-972d-4ec0-bf1e-2457edd09ed4", "Status": "Failed", "Code": "InvalidArgument", // A non-empty code indicates that the request failed. "Message": "Read image failed" // The error message. }
Sample MNS messages of CreateImageSplicingTask
Sample success response
{ "ProjectName": "immtest", "DatasetName": "", "RequestId": "1E4E2AB8-F433-0072-B88D-****", "StartTime": "2023-01-04T05:12:54.19Z", "EndTime": "2023-01-04T05:12:54.415Z", "UserData": "test", "TaskType": "ImageSplicing", "TaskId": "ImageSplicing-1f2593b9-e481-4ed9-837a-****", "Status": "Succeeded", "Code": "", // An empty value indicates that the request was successful. "Message": "" }
Sample error response
{ "ProjectName": "immtest", "DatasetName": "", "RequestId": "583A888E-A217-01FB-BD5B-****", "StartTime": "2023-01-04T05:13:07.582Z", "EndTime": "2023-01-04T05:13:07.728Z", "UserData": "test", "TaskType": "ImageSplicing", "TaskId": "ImageSplicing-41a687a6-c2fe-479f-9d96-****", "Status": "Failed", "Code": "InvalidArgument", // A non-empty code indicates that the request failed. "Message": "Decode image failed" // The error message. }
Sample MNS messages of CreateDecodeBlindWatermarkTask
Sample success response
{ "ProjectName": "temp-proj-7b662f1ce8ae40de96dbdb2a88884395", "DatasetName": "", "RequestId": "A2F2E71E-FE90-007D-A260-0B5A57A2257E", "StartTime": "2023-03-28T05:52:40.551Z", "EndTime": "2023-03-28T05:52:41.533Z", "UserData": "", "TaskType": "DecodeBlindWatermark", "TaskId": "DecodeBlindWatermark-9eb08870-d7cb-44d4-a7b4-3720bcc7cff3", "Status": "Succeeded", "Code": "", "Message": "", "EventSourceId": "", "Content": "All rights reserved by Alibaba Cloud" }
Sample error response
{ "ProjectName": "immtest", "DatasetName": "", "RequestId": "FC91EF4A-4736-052D-B249-FCE1BDD4296B", "StartTime": "2023-01-04T05:13:07.582Z", "EndTime": "2023-01-04T05:13:07.728Z", "UserData": "test", "TaskType": "DecodeBlindWatermark", "TaskId": "DecodeBlindWatermark-687a641a-c2fe-479f-9d96-****", "Status": "Failed", "Code": "InvalidArgument.SourceURI", // A non-empty value indicates that the request failed. "Message": "The input argument SourceURI not valid." // The error message. }
Media processing
Sample MNS messages of CreateMediaConvertTask
Sample success response
{ "ProjectName": "immtest", "DatasetName": "", "RequestId": "F68472DA-EF7B-0F71-9347-****", "StartTime": "2023-01-04T05:11:35.084Z", "EndTime": "2023-01-04T05:11:59.202Z", "UserData": "test", "TaskType": "MediaConvert", "TaskId": "MediaConvert-4d51241b-04d4-4343-aa25-****", "Status": "Succeeded", "Code": "", // An empty value indicates that the request was successful. "Message": "", // A list of targets. "Targets": [ { "Code": "", "Message": "", "URI": "oss://test-bucket/test-object.mp4", "Subtitle": { "Extract": { "URI": "oss://test-bucket/test-object/DirtBaseExtractSubtitle" } }, "Image": { "Sprites": [ { "URI": "oss://test-bucket/test-object/DirtBaseImage_sprite" } ], "Snapshots": [ { "URI": "oss://test-bucket/test-object/DirtBaseImage_snapshot" } ] } } ] }
Sample error response
{ "ProjectName": "immtest", "DatasetName": "", "RequestId": "19C14AFF-816C-082D-A6F7-****", "StartTime": "2023-01-04T05:12:07.321Z", "EndTime": "2023-01-04T05:12:07.555Z", "UserData": "test", "TaskType": "MediaConvert", "TaskId": "MediaConvert-703f51ca-ac8d-4623-a858-****", "Status": "Failed", "Code": "InvalidArgument", // A non-empty code indicates that the request failed. "Message": "Invalid data found when processing input", // The error message. "Targets": [] }
Sample MNS messages of CreateVideoLabelClassificationTask
Sample success response
{ "ProjectName": "immtest", "DatasetName": "", "RequestId": "1ACEA79F-5A40-02F1-B398-****", "StartTime": "2023-01-04T05:12:31.18Z", "EndTime": "2023-01-04T05:12:33.876Z", "UserData": "test", "TaskType": "VideoLabelClassification", "TaskId": "VideoLabelClassification-99950265-1b6d-407c-b2f3-****", "Status": "Succeeded", "Code": "", // An empty value indicates that the request was successful. "Message": "", // A list of labels. "Labels": [ { "Language": "zh-Hans", "LabelName": "Color", "LabelConfidence": 0.999, "CentricScore": 0.77, "LabelLevel": 2, "ParentLabelName": "Others" }, { "Language": "zh-Hans", "LabelName": "Others", "LabelConfidence": 0.999, "CentricScore": 0.77, "LabelLevel": 1, "ParentLabelName": "" } ] }
Sample error response
{ "ProjectName": "immtest", "DatasetName": "", "RequestId": "4B2915C9-076B-036A-984D-****", "StartTime": "2023-01-04T05:12:37.361Z", "EndTime": "2023-01-04T05:12:37.872Z", "UserData": "test", "TaskType": "VideoLabelClassification", "TaskId": "VideoLabelClassification-0c420dd8-1029-48c4-a9ad-****", "Status": "Failed", "Code": "InvalidSourceURL", // A non-empty value indicates that the request failed. "Message": "Unable to read the file", // The error message. "Labels": null }
Document processing
Sample MNS messages of CreateOfficeConversionTask
Sample success response
{ "ProjectName": "immtest", "DatasetName": "", "RequestId": "A1DA7436-768B-061D-833C-****", "StartTime": "2023-01-04T05:03:40.928Z", "EndTime": "2023-01-04T05:03:41.444Z", "UserData": "test", "TaskType": "OfficeConversion", "TaskId": "OfficeConversion-ed315cab-7736-4ad8-8c56-****", "Status": "Succeeded", "Code": "", // An empty value indicates that the request was successful. "Message": "" }
Sample error response
{ "ProjectName": "immtest", "DatasetName": "", "RequestId": "915CA9CD-5610-03FC-8500-****", "StartTime": "2023-01-04T05:04:13.063Z", "EndTime": "2023-01-04T05:04:13.442Z", "UserData": "test", "TaskType": "OfficeConversion", "TaskId": "OfficeConversion-2b646a78-d6cf-470b-9f26-****", "Status": "Failed", "Code": "Convert.Fail", // A non-empty value indicates that the request failed. "Message": "Internal error, exit status 1" // The error message. }
File processing
Compression and decompression
Sample MNS messages of CreateFileCompressionTask
{
"ProjectName": "immtest",
"DatasetName": "",
"RequestId": "4DE5A2ED-221A-0FE2-8C03-****",
"StartTime": "2023-01-04T05:04:51.41Z",
"EndTime": "2023-01-04T05:04:54.832Z",
"UserData": "test",
"TaskType": "FileCompression",
"TaskId": "FileCompression-d343b98d-924d-4bf7-bd4b-****",
"Status": "Succeeded",
"Code": "", // An empty value indicates that the request was successful.
"Message": ""
}
Sample MNS messages of CreateFileUncompressionTask
{
"ProjectName": "immtest",
"DatasetName": "",
"RequestId": "D9CDFE0C-2BBB-0C3E-BB26-****",
"StartTime": "2023-01-04T05:06:07.71Z",
"EndTime": "2023-01-04T05:06:08.3Z",
"UserData": "test",
"TaskType": "FileUncompression",
"TaskId": "FileUncompression-7f1efbcd-9897-40c5-9683-****",
"Status": "Succeeded",
"Code": "", // An empty value indicates that the request was successful.
"Message": ""
}
Sample MNS messages of CreateArchiveFileInspectionTask
{
"ProjectName": "immtest",
"DatasetName": "",
"RequestId": "7F9642D6-BC23-05E6-A9A9-****",
"StartTime": "2023-01-04T05:03:10.274Z",
"EndTime": "2023-01-04T05:03:10.63Z",
"UserData": "test",
"TaskType": "ArchiveFileInspection",
"TaskId": "ArchiveFileInspection-efb644ad-8e03-4819-ad1f-****",
"Status": "Succeeded",
"Code": "200", // Code 200 indicates that the request was successful.
"Message": "List Success"
}
Point cloud compression
Sample MNS messages of CreateCompressPointCloudTask
Sample success response
{ "ProjectName": "immtest", "DatasetName": "", "RequestId": "BFAF835C-10B0-0B64-9670-****", "StartTime": "2023-01-04T05:17:32.211Z", "EndTime": "2023-01-04T05:17:32.395Z", "UserData": "test", "TaskType": "PointCloudCompress", "TaskId": "PointCloudCompress-287b9635-97b3-4038-a31d-****", "Status": "Succeeded", "Code": "", // An empty value indicates that the request was successful. "Message": "" }
Sample error response
{ "ProjectName": "immtest", "DatasetName": "", "RequestId": "B39E157F-517B-069D-905D-****", "StartTime": "2023-01-04T05:17:10.399Z", "EndTime": "2023-01-04T05:17:10.631Z", "UserData": "test", "TaskType": "PointCloudCompress", "TaskId": "PointCloudCompress-97dcbbe1-079a-4efe-8e8d-****", "Status": "Failed", "Code": "NotFound.TargetURIPrefix", // A non-empty value indicates that the request failed. "Message": "not found oss://test-bucket/test-object" // The error message. }
Content moderation
Sample MNS messages of CreateImageModerationTask
Sample approval message
{ "ProjectName": "immtest", "DatasetName": "", "RequestId": "EFB1924D-65E8-0C99-90F9-****", "StartTime": "2023-01-04T05:17:51.791Z", "EndTime": "2023-01-04T05:17:52.257Z", "UserData": "test", "TaskType": "ImageModeration", "TaskId": "ImageModeration-dc2179f5-4c68-417e-8fa6-****", "Status": "Succeeded", "Code": "", // An empty value indicates that the request was successful. "Message": "", "URI": "oss://test-bucket/test-object", "Suggestion": "pass", // The moderation result is approval. "Categories": [] }
Sample rejection message
{ "ProjectName": "immtest", "DatasetName": "", "RequestId": "308F6D1A-4B38-0398-B652-****", "StartTime": "2023-01-04T05:12:29.362Z", "EndTime": "2023-01-04T05:12:29.915Z", "UserData": "test", "TaskType": "ImageModeration", "TaskId": "ImageModeration-49bc8b0f-6c83-4432-8914-****", "Status": "Succeeded", "Code": "", // An empty value indicates that the request was successful. "Message": "", "URI": "oss://test-bucket/test-object", "Suggestion": "block", // The moderation result is rejection. "Categories": [ // Unlawful content is detected. "porn" ] }
Sample message of manual moderation
{ "ProjectName": "immtest", "DatasetName": "", "RequestId": "6E0C4FD3-5AD1-0885-B092-****", "StartTime": "2023-01-04T05:16:50.44Z", "EndTime": "2023-01-04T05:16:50.956Z", "UserData": "test", "TaskType": "ImageModeration", "TaskId": "ImageModeration-9eba1545-7f06-4bcb-9704-****", "Status": "Running", "Code": "", // An empty value indicates that the request was successful. "Message": "", "URI": "oss://test-bucket/test-object", "Suggestion": "review", // Manual moderation is required. "Categories": [] }
Sample MNS messages of CreateVideoModerationTask
Sample approval message
{ "ProjectName": "immtest", "DatasetName": "", "RequestId": "04F1E243-D7EE-0A33-A27A-****", "StartTime": "2023-01-04T05:08:15.728Z", "EndTime": "2023-01-04T05:08:18.361Z", "UserData": "test", "TaskType": "VideoModeration", "TaskId": "VideoModeration-bb59bc42-ac9c-4e6e-ac53-****", "Status": "Succeeded", "Code": "", // An empty value indicates that the request was successful. "Message": "", "URI": "oss://test-bucket/test-object", "Suggestion": "pass", // The moderation result is approval. "Categories": [] }
Sample rejection message
{ "ProjectName": "immtest", "DatasetName": "", "RequestId": "58A69714-106B-07FD-9596-****", "StartTime": "2023-01-04T05:20:47.751Z", "EndTime": "2023-01-04T05:21:01.687Z", "UserData": "test", "TaskType": "VideoModeration", "TaskId": "VideoModeration-2764b3bd-1484-4415-8a48-****", "Status": "Succeeded", "Code": "", // An empty value indicates that the request was successful. "Message": "", "URI": "oss://test-bucket/test-object", "Suggestion": "block", // The moderation result is rejection. "Categories": [ // Unlawful content is detected. "porn" ] }
Sample message of manual moderation
{ "ProjectName": "immtest", "DatasetName": "", "RequestId": "CDC83591-342F-01B9-9A3B-****", "StartTime": "2023-01-04T05:06:42.873Z", "EndTime": "2023-01-04T05:06:47.809Z", "UserData": "test", "TaskType": "VideoModeration", "TaskId": "VideoModeration-3c706722-07fb-47a5-a902-****", "Status": "Running", "Code": "", // An empty value indicates that the request was successful. "Message": "", "URI": "oss://test-bucket/test-object", "Suggestion": "review", // Manual moderation is required. "Categories": [] }