Tüm Ürünler
Search
Belge Merkezi

:GetTask

Son Güncelleme:Sep 30, 2026

Belirtilen bir zaman uyumsuz görevi sorgular.

Operation description

GET /api/v1/tasks/{taskId}.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

GET /api/v1/tasks/{taskId} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

taskId

string

Yes

Görev kimliği.

task-433aead756057fff8189a7ce5****

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

Response elements

Element

Type

Description

Example

object

Döndürülen veriler.

requestId

string

İstek kimliği.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3****

task

object

Görev bilgileri.

createTime

string

Görevin oluşturulma zamanı.

2022-10-09T00:46:03Z

error

object

Görev için döndürülen hata.

code

string

Hata kodu.

OperationFailure.OperationFailed

message

string

Hata mesajı.

{ "requestId": "123****", "errorCode": "InvalidRamUser.NoPermission", "errorMsg": "Ram user is not authorized to perform the operation." }

product

string

Hizmet kodu.

ECS

regionId

string

Bölge kimliği.

cn-beijing

resourceId

string

Kaynak kimliği.

i-8vbascjthm7kzhp3****

resourcePath

string

Kaynakların yolu. Göreli kaynak kimliği. Kaynak yolu, tam kaynak konumunu (üst kaynak/alt kaynak) içerir.

Instance/i-8vbascjthm7kzhp3**** Instance/r-8vbf5abe31c9c4d4/Account/cctest

resourceType

string

Kaynak türü.

Instance

status

string

Görev durumu.

Pending

Running

Succeeded

Failed

Cancelling

Cancelled.

Valid values:

  • Succeeded :

    Başarılı.

  • Failed :

    Başarısız.

  • Running :

    Çalışıyor.

  • Cancelled :

    İptal edildi.

  • Pending :

    Beklemede.

  • Cancelling :

    İptal ediliyor.

Succeeded

taskAction

string

Görev işleminin türü. Geçerli değerler: Create, Update ve Delete.

Valid values:

  • Delete :

    Sil.

  • Create :

    Oluştur.

  • Update :

    Güncelle.

Create

taskId

string

Görev kimliği.

task-433aead756057fff8189a7ce5****

Examples

Success response

JSON format

{
  "requestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
  "task": {
    "createTime": "2022-10-09T00:46:03Z",
    "error": {
      "code": "OperationFailure.OperationFailed",
      "message": "{\n     \"requestId\": \"123****\",\n     \"errorCode\": \"InvalidRamUser.NoPermission\",\n     \"errorMsg\": \"Ram user is not authorized to perform the operation.\"\n}"
    },
    "product": "ECS",
    "regionId": "cn-beijing",
    "resourceId": "i-8vbascjthm7kzhp3****\n",
    "resourcePath": "Instance/i-8vbascjthm7kzhp3****\nInstance/r-8vbf5abe31c9c4d4/Account/cctest",
    "resourceType": "Instance",
    "status": "Succeeded",
    "taskAction": "Create",
    "taskId": "task-433aead756057fff8189a7ce5****"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.