All Products
Search
Document Center

PolarDB:DescribeSqlFlashbakTask

Last Updated:Jul 10, 2026

Queries the list of flashback tasks.

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

drds:DescribeSqlFlashbakTask

get

*instance

acs:drds:{#regionId}:{#accountId}:instance/{#instanceId}/db/*

None None

Request parameters

Parameter

Type

Required

Description

Example

DrdsInstanceId

string

Yes

The instance ID.

drds****c6vxxyzd

Response elements

Element

Type

Description

Example

object

Success

boolean

Indicates whether the request was successful.

true

RequestId

string

The request ID.

5D64DE59-44A1-E541-E0CB-B7E5C4305162

SqlFlashbackTasks

object

SqlFlashbackTask

array<object>

The flashback task object.

object

TableName

string

Indicates the name of the table that contains the data that are flashed back.

drds_params

SearchEndTime

integer

Indicates the start time of the reverse call.

1568509597000

ExpireTime

integer

Indicates the time when the download URL expires.

1569216270000

DownloadUrl

string

Indicates the download URL.

http://...

RecallProgress

integer

Indicates the progress of the reverse call.

10

SqlPk

string

Indicates the primary key specified in the SQL statements.

id

InstId

string

Indicates the ID of the instance.

drdshbga76p6****

RecallType

integer

Indicates the type of the reverse call. Valid values:

  • 0: exact search

  • 1: fuzzy search

1

SearchStartTime

integer

Indicates the end time of the reverse call.

1568609597000

GmtModified

integer

Indicates the point in time when the flashback task is performed.

1568611469000

SqlCounter

integer

Indicates the number of data rows that are flashed back.

0

DbName

string

Indicates the name of the database on which a flashback task is performed.

drds_flashback

RecallRestoreType

integer

Indicates the type of the flashback task. Valid values:

  • 1: image restoration

  • 2: reverse restoration

1

GmtCreate

integer

Indicates the point in time when the instance was created.

1568611408000

TraceId

string

Indicates the ID of the trace of the SQL query.

trace

Id

integer

Indicates the ID of the primary key that corresponds to a table used in the flashback task.

238

RecallStatus

integer

Indicates the status of the data recall task.

1

SqlType

string

Indicates the types of the SQL statements.

Insert,Update,Delete

Examples

Success response

JSON format

{
  "Success": true,
  "RequestId": "5D64DE59-44A1-E541-E0CB-B7E5C4305162",
  "SqlFlashbackTasks": {
    "SqlFlashbackTask": [
      {
        "TableName": "drds_params",
        "SearchEndTime": 1568509597000,
        "ExpireTime": 1569216270000,
        "DownloadUrl": "http://...",
        "RecallProgress": 10,
        "SqlPk": "id",
        "InstId": "drdshbga76p6****",
        "RecallType": 1,
        "SearchStartTime": 1568609597000,
        "GmtModified": 1568611469000,
        "SqlCounter": 0,
        "DbName": "drds_flashback",
        "RecallRestoreType": 1,
        "GmtCreate": 1568611408000,
        "TraceId": "trace",
        "Id": 238,
        "RecallStatus": 1,
        "SqlType": "Insert,Update,Delete"
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

500 InternalError The request processing has failed due to some unknown error.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.