Belirtilen bir asenkron görev hakkındaki bilgileri sorgular. Intelligent Media Management (IMM), figür kümeleme görevleri oluşturmak için CreateFigureClusteringTask ve dosya sıkıştırma görevleri oluşturmak için CreateFileCompressionTask gibi her biri kendi görev oluşturma işlemine sahip olan çeşitli asenkron veri işleme yeteneklerini destekler. Bu işlem, görev kimliği ve türüne göre bir asenkron görevin ayrıntılarını sorgulamanıza olanak tanıyan genel amaçlı bir işlemdir.
Operation description
Bu işlemi kullanmadan önce, Intelligent Media Management faturalandırmasına ve fiyatlandırmasına aşina olduğunuzdan emin olun.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
imm:GetTask |
get |
*Project
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
Yes |
Proje adı. Proje adını alma yöntemi hakkında bilgi için Proje oluşturma konusuna bakın. |
immtest |
| TaskType |
string |
Yes |
Görevin türü. Geçerli değerler için Görev türü listesi konusuna bakın. |
FileCompression |
| TaskId |
string |
Yes |
Sorgulamak istediğiniz görevin kimliği. Bu değer, görevi oluşturduğunuzda döndürülür. |
FileCompression-2f157087-91df-4fda-8c3e-232407ec***** |
| RequestDefinition |
boolean |
No |
Görevi oluşturmak için kullanılan orijinal istek parametrelerinin döndürülüp döndürülmeyeceğini belirtir. Geçerli değerler:
Bu parametre yalnızca aşağıdaki görev türleri için geçerlidir:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Belirtilen görevin ayrıntıları. |
||
| RequestId |
string |
İstek kimliği. |
2C5C1E0F-D8B8-4DA0-8127-EC32C771**** |
| ProjectName |
string |
Proje adı. |
test-project |
| EventId |
string |
Olay kimliği. |
2F6-1Bz99Xi93EnRpNEyLudILJm**** |
| Status |
string |
Görevin çalışma durumu. Geçerli değerler:
|
Running |
| Code |
string |
Görevin hata kodu. |
ResourceNotFound |
| Message |
string |
Görevin hata mesajı. |
The specified resource project is not found. |
| StartTime |
string |
Görevin başladığı zaman. Değer, milisaniye hassasiyetine sahip ISO 8601 formatında bir UTC zaman damgasıdır. |
2021-12-24T03:01:41.662060377Z |
| EndTime |
string |
Görevin sona erdiği zaman. Değer, milisaniye hassasiyetine sahip ISO 8601 formatında bir UTC zaman damgasıdır. |
2021-12-24T03:01:49.480109219Z |
| UserData |
string |
Kullanıcı tarafından belirtilen özel bilgiler. |
{"ID": "user1","Name": "test-user1","Avatar": "http://example.com?id=user1"} |
| TaskType |
string |
Görevin türü. Geçerli değerler için Görev türü listesi konusuna bakın. |
FileCompression |
| TaskId |
string |
Görev kimliği. |
c2b277b9-0d30-4882-ad6d-ad661382**** |
| Tags |
object |
Görev etiketleri. Bunlar, kullanıcının görevi oluştururken ilettiği etiketlerdir. |
{"test": "val1"} |
| TaskRequestDefinition |
string |
Görevi oluşturmak için kullanılan orijinal istek parametreleri. |
{ "ProjectName":"test-project", "CompressedFormat":"zip", "TargetURI":"oss://test-bucket/output/test.zip", "Sources":[{"URI":"oss://test-bucket/input/test.jpg"}] } |
| Progress |
integer |
Görev ilerleme durumu. Geçerli değerler: 0 ile 100 arası. Birim: yüzde (%). Not
|
100 |
Examples
Success response
JSON format
{
"RequestId": "2C5C1E0F-D8B8-4DA0-8127-EC32C771****",
"ProjectName": "test-project",
"EventId": "2F6-1Bz99Xi93EnRpNEyLudILJm****",
"Status": "Running",
"Code": "ResourceNotFound",
"Message": "The specified resource project is not found.",
"StartTime": "2021-12-24T03:01:41.662060377Z",
"EndTime": "2021-12-24T03:01:49.480109219Z",
"UserData": "{\"ID\": \"user1\",\"Name\": \"test-user1\",\"Avatar\": \"http://example.com?id=user1\"}",
"TaskType": "FileCompression",
"TaskId": "c2b277b9-0d30-4882-ad6d-ad661382****",
"Tags": {
"test": "val1"
},
"TaskRequestDefinition": "{\n\t\"ProjectName\":\"test-project\",\n\t\"CompressedFormat\":\"zip\",\n\t\"TargetURI\":\"oss://test-bucket/output/test.zip\",\n\t\"Sources\":[{\"URI\":\"oss://test-bucket/input/test.jpg\"}]\n}",
"Progress": 100
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.