全部产品
云市场

获取操作日志

更新时间:2019-04-15 15:16:29

描述

DMS企业版用户的管理员可以通过这个接口获取本企业产生的相关操作日志详情列表。

请求参数

参数 类型 是否必选 示例值 描述
Tid Long -1

租户id;取自【系统管理】-【实例管理】或【系统管理】-【用户管理】的产品规格

Module String PERMISSION

日志模块,缺省则对应时间段内所有模块返回,日志模块取值(英文部分)和说明如下:

  • PERMISSION: 权限
  • OWNER: 数据Owner
  • SQL_CONSOLE: 数据查询
  • SQL_CONSOLE_EXPORT: 查询结果导出
  • DATA_CHANGE: 数据变更
  • DATA_EXPORT: 数据导出
  • SQL_REVIEW: SQL审核
  • DT_SYNC: 库表同步
  • DT_DETAIL: 库表详情
  • DB_TASK: 任务管理
  • INSTANCE_MANAGE: 实例管理
  • USER_MANAGE: 用户管理
  • SECURITY_RULE: 安全规则
  • CONFIG_MANAGE: 配置管理
  • RESOURCE_AUTH: 资源授权
  • ACCESS_WHITE_IP: 访问IP白名单
StartTime String 2018-11-01 10:00:00

开始时间,时间格式为 yyyy-MM-DD HH:mm:ss

EndTime String 2018-11-01 11:00:00

结束时间,时间格式为 yyyy-MM-DD HH:mm:ss

PageNumber Integer 3

页码,从1开始

PageSize Integer 30

每页记录数,取值:

  • 30
  • 50
  • 100

返回参数

参数 类型 示例值 描述
RequestId String 47D56208-DB1D-4FD3-BE32-300E43185488

请求唯一ID

Success Boolean true

请求是否成功

ErrorMessage String 请求参数不合法

错误消息

ErrorCode String 403

错误码

TotalCount Long 22

操作日志总条数

OpLogDetails

操作日志详情列表

  └UserId Long 12345678

用户阿里云uid

  └UserNick String dmstest

用户显示名

  └Module String PERMISSION

功能模块

  └OpContent String 申请权限

操作内容

  └OpTime String 2018-11-01 10:00:00

操作时间

  └Database String dmstest_prod_database@dmstest.rds…【测试实例】

数据库访问地址,只有当实例类型为LocalInstance时,这个参数才有值。 仅任务类型区域的各功能模块操作才有这个属性

  └OrderId Long 1

工单号/任务号 仅任务类型区域的各功能模块操作与系统管理任务管理功能模块的操作才有这个属性

示例

请求示例

  1. /?Tid=
  2. &StartTime=
  3. &EndTime=
  4. &PageNumber=
  5. &PageSize=
  6. &Module=
  7. &<公共请求参数>

正常返回示例

XML 格式

  1. <GetOpLogResponse>
  2. <OpLogDetails>
  3. <OpLogDetail>
  4. <OpContent><![CDATA[【成功,行数:1】SELECT (data_length + index_length) AS store_capacity FROM information_schema.tables WHERE table_type = &#39;BASE TABLE&#39; AND `table_schema` = &#39;dmstest_database&#39; AND `table_name` = &#39;multi_db_multi_tbl&#39;]]></OpContent>
  5. <UserNick>dmstest</UserNick>
  6. <Database>dmstest_database@dmstest.rds...【测试实例】</Database>
  7. <UserId>12345678</UserId>
  8. <OpTime>2018-11-22 20:04:10</OpTime>
  9. <Module>数据查询</Module>
  10. </OpLogDetail>
  11. <OpLogDetail>
  12. <OpContent><![CDATA[【成功,行数:1】SELECT (data_length + index_length) AS store_capacity FROM information_schema.tables WHERE table_type = &#39;BASE TABLE&#39; AND `table_schema` = &#39;dmstest_database&#39; AND `table_name` = &#39;multi_db_multi_tbl&#39;]]></OpContent>
  13. <UserNick>dmstest</UserNick>
  14. <Database>dmstest_database@dmstest.rds...【测试实例】</Database>
  15. <UserId>12345678</UserId>
  16. <OpTime>2018-11-22 20:04:06</OpTime>
  17. <Module>数据查询</Module>
  18. </OpLogDetail>
  19. <OpLogDetail>
  20. <OpContent>【成功,行数:24】show topology FROM multi_db_multi_tbl</OpContent>
  21. <UserNick>dmstest</UserNick>
  22. <Database>dmstest_database@dmstest.rds...【测试实例】</Database>
  23. <UserId>12345678</UserId>
  24. <OpTime>2018-11-22 20:03:55</OpTime>
  25. <Module>数据查询</Module>
  26. </OpLogDetail>
  27. <OpLogDetail>
  28. <OpContent><![CDATA[【成功,行数:1】SELECT (data_length + index_length) AS store_capacity FROM information_schema.tables WHERE table_type = &#39;BASE TABLE&#39; AND `table_schema` = &#39;dmstest_database&#39; AND `table_name` = &#39;user_log3&#39;]]></OpContent>
  29. <UserNick>dmstest</UserNick>
  30. <Database>dmstest_database@dmstest.rds...【测试实例】</Database>
  31. <UserId>12345678</UserId>
  32. <OpTime>2018-11-22 20:02:59</OpTime>
  33. <Module>数据查询</Module>
  34. </OpLogDetail>
  35. <OpLogDetail>
  36. <OpContent><![CDATA[【成功,行数:1】SELECT (data_length + index_length) AS store_capacity FROM information_schema.tables WHERE table_type = &#39;BASE TABLE&#39; AND `table_schema` = &#39;dmstest_database&#39; AND `table_name` = &#39;user_log3&#39;]]></OpContent>
  37. <UserNick>dmstest</UserNick>
  38. <Database>dmstest_database@dmstest.rds...【测试实例】</Database>
  39. <UserId>12345678</UserId>
  40. <OpTime>2018-11-22 20:02:49</OpTime>
  41. <Module>数据查询</Module>
  42. </OpLogDetail>
  43. <OpLogDetail>
  44. <OpContent>【成功,行数:1】show CREATE TABLE user_log3</OpContent>
  45. <UserNick>dmstest</UserNick>
  46. <Database>dmstest_database@dmstest.rds...【测试实例】</Database>
  47. <UserId>12345678</UserId>
  48. <OpTime>2018-11-22 14:34:05</OpTime>
  49. <Module>数据查询</Module>
  50. </OpLogDetail>
  51. <OpLogDetail>
  52. <OpContent><![CDATA[【成功,行数:9】SELECT `TABLE_NAME` FROM information_schema.tables WHERE TABLE_TYPE = &#39;BASE TABLE&#39; AND table_schema = &#39;dmstest_database&#39;]]></OpContent>
  53. <UserNick>dmstest</UserNick>
  54. <Database>dmstest_database@dmstest.rds...【测试实例】</Database>
  55. <UserId>12345678</UserId>
  56. <OpTime>2018-11-22 14:33:54</OpTime>
  57. <Module>数据查询</Module>
  58. </OpLogDetail>
  59. <OpLogDetail>
  60. <OpContent>新增SQL任务,任务号:5486</OpContent>
  61. <UserNick>dmstest</UserNick>
  62. <Database>dmstest_database@dmstest.rds...【测试实例】</Database>
  63. <UserId>12345678</UserId>
  64. <OpTime>2018-11-22 14:26:57</OpTime>
  65. <Module>任务管理</Module>
  66. </OpLogDetail>
  67. <OpLogDetail>
  68. <OpContent>新增SQL任务,任务号:5485</OpContent>
  69. <UserNick>dmstest</UserNick>
  70. <Database>dmstest_database@dmstest.rds...【测试实例】</Database>
  71. <UserId>12345678</UserId>
  72. <OpTime>2018-11-22 14:23:55</OpTime>
  73. <Module>任务管理</Module>
  74. </OpLogDetail>
  75. <OpLogDetail>
  76. <OpContent>新增SQL任务,任务号:5484</OpContent>
  77. <UserNick>dmstest</UserNick>
  78. <Database>dmstest_database@dmstest.rds...【测试实例】</Database>
  79. <UserId>12345678</UserId>
  80. <OpTime>2018-11-22 14:23:30</OpTime>
  81. <Module>任务管理</Module>
  82. </OpLogDetail>
  83. <OpLogDetail>
  84. <OpContent>新增SQL任务,任务号:5483</OpContent>
  85. <UserNick>dmstest</UserNick>
  86. <Database>dmstest_database@dmstest.rds...【测试实例】</Database>
  87. <UserId>12345678</UserId>
  88. <OpTime>2018-11-22 14:23:11</OpTime>
  89. <Module>任务管理</Module>
  90. </OpLogDetail>
  91. <OpLogDetail>
  92. <OpContent>【成功,行数:1】show CREATE TABLE multi_db_single_tbl</OpContent>
  93. <UserNick>dmstest</UserNick>
  94. <Database>dmstest_database@dmstest.rds...【测试实例】</Database>
  95. <UserId>12345678</UserId>
  96. <OpTime>2018-11-22 14:22:30</OpTime>
  97. <Module>数据查询</Module>
  98. </OpLogDetail>
  99. <OpLogDetail>
  100. <OpContent><![CDATA[【成功,行数:2】SELECT `TABLE_NAME` FROM information_schema.tables WHERE TABLE_TYPE = &#39;BASE TABLE&#39; AND table_schema = &#39;dmstest_database&#39;]]></OpContent>
  101. <UserNick>dmstest</UserNick>
  102. <Database>dmstest_database@dmstest.rds...【测试实例】</Database>
  103. <UserId>12345678</UserId>
  104. <OpTime>2018-11-22 14:22:15</OpTime>
  105. <Module>数据查询</Module>
  106. </OpLogDetail>
  107. <OpLogDetail>
  108. <OpContent><![CDATA[【成功,行数:2】SELECT `TABLE_NAME` FROM information_schema.tables WHERE TABLE_TYPE = &#39;BASE TABLE&#39; AND table_schema = &#39;dmstest_database&#39;]]></OpContent>
  109. <UserNick>dmstest</UserNick>
  110. <Database>dmstest_database@dmstest.rds...【测试实例】</Database>
  111. <UserId>12345678</UserId>
  112. <OpTime>2018-11-22 14:19:31</OpTime>
  113. <Module>数据查询</Module>
  114. </OpLogDetail>
  115. <OpLogDetail>
  116. <OpContent>新增SQL任务,任务号:5482</OpContent>
  117. <UserNick>dmstest</UserNick>
  118. <Database>dmstest_database@dmstest.rds...【测试实例】</Database>
  119. <UserId>12345678</UserId>
  120. <OpTime>2018-11-22 14:19:25</OpTime>
  121. <Module>任务管理</Module>
  122. </OpLogDetail>
  123. <OpLogDetail>
  124. <OpContent><![CDATA[【成功,行数:1】SELECT `TABLE_NAME` FROM information_schema.tables WHERE TABLE_TYPE = &#39;BASE TABLE&#39; AND table_schema = &#39;dmstest_database&#39;]]></OpContent>
  125. <UserNick>dmstest</UserNick>
  126. <Database>dmstest_database@dmstest.rds...【测试实例】</Database>
  127. <UserId>12345678</UserId>
  128. <OpTime>2018-11-22 14:18:57</OpTime>
  129. <Module>数据查询</Module>
  130. </OpLogDetail>
  131. <OpLogDetail>
  132. <OpContent>新增SQL任务,任务号:5481</OpContent>
  133. <UserNick>dmstest</UserNick>
  134. <Database>dmstest_database@dmstest.rds...【测试实例】</Database>
  135. <UserId>12345678</UserId>
  136. <OpTime>2018-11-22 14:18:46</OpTime>
  137. <Module>任务管理</Module>
  138. </OpLogDetail>
  139. <OpLogDetail>
  140. <OpContent><![CDATA[【成功,行数:0】SELECT `TABLE_NAME` FROM information_schema.tables WHERE TABLE_TYPE = &#39;BASE TABLE&#39; AND table_schema = &#39;dmstest_database&#39;]]></OpContent>
  141. <UserNick>dmstest</UserNick>
  142. <Database>dmstest_database@dmstest.rds...【测试实例】</Database>
  143. <UserId>12345678</UserId>
  144. <OpTime>2018-11-22 14:04:13</OpTime>
  145. <Module>数据查询</Module>
  146. </OpLogDetail>
  147. <OpLogDetail>
  148. <OpContent><![CDATA[【成功,行数:0】SELECT `TABLE_NAME` FROM information_schema.tables WHERE TABLE_TYPE = &#39;BASE TABLE&#39; AND table_schema = &#39;dmstest_database&#39;]]></OpContent>
  149. <UserNick>dmstest</UserNick>
  150. <Database>dmstest_database@dmstest.rds...【测试实例】</Database>
  151. <UserId>12345678</UserId>
  152. <OpTime>2018-11-22 14:04:08</OpTime>
  153. <Module>数据查询</Module>
  154. </OpLogDetail>
  155. <OpLogDetail>
  156. <OpContent><![CDATA[【成功,行数:0】SELECT `TABLE_NAME` FROM information_schema.tables WHERE TABLE_TYPE = &#39;BASE TABLE&#39; AND table_schema = &#39;dmstest_database&#39;]]></OpContent>
  157. <UserNick>dmstest</UserNick>
  158. <Database>dmstest_database@dmstest.rds...【测试实例】</Database>
  159. <UserId>12345678</UserId>
  160. <OpTime>2018-11-22 12:11:41</OpTime>
  161. <Module>数据查询</Module>
  162. </OpLogDetail>
  163. <OpLogDetail>
  164. <OpContent>管理员或DBA编辑库OWNER,库名:dmstest_database@dmstest.rds...【测试实例】</OpContent>
  165. <UserNick>dmstest</UserNick>
  166. <Database>dmstest_database@dmstest.rds...【测试实例】</Database>
  167. <UserId>12345678</UserId>
  168. <OpTime>2018-11-22 12:11:14</OpTime>
  169. <Module>数据Owner</Module>
  170. </OpLogDetail>
  171. <OpLogDetail>
  172. <OpContent>管理员或DBA编辑库OWNER,库名:dmstest_prod_database@dmstest.rds...【生产实例】</OpContent>
  173. <UserNick>dmstest</UserNick>
  174. <Database>dmstest_prod_database@dmstest.rds...【生产实例】</Database>
  175. <UserId>12345678</UserId>
  176. <OpTime>2018-11-22 12:11:07</OpTime>
  177. <Module>数据Owner</Module>
  178. </OpLogDetail>
  179. </OpLogDetails>
  180. <TotalCount>22</TotalCount>
  181. <RequestId>DC3A5360-67CC-4A0B-B5BD-734CBEAF8A23</RequestId>
  182. <Success>true</Success>
  183. </GetOpLogResponse>

JSON 格式

  1. {
  2. "OpLogDetails":{
  3. "OpLogDetail":[
  4. {
  5. "Database":"dmstest_database@dmstest.rds...【测试实例】",
  6. "Module":"数据查询",
  7. "OpContent":"【成功,行数:1】SELECT (data_length + index_length) AS store_capacity FROM information_schema.tables WHERE table_type = &#39;BASE TABLE&#39; AND `table_schema` = &#39;dmstest_database&#39; AND `table_name` = &#39;multi_db_multi_tbl&#39;",
  8. "OpTime":"2018-11-22 20:04:10",
  9. "UserId":12345678,
  10. "UserNick":"dmstest"
  11. },
  12. {
  13. "Database":"dmstest_database@dmstest.rds...【测试实例】",
  14. "Module":"数据查询",
  15. "OpContent":"【成功,行数:1】SELECT (data_length + index_length) AS store_capacity FROM information_schema.tables WHERE table_type = &#39;BASE TABLE&#39; AND `table_schema` = &#39;dmstest_database&#39; AND `table_name` = &#39;multi_db_multi_tbl&#39;",
  16. "OpTime":"2018-11-22 20:04:06",
  17. "UserId":12345678,
  18. "UserNick":"dmstest"
  19. },
  20. {
  21. "Database":"dmstest_database@dmstest.rds...【测试实例】",
  22. "Module":"数据查询",
  23. "OpContent":"【成功,行数:24】show topology FROM multi_db_multi_tbl",
  24. "OpTime":"2018-11-22 20:03:55",
  25. "UserId":12345678,
  26. "UserNick":"dmstest"
  27. },
  28. {
  29. "Database":"dmstest_database@dmstest.rds...【测试实例】",
  30. "Module":"数据查询",
  31. "OpContent":"【成功,行数:1】SELECT (data_length + index_length) AS store_capacity FROM information_schema.tables WHERE table_type = &#39;BASE TABLE&#39; AND `table_schema` = &#39;dmstest_database&#39; AND `table_name` = &#39;user_log3&#39;",
  32. "OpTime":"2018-11-22 20:02:59",
  33. "UserId":12345678,
  34. "UserNick":"dmstest"
  35. },
  36. {
  37. "Database":"dmstest_database@dmstest.rds...【测试实例】",
  38. "Module":"数据查询",
  39. "OpContent":"【成功,行数:1】SELECT (data_length + index_length) AS store_capacity FROM information_schema.tables WHERE table_type = &#39;BASE TABLE&#39; AND `table_schema` = &#39;dmstest_database&#39; AND `table_name` = &#39;user_log3&#39;",
  40. "OpTime":"2018-11-22 20:02:49",
  41. "UserId":12345678,
  42. "UserNick":"dmstest"
  43. },
  44. {
  45. "Database":"dmstest_database@dmstest.rds...【测试实例】",
  46. "Module":"数据查询",
  47. "OpContent":"【成功,行数:1】show CREATE TABLE user_log3",
  48. "OpTime":"2018-11-22 14:34:05",
  49. "UserId":12345678,
  50. "UserNick":"dmstest"
  51. },
  52. {
  53. "Database":"dmstest_database@dmstest.rds...【测试实例】",
  54. "Module":"数据查询",
  55. "OpContent":"【成功,行数:9】SELECT `TABLE_NAME` FROM information_schema.tables WHERE TABLE_TYPE = &#39;BASE TABLE&#39; AND table_schema = &#39;dmstest_database&#39;",
  56. "OpTime":"2018-11-22 14:33:54",
  57. "UserId":12345678,
  58. "UserNick":"dmstest"
  59. },
  60. {
  61. "Database":"dmstest_database@dmstest.rds...【测试实例】",
  62. "Module":"任务管理",
  63. "OpContent":"新增SQL任务,任务号:5486",
  64. "OpTime":"2018-11-22 14:26:57",
  65. "UserId":12345678,
  66. "UserNick":"dmstest"
  67. },
  68. {
  69. "Database":"dmstest_database@dmstest.rds...【测试实例】",
  70. "Module":"任务管理",
  71. "OpContent":"新增SQL任务,任务号:5485",
  72. "OpTime":"2018-11-22 14:23:55",
  73. "UserId":12345678,
  74. "UserNick":"dmstest"
  75. },
  76. {
  77. "Database":"dmstest_database@dmstest.rds...【测试实例】",
  78. "Module":"任务管理",
  79. "OpContent":"新增SQL任务,任务号:5484",
  80. "OpTime":"2018-11-22 14:23:30",
  81. "UserId":12345678,
  82. "UserNick":"dmstest"
  83. },
  84. {
  85. "Database":"dmstest_database@dmstest.rds...【测试实例】",
  86. "Module":"任务管理",
  87. "OpContent":"新增SQL任务,任务号:5483",
  88. "OpTime":"2018-11-22 14:23:11",
  89. "UserId":12345678,
  90. "UserNick":"dmstest"
  91. },
  92. {
  93. "Database":"dmstest_database@dmstest.rds...【测试实例】",
  94. "Module":"数据查询",
  95. "OpContent":"【成功,行数:1】show CREATE TABLE multi_db_single_tbl",
  96. "OpTime":"2018-11-22 14:22:30",
  97. "UserId":12345678,
  98. "UserNick":"dmstest"
  99. },
  100. {
  101. "Database":"dmstest_database@dmstest.rds...【测试实例】",
  102. "Module":"数据查询",
  103. "OpContent":"【成功,行数:2】SELECT `TABLE_NAME` FROM information_schema.tables WHERE TABLE_TYPE = &#39;BASE TABLE&#39; AND table_schema = &#39;dmstest_database&#39;",
  104. "OpTime":"2018-11-22 14:22:15",
  105. "UserId":12345678,
  106. "UserNick":"dmstest"
  107. },
  108. {
  109. "Database":"dmstest_database@dmstest.rds...【测试实例】",
  110. "Module":"数据查询",
  111. "OpContent":"【成功,行数:2】SELECT `TABLE_NAME` FROM information_schema.tables WHERE TABLE_TYPE = &#39;BASE TABLE&#39; AND table_schema = &#39;dmstest_database&#39;",
  112. "OpTime":"2018-11-22 14:19:31",
  113. "UserId":12345678,
  114. "UserNick":"dmstest"
  115. },
  116. {
  117. "Database":"dmstest_database@dmstest.rds...【测试实例】",
  118. "Module":"任务管理",
  119. "OpContent":"新增SQL任务,任务号:5482",
  120. "OpTime":"2018-11-22 14:19:25",
  121. "UserId":12345678,
  122. "UserNick":"dmstest"
  123. },
  124. {
  125. "Database":"dmstest_database@dmstest.rds...【测试实例】",
  126. "Module":"数据查询",
  127. "OpContent":"【成功,行数:1】SELECT `TABLE_NAME` FROM information_schema.tables WHERE TABLE_TYPE = &#39;BASE TABLE&#39; AND table_schema = &#39;dmstest_database&#39;",
  128. "OpTime":"2018-11-22 14:18:57",
  129. "UserId":12345678,
  130. "UserNick":"dmstest"
  131. },
  132. {
  133. "Database":"dmstest_database@dmstest.rds...【测试实例】",
  134. "Module":"任务管理",
  135. "OpContent":"新增SQL任务,任务号:5481",
  136. "OpTime":"2018-11-22 14:18:46",
  137. "UserId":12345678,
  138. "UserNick":"dmstest"
  139. },
  140. {
  141. "Database":"dmstest_database@dmstest.rds...【测试实例】",
  142. "Module":"数据查询",
  143. "OpContent":"【成功,行数:0】SELECT `TABLE_NAME` FROM information_schema.tables WHERE TABLE_TYPE = &#39;BASE TABLE&#39; AND table_schema = &#39;dmstest_database&#39;",
  144. "OpTime":"2018-11-22 14:04:13",
  145. "UserId":12345678,
  146. "UserNick":"dmstest"
  147. },
  148. {
  149. "Database":"dmstest_database@dmstest.rds...【测试实例】",
  150. "Module":"数据查询",
  151. "OpContent":"【成功,行数:0】SELECT `TABLE_NAME` FROM information_schema.tables WHERE TABLE_TYPE = &#39;BASE TABLE&#39; AND table_schema = &#39;dmstest_database&#39;",
  152. "OpTime":"2018-11-22 14:04:08",
  153. "UserId":12345678,
  154. "UserNick":"dmstest"
  155. },
  156. {
  157. "Database":"dmstest_database@dmstest.rds...【测试实例】",
  158. "Module":"数据查询",
  159. "OpContent":"【成功,行数:0】SELECT `TABLE_NAME` FROM information_schema.tables WHERE TABLE_TYPE = &#39;BASE TABLE&#39; AND table_schema = &#39;dmstest_database&#39;",
  160. "OpTime":"2018-11-22 12:11:41",
  161. "UserId":12345678,
  162. "UserNick":"dmstest"
  163. },
  164. {
  165. "Database":"dmstest_database@dmstest.rds...【测试实例】",
  166. "Module":"数据Owner",
  167. "OpContent":"管理员或DBA编辑库OWNER,库名:dmstest_database@dmstest.rds...【测试实例】",
  168. "OpTime":"2018-11-22 12:11:14",
  169. "UserId":12345678,
  170. "UserNick":"dmstest"
  171. },
  172. {
  173. "Database":"dmstest_prod_database@dmstest.rds...【测试实例】",
  174. "Module":"数据Owner",
  175. "OpContent":"管理员或DBA编辑库OWNER,库名:dmstest_prod_database@dmstest.rds...【测试实例】",
  176. "OpTime":"2018-11-22 12:11:07",
  177. "UserId":12345678,
  178. "UserNick":"dmstest"
  179. }
  180. ]
  181. },
  182. "RequestId":"47D56208-DB1D-4FD3-BE32-300E43185488",
  183. "Success":true,
  184. "TotalCount":22
  185. }

异常返回示例

XML 格式

  1. <Error>
  2. <RequestId>87A77FAE-F357-4CA7-8CCC-8D7ECEB06F2E</RequestId>
  3. <HostId>dms-enterprise.aliyuncs.com</HostId>
  4. <Code>InvalidParameterValid</Code>
  5. <Message>PageSize [3] illegal</Message>
  6. </Error>

JSON 格式

  1. {
  2. "Code":"InvalidParameterValid",
  3. "HostId":"dms-enterprise.aliyuncs.com",
  4. "Message":"PageSize [3] illegal",
  5. "RequestId":"0772DD0E-C5E8-467C-BEE7-245373745A18"
  6. }

sdk示例

  1. from aliyunsdkcore.client import AcsClient
  2. from aliyunsdkdms_enterprise.request.v20181101.GetOpLogRequest import GetOpLogRequest
  3. client = AcsClient(
  4. "<your-access-key-id>",
  5. "<your-access-key-secret>",
  6. "<your-region-id>"
  7. )
  8. request = GetOpLogRequest()
  9. request.set_Tid("请输入你的企业租户id")
  10. request.set_StartTime("2018-11-20 00:00:00")
  11. request.set_EndTime("2018-11-23 00:00:00")
  12. request.set_PageNumber(1)
  13. request.set_PageSize(50)
  14. response = client.do_action_with_exception(request)
  15. print response

错误码

查看本产品错误码