Tüm Ürünler
Search
Belge Merkezi

:DescribeCacheAnalysisJobs

Son Güncelleme:Sep 30, 2026

Önbellek analiz görevlerinin listesini sorgular.

Operation description

Bu işlemi çağırmadan önce aşağıdaki hususlara dikkat edin:

  • Bu işlemi çağırmak için bir Alibaba Cloud SDK'sı veya Veritabanı Otonomi Hizmeti (DAS) SDK'sı kullanıyorsanız, SDK'nın en son sürümünü kullanmanızı öneririz.

  • DAS API işlemlerini çağırmak için bir SDK kullanıyorsanız, bölge kimliğini cn-shanghai olarak ayarlamanız gerekir.

  • Bu işlem yalnızca ApsaraDB for Redis için geçerlidir.

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

hdm:DescribeCacheAnalysisJobs

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

Örnek kimliği.

r-bp18ff4a195d****

StartTime

string

Yes

Sorgulanacak zaman aralığının başlangıcı. Bu parametreyi 1 Ocak 1970, 00:00:00 UTC tarihinden bu yana geçen milisaniye sayısını temsil eden bir UNIX zaman damgası olarak ayarlayın.

1596177993000

EndTime

string

Yes

Sorgulanacak zaman aralığının sonu. Bu parametreyi 1 Ocak 1970, 00:00:00 UTC tarihinden bu yana geçen milisaniye sayısını temsil eden bir UNIX zaman damgası olarak ayarlayın.

Not

Bitiş zamanı, başlangıç zamanından sonra olmalıdır.

1596177993001

PageNo

string

No

Sayfa numarası. Değer, 0'dan büyük bir tam sayı olmalıdır. Varsayılan değer: 1.

1

PageSize

string

No

Sayfa başına giriş sayısı. Varsayılan değer: 10.

10

Response elements

Element

Type

Description

Example

object

Yanıt parametreleri.

Message

string

Döndürülen mesaj.

Not

İstek başarılıysa Successful döndürülür. İstek başarısız olursa, bir hata kodu gibi bir hata mesajı döndürülür.

Successful

RequestId

string

İstek kimliği.

B6D17591-B48B-4D31-9CD6-9B9796B2****

Data

object

Önbellek analiz görevlerinin listesi.

List

object

CacheAnalysisJob

array<object>

Örnekteki veri düğümünün kimliği.

array<object>

TaskState

string

Önbellek analiz görevinin durumu. Geçerli değerler:

  • BACKUP: Veriler yedekleniyor.

  • ANALYZING: Veriler analiz ediliyor.

  • FINISHED: Veriler analiz edildi.

  • FAILED: Bir hata oluştu.

BACKUP

JobId

string

Önbellek analiz görevinin kimliği.

sf79-sd99-sa37-****

Message

string

Döndürülen mesaj.

Not

İstek başarılıysa Successful döndürülür. İstek başarısız olursa, bir hata kodu gibi bir hata mesajı döndürülür.

Successful

BigKeys

object

KeyInfo

array<object>

Büyük anahtarlarla ilgili ayrıntılar.

Not

Bu parametrenin alt parametreleri ve alt parametrelerin içeriği döndürülmez. Önbellek analiz görevleri hakkındaki ayrıntılı bilgileri sorgulamak için DescribeCacheAnalysisJob işlemini çağırın.

object

Type

string

Örneğin veri türü.

hash

Db

integer

Veritabanının adı.

0

ExpirationTimeMillis

integer

Anahtarın sona erme süresi. Birim: milisaniye. 0 değeri, anahtarın sona ermediğini gösterir.

1596256542547

Key

string

Anahtarın adı.

task_*****

Encoding

string

Anahtarın kodlama türü.

hashtable

Bytes

integer

Anahtar tarafından kullanılan bayt sayısı.

12345

NodeId

string

Örnekteki veri düğümünün kimliği.

r-****-db-0

Count

integer

Anahtardaki öğe sayısı.

127

InstanceId

string

Örnek kimliği.

r-bp18ff4a195d****

NodeId

string

Örnekteki veri düğümünün kimliği.

r-x****-db-0

PageNo

integer

Sayfa numarası. Değer, 0'dan büyük bir tam sayı olmalıdır. Varsayılan değer: 1.

1

PageSize

integer

Sayfa başına giriş sayısı. Varsayılan değer: 10.

10

Extra

string

Ayrılmış parametre.

None

Total

integer

Döndürülen toplam giriş sayısı.

4

Code

string

Döndürülen HTTP durum kodu.

200

Success

string

İsteğin başarılı olup olmadığını gösterir. Geçerli değerler:

  • true: İstek başarılıydı.

  • false: İstek başarısız oldu.

true

Examples

Success response

JSON format

{
  "Message": "Successful",
  "RequestId": "B6D17591-B48B-4D31-9CD6-9B9796B2****",
  "Data": {
    "List": {
      "CacheAnalysisJob": [
        {
          "TaskState": "BACKUP",
          "JobId": "sf79-sd99-sa37-****",
          "Message": "Successful",
          "BigKeys": {
            "KeyInfo": [
              {
                "Type": "hash",
                "Db": 0,
                "ExpirationTimeMillis": 1596256542547,
                "Key": "task_*****",
                "Encoding": "hashtable",
                "Bytes": 12345,
                "NodeId": "r-****-db-0",
                "Count": 127
              }
            ]
          },
          "InstanceId": "r-bp18ff4a195d****",
          "NodeId": "r-x****-db-0"
        }
      ]
    },
    "PageNo": 1,
    "PageSize": 10,
    "Extra": "None",
    "Total": 4
  },
  "Code": "200",
  "Success": "true"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParams The request parameters are invalid.
403 NoPermission You are not authorized to do this action.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.