调用DescribeDataMaskingRunHistory查询脱敏任务执行情况。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeDataMaskingRunHistory |
需要执行的操作。 取值:DescribeDataMaskingRunHistory |
Lang | String | 否 | zh |
请求和接收消息的语言类型。
|
TaskId | String | 否 | mt4HBgtw1B****** |
脱敏任务的编号。 |
StartTime | Long | 否 | 1582992000000 |
按任务执行的起始时间查询,时间戳毫秒格式。 |
EndTime | Long | 否 | 1583856000000 |
按任务执行的结束时间查询,时间戳毫秒格式。 |
Status | Integer | 否 | 0 |
任务执行状态:
|
SrcType | Integer | 否 | 2 |
脱敏数据所属的源产品类型:
|
DstType | Integer | 否 | 2 |
数据脱敏后放置的目标产品类型:
|
PageSize | Integer | 否 | 10 |
列表每页显示的最大数据条数。 |
CurrentPage | Integer | 否 | 1 |
分页查询时的页码。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
CurrentPage | Integer | 1 |
结果中显示的当前页的页码。 |
Items | Array |
结果列表。 |
|
ConflictCount | Long | 0 |
冲突行数,表示脱敏后待插入目标表的数据和目标表中已有的数据冲突的行数。 |
DstType | Integer | 2 |
目标产品类型:
|
DstTypeCode | String | OSS |
目的产品类型。 |
FailCode | String | masking_task_not_found |
任务执行失败的错误码,只有任务执行失败时才有值。 |
Id | Long | 1 |
执行记录的ID。 |
MaskingCount | Long | 100 |
脱敏行数。 |
Percentage | Integer | 100 |
执行进度。 |
RunIndex | Integer | 1 |
第几次执行该任务。 |
SrcType | Integer | 2 |
源产品类型:
|
SrcTypeCode | String | OSS |
源产品类型。 |
StartTime | Long | 1582251233000 |
执行时间,时间戳毫秒格式。 |
Status | Integer | 1 |
任务执行状态:
|
TaskId | String | mt4HBgtw1B****** |
任务编号。 |
Type | Integer | 1 |
执行方式:
|
PageSize | Integer | 10 |
结果中每页显示数据条数。 |
RequestId | String | 769FB3C1-F4C9-4****** |
结果的请求ID。 |
TotalCount | Integer | 100 |
结果中数据的总条数。 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeDataMaskingRunHistory
&<公共请求参数>
正常返回示例
XML
格式
<DescribeDataMaskingRunHistory>
<TotalCount>1</TotalCount>
<PageSize>5</PageSize>
<CurrentPage>1</CurrentPage>
<Items>
<Status>1</Status>
<RunIndex>1</RunIndex>
<TaskId>Vd8Rj80eBXR*****</TaskId>
<Percentage>100</Percentage>
<MaskingCount>100000</MaskingCount>
<StartTime>1582251233000</StartTime>
<DstTypeCode>RDS</DstTypeCode>
<ConflictCount>0</ConflictCount>
<DstType>5</DstType>
<Type>1</Type>
<SrcType>1</SrcType>
<Id>4869</Id>
<SrcTypeCode>MaxCompute</SrcTypeCode>
</Items>
<RequestId>769FB3C1-F4C9-4******</RequestId>
</DescribeDataMaskingRunHistory>
JSON
格式
{
"TotalCount": 1,
"PageSize": 5,
"CurrentPage": 1,
"Items": [
{
"Status": 1,
"RunIndex": 1,
"TaskId": "Vd8Rj80eBXR*****",
"Percentage": 100,
"MaskingCount": 100000,
"StartTime": 1582251233000,
"DstTypeCode": "RDS",
"ConflictCount": 0,
"DstType": 5,
"Type": 1,
"SrcType": 1,
"Id": 4869,
"SrcTypeCode": "MaxCompute"
}
],
"RequestId": "769FB3C1-F4C9-4******"
}
错误码
访问错误中心查看更多错误码。