
# 根据条件信息查询资源操作记录 - ShowResourceOperationRecordByPage
#### 功能介绍
根据条件信息查询资源操作记录
#### 调用方法
请参见[如何调用API](https://support.huaweicloud.com/api-testman/cloudtest_03_2000.html)。
#### URI
POST /v1/{project_id}/operation-record
表1路径参数 
| 参数         | 是否必选 | 参数类型   | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                     |
|:---|:---|:---|:---|
| project_id | 是    | String | **参数解释：** 项目的32位uuid，项目唯一标识，通过[获取CodeArts项目ID](https://support.huaweicloud.com/api-testman/cloudtest_03_4005.html)接口查询项目列表获取。 **取值范围：** 字符串长度32。 **默认取值：** 无。 |
   
#### 请求参数
表2请求Header参数 
| 参数           | 是否必选 | 参数类型   | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
|:---|:---|:---|:---|
| X-Auth-Token | 是    | String | **参数解释：** 用户Token。 通过调用IAM服务[获取用户Token](https://support.huaweicloud.com/api-iam/iam_30_0001.html)接口获取（响应消息头中X-Subject-Token的值）。 **约束限制：** 必传。 **取值范围：** 字符串长度不少于1，不超过10万。 **默认取值：** 无。 |
   
表3请求Body参数 
| 参数     | 是否必选 | 参数类型                                                                                                                  | 描述                                                                 |
|:---|:---|:---|:---|
| params | 是    | [ResourceOpetaionRecordPageParam] object | **参数解释：** 请求体 |
   
 表4ResourceOpetaionRecordPageParam 
| 参数             | 是否必选 | 参数类型    | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
|:---|:---|:---|:---|
| offset         | 否    | Integer | **参数解释：** 起始偏移量，表示从此偏移量开始查询，offset大于等于0，小于等于100000                                                                                                                                                                                                                                                                                                                                                              |
| limit          | 否    | Integer | **参数解释：** 每页显示的条目数量，最大支持100条                                                                                                                                                                                                                                                                                                                                                                                    |
| resource_id    | 否    | String  | **参数解释：** 资源ID                                                                                                                                                                                                                                                                                                                                                                                                  |
| resource_type  | 否    | String  | **参数解释：** 资源类型 **取值范围**: - mindmap，脑图。                          |
| operation_type | 否    | String  | **参数解释：** 操作类型 **取值范围**: - updateMindmapCreatorInfo，更新脑图创建人。    |
   
#### 响应参数
**状态码：200**
表5响应Body参数 
| 参数      | 参数类型   | 描述                                                                                                                                                                                                                                                                       |
|:---|:---|:---|
| code    | String | **参数解释：** 错误码 **取值范围：** 大小写字母、数字。 长度限制0到20位          |
| data    | Object | **参数解释：** 返回体 **取值范围：** 不涉及                                                                               |
| message | String | **参数解释：** 错误信息 **取值范围：** 大小写字母、数字、符号、中文。 长度限制0到1000位 |
   
**状态码：201**
Created
#### 请求示例
根据条件信息查询资源操作记录
```
post https://{endpoint}/v1/b94c9a6947a44597891e0a7362e7383f/operation-record
{
  "params" : {
    "operation_type" : "updateMindmapCreatorInfo",
    "resource_type" : "feature_root_id",
    "resource_id" : "mindmap",
    "offset" : 1,
    "limit" : 5
  }
}
```
#### 响应示例
**状态码：200**
OK
```
{
  "code" : "success",
  "data" : {
    "total" : 1,
    "list" : [ {
      "id" : "1cfb40efafa14e3f812b51028502bad5",
      "project_id" : "76667cb543a14cacac2ade913ca44a47",
      "resource_id" : "fb6bd82a6c084fdab0d8e5d8f820eabc",
      "resource_type" : "mindmap",
      "operator" : "efdb403066474ab08836b9eeaaa23bca",
      "operation_type" : "updateMindmapCreatorInfo",
      "operation_batch_id" : null,
      "operation_detail" : "{\"new_user_num\":\"昵称xxx1111144445454545\",\"old_user_num\":\"--\",\"update_business_type\":\"mindmap\",\"update_resource_id\":\"fb6bd82a6c084fdab0d8e5d8f820eabc\"}",
      "create_time" : "2025/01/13 14:52:00 GMT+08:00",
      "creator_name" : "user",
      "creator_num" : "efdb403066474ab08836b9eeaaa23bca",
      "is_delete" : false,
      "delete_batch_id" : null
    } ],
    "offset" : 1,
    "limit" : 5,
    "pages" : 1,
    "size" : 1
  },
  "message" : null
}
```
#### 状态码
| 状态码 | 描述           |
|:---|:---|
| 200 | OK           |
| 201 | Created      |
| 401 | Unauthorized |
| 403 | Forbidden    |
| 404 | Not Found    |
   
#### 错误码
请参见[错误码](https://support.huaweicloud.com/api-testman/ErrorCode.html)。
