Tüm Ürünler
Search
Belge Merkezi

:GetTask

Son Güncelleme:Oct 02, 2026

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

imm:GetTask

get

*Project

acs:imm:{#regionId}:{#accountId}:project/{#ProjectName}

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:

  • true

  • false (varsayılan)

Bu parametre yalnızca aşağıdaki görev türleri için geçerlidir:

  • MediaConvert

  • VideoLabelClassification

  • FaceClustering

  • FileCompression

  • ArchiveFileInspection

  • FileUncompression

  • PointCloudCompress

  • ImageToPDF

  • StoryCreation

  • LocationDateClustering

  • ImageSplicing

  • FacesSearching.

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: Görev çalışıyor.

  • Succeeded: Görev tamamlandı.

  • Failed: Görev başarısız oldu.

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
  • GetTask işlemi bu parametreyi desteklemez.

  • Bu parametre yalnızca görev durumu Running olduğunda anlamlıdır.

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.