github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cdb/describe_async_request_info.go (about) 1 package cdb 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 查询异步任务的执行结果 8 // https://cloud.tencent.com/document/api/236/20410 9 10 type DescribeAsyncRequestInfoRequest struct { 11 // 异步任务的请求ID。 12 AsyncRequestId string `name:"AsyncRequestId"` 13 // 区域 14 Region string `name:"Region"` 15 } 16 17 func (req *DescribeAsyncRequestInfoRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeAsyncRequestInfoResponse, error) { 18 resp := &DescribeAsyncRequestInfoResponse{} 19 err := client.Request("cdb", "DescribeAsyncRequestInfo", "2017-03-20").Do(req, resp) 20 return resp, err 21 } 22 23 type DescribeAsyncRequestInfoResponse struct { 24 github_com_morlay_goqcloud.TencentCloudBaseResponse 25 // 任务执行信息描述。 26 Info string `json:"Info"` 27 // 任务执行结果。可能的取值:INITIAL - 初始化,RUNNING - 运行中,SUCCESS - 执行成功,FAILED - 执行失败,KILLED - 已终止,REMOVED - 已删除,PAUSED - 终止中。 28 Status string `json:"Status"` 29 }