Tüm Ürünler
Search
Belge Merkezi

:ListTasks

Son Güncelleme:Oct 02, 2026

Zaman aralığı ve etiket gibi belirli koşullara göre görevleri listeler.

Operation description

Bu işlemi çağırmadan önce, Intelligent Media Management (IMM) faturalandırması hakkında bilgi sahibi 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:ListTasks

list

*Project

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

None None

Request parameters

Parameter

Type

Required

Description

Example

ProjectName

string

Yes

Projenin adı.

test-project

TaskTypes

array

No

Görev türleri.

string

No

Görev türü. Daha fazla bilgi için Görev türleri bölümüne bakın.

["OfficeConversion","VideoLabelClassification"]

NextToken

string

No

Sayfalama belirteci.

Sayfalama belirteci, toplam sonuç sayısı MaxResults parametresinin değerini aşıyorsa bir sonraki istekte yeni bir sonuç sayfası almak için kullanılır. İşlemin bir sonraki çağrısı, NextToken parametre değerinden sonra sözlük sırasına göre sonuçları döndürür.

Not

İşlemi ilk kez çağırırken bu parametreyi boş bırakın.

MTIzNDU2Nzg6aW1tdGVzdDpleGFtcGxlYnVja2V0OmRhdGFzZXQwMDE6b3NzOi8vZXhhbXBsZWJ1Y2tldC9zYW1wbGVvYmplY3QxLmpwZw==

MaxResults

integer

No

Döndürülecek maksimum sonuç sayısı. Geçerli değer aralığı: (0, 100]. Varsayılan değer: 100.

1

TagSelector

string

No

Görevlerin özel etiketleri.

test=val1

Sort

string

No

Sonuçların sıralanacağı alan. Geçerli değerler:

  • TaskId: Sonuçları görev kimliğine göre sıralar. Bu, varsayılan sıralama alanıdır.

  • StartTime: Sonuçları görev başlangıç zamanına göre sıralar.

  • StartTime: Sonuçları görev bitiş zamanına göre sıralar.

TaskId

Order

string

No

Sıralama düzeni. Geçerli değerler:

  • asc: Artan düzende. Bu, varsayılan değerdir.

  • desc: Azalan düzende.

Valid values:

  • asc :
  • desc :

asc

Status

string

No

Görev durumu. Geçerli değerler:

  • Running: Görev çalışıyor.

  • Succeeded: Görev başarılı.

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

Valid values:

  • Succeeded :
  • Failed :
  • Running :

Succeeded

StartTimeRange TimeRange

No

Görev başlangıç zamanı aralığı. Belirtilen aralıkta başlayan görevleri filtrelemek için bu parametreyi belirtebilirsiniz.

EndTimeRange TimeRange

No

Görev bitiş zamanı aralığı. Belirtilen aralıkta biten görevleri filtrelemek için bu parametreyi belirtebilirsiniz.

RequestDefinition

boolean

No

Görevi oluşturmak için yapılan ilk istekte istek parametrelerinin döndürülüp döndürülmeyeceğini belirtir. Varsayılan değer: False.

True

Response elements

Element

Type

Description

Example

object

Eşleşen görevler.

RequestId

string

İstek kimliği.

9847E7D0-A9A3-0053-84C6-BA16FFFA726E

ProjectName

string

Projenin adı.

immtest

NextToken

string

Sayfalama belirteci. Sayfalama belirteci, toplam sonuç sayısı MaxResults parametresinin değerini aşıyorsa bir sonraki istekte yeni bir sonuç sayfası almak için kullanılır. Bu parametre yalnızca tüm sonuçlar döndürülmediğinde bir değere sahiptir.

Kalan sonuçları listelemek için bir sonraki istekte NextToken parametresinin değerini belirtebilirsiniz.

MTIzNDU2Nzg6aW1tdGVzdDpleGFtcGxlYnVja2V0OmRhdGFzZXQwMDE6b3NzOi8vZXhhbXBsZWJ1Y2tldC9zYW1wbGVvYmplY3QxLmpwZw==

MaxResults

string

Döndürülen sonuç listesinin uzunluğu.

1

Tasks

array

Görevler.

TaskInfo

Görevin ayrıntıları.

Examples

Success response

JSON format

{
  "RequestId": "9847E7D0-A9A3-0053-84C6-BA16FFFA726E",
  "ProjectName": "immtest",
  "NextToken": "MTIzNDU2Nzg6aW1tdGVzdDpleGFtcGxlYnVja2V0OmRhdGFzZXQwMDE6b3NzOi8vZXhhbXBsZWJ1Y2tldC9zYW1wbGVvYmplY3QxLmpwZw==",
  "MaxResults": "1",
  "Tasks": [
    {
      "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": "VideoLabelClassification",
      "TaskId": "c2b277b9-0d30-4882-ad6d-ad661382****",
      "Tags": {
        "test": "test",
        "test2": 1
      },
      "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": 0
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.