调用DescribeSqlFlashbakTask接口查看闪回任务的列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 | 
|---|---|---|---|---|
| Action | String | 是 | DescribeSqlFlashbakTask | 
                               系统规定参数。取值:DescribeSqlFlashbakTask。  | 
                           
                        
| DrdsInstanceId | String | 是 | drds****c6vxxyzd | 
                               实例ID。  | 
                           
                        
返回数据
| 名称 | 类型 | 示例值 | 描述 | 
|---|---|---|---|
| RequestId | String | 5D64DE59-44A1-E541-E0CB-B7E5C4305162 | 
                               请求ID。  | 
                           
                        
| SqlFlashbackTasks | Array of SqlFlashbackTask | 
                               闪回任务返回对象。  | 
                           
                        |
| SqlFlashbackTask | |||
| DbName | String | drds_flashback | 
                               闪回任务的数据库名。  | 
                           
                        
| DownloadUrl | String | http://... | 
                               下载地址。  | 
                           
                        
| ExpireTime | Long | 1569216270000 | 
                               下载地址过期时间。  | 
                           
                        
| GmtCreate | Long | 1568611408000 | 
                               创建时间。  | 
                           
                        
| GmtModified | Long | 1568611469000 | 
                               修改时间。  | 
                           
                        
| Id | Long | 238 | 
                               主键ID。  | 
                           
                        
| InstId | String | drdshbga76p6**** | 
                               实例ID。  | 
                           
                        
| RecallProgress | Integer | 10 | 
                               逆向召回进度。  | 
                           
                        
| RecallRestoreType | Integer | 1 | 
                               恢复类型,取值如下: 
  | 
                           
                        
| RecallStatus | Integer | 1 | 
                               数据召回任务状态。  | 
                           
                        
| RecallType | Integer | 1 | 
                               回溯类型,取值如下: 
  | 
                           
                        
| SearchEndTime | Long | 1568509597000 | 
                               搜索的结束时间。  | 
                           
                        
| SearchStartTime | Long | 1568609597000 | 
                               搜索的开始时间。  | 
                           
                        
| SqlCounter | Long | 0 | 
                               恢复的数据行数。  | 
                           
                        
| SqlPk | String | id | 
                               SQL设计的主键值。  | 
                           
                        
| SqlType | String | Insert,Update,Delete | 
                               SQL的类型。  | 
                           
                        
| TableName | String | drds_params | 
                               数据所属的表。  | 
                           
                        
| TraceId | String | trace | 
                               SQL的trace_id。  | 
                           
                        
| Success | Boolean | true | 
                               请求是否成功。  | 
                           
                        
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeSqlFlashbakTask
&DrdsInstanceId=drds****c6vxxyzd
&<公共请求参数>
                  正常返回示例
XML格式
                  
<SqlFlashbackTasks>
    <SqlFlashbackTask>
        <GmtModified>1568611469000</GmtModified>
        <SearchEndTime>1568509597000</SearchEndTime>
        <RecallStatus>1</RecallStatus>
        <SqlPk>id</SqlPk>
        <RecallRestoreType>1</RecallRestoreType>
        <TableName>drds_params</TableName>
        <GmtCreate>1568611408000</GmtCreate>
        <SearchStartTime>1568609597000</SearchStartTime>
        <InstId>drdshbga76p6****</InstId>
        <RecallType>1</RecallType>
        <TraceId>trace</TraceId>
        <SqlType>Insert,Update,Delete</SqlType>
        <DbName>drds_flashback</DbName>
        <Id>238</Id>
        <ExpireTime>1569216270000</ExpireTime>
        <SqlCounter>0</SqlCounter>
        <RecallProgress>10</RecallProgress>
        <DownloadUrl>http://...</DownloadUrl>
    </SqlFlashbackTask>
</SqlFlashbackTasks>
<RequestId>5D64DE59-44A1-E541-E0CB-B7E5C4305162</RequestId>
<Success>true</Success>
                  JSON格式
                  
{"SqlFlashbackTasks":{"SqlFlashbackTask":[{"GmtModified":"1568611469000","SearchEndTime":"1568509597000","RecallStatus":"1","SqlPk":"id","RecallRestoreType":"1","TableName":"drds_params","GmtCreate":"1568611408000","SearchStartTime":"1568609597000","InstId":"drdshbga76p6****","RecallType":"1","TraceId":"trace","SqlType":"Insert,Update,Delete","DbName":"drds_flashback","Id":"238","ExpireTime":"1569216270000","SqlCounter":"0","RecallProgress":"10","DownloadUrl":"http://..."}]},"RequestId":"5D64DE59-44A1-E541-E0CB-B7E5C4305162","Success":"true"}
                  错误码
| HttpCode | 错误码 | 错误信息 | 描述 | 
|---|---|---|---|
| 500 | InternalError | The request processing has failed due to some unknown error. | 请求失败,内部错误 | 
访问错误中心查看更多错误码。