• 文档
  • 控制台
  • 登录
  • 立即注册
    目前不支持用户自主注册,如需注册账号,请联系400-080-1100
日志监控 API参考手册
最近更新时间:2023-04-16 17:00:00

2 操作审计

2.1 GetServiceList

 调用 GetServiceList 接口查询接入日志的服务列表。

2.1.1 使用说明

 GET https://{endpoint}/manage/actiontrial/v1.0/service/list

2.1.2 请求参数

 无

2.1.3 返回数据

image.png

 表2-1 Data 字段说明

image.png

2.1.4 示例

 1. 请求示例
 GET https://{endpoint}/manage/actiontrial/v1.0/service/list
 2. 正常返回示例
 HTTPS/1.1 200 OK
 Content-Type:application/json
 {
      "Data": [
      {
          "Name": "EBS"
      },
      {
          "Name": "hawkeye-api"
      },
      {
          "Name": "cmdb"
      },
      {
          "Name": "云资源中心"
      },
      {
          "Name": "cloudMonitorManager"
      },
      {
          "Name": "Port"
      },
      {
          "Name": "coc-inspection"
      },
      {
          "Name": "infra"
      },
      {
          "Name": "库存中心"
      },
      {
          "Name": "coc-cluster-monitor"
      },
      {
          "Name": "EIP"
      },
      {
          "Name": "订单中心"
      },
      {
          "Name": "Storage"
      },
      {
          "Name": "EipStorage"
      },
      {
          "Name": "DC"
      },
      {
          "Name": "MGT"
      },
      {
          "Name": "配额中心"
      },
      {
          "Name": "客戶中心"
      },
      {
          "Name": "组织架构"
      },
      {
          "Name": "电子券中心"
      },
      {
          "Name": "产商品中心"
      },
      {
          "Name": "账号中心"
      },
      {
          "Name": "系统管理"
      },
      {
          "Name": "消息中心"
      },
      {
          "Name": "计量中心"
      },
      {
          "Name": "工单系统"
      },
      {
          "Name": "Subnet"
      },
      {
          "Name": "SSO 后台管理"
      },
      {
          "Name": "账务管理"
      },
      {
          "Name": "VPC"
      },
      {
          "Name": "营销中心"
      },
      {
          "Name": "销售品中心"
      }
      ],
     "RequestId": "4b7ae6b8-6dd6-4e0c-9363-2c66db268f50",
     "TotalCount": 32,
     "PageSize": 32,
     "PageNumber": 1
 }

2.2 GetActiontrialLogList

 调用 GetActiontrialLogList 接口获取管理后台操作日志列表。

2.2.1 使用说明

 POST https://{endpoint}/manage/actiontrial/v1.0/log/list

2.2.2 请求参数

 表2-2 请求 Body 的参数

image.png

2.2.3 返回数据

image.png

 表2-3 Data 字段说明

image.png

image.png

image.png

2.2.4 示例

 1. 请求示例
 POST https://{endpoint}/manage/actiontrial/v1.0/log/list
 {
      "ServiceName": "infra",
      "PageSize": 1
 }
 2. 正常返回示例
 HTTPS/1.1 200 OK
 Content-Type:application/json
 {
     "RequestId":"",
     "Data":[
     {
         "ApiVersion":"1.0",
         "ErrorCode":"",
         "ErrorMsg":"",
         "EventApi":"RunningStatusStatistic",
         "EventId":"e80a2f5c216abab1272fc5ac1d0ac943",
         "EventLevel":"Info",
         "EventName":"运行状态统计",
         "EventRegion":"",
         "EventSource":"httpss://console.cloudop.vmcbc01.cecloudcs.com",
         "EventTime":"2022-09-07 11:32:12.000",
         "EventVersion":"1",
         "Host":"cbc1-18-19-master2",
         "Json":"{\"event_id\": \"e80a2f5c216abab1272fc5ac1d0ac943\", \"event_version\": \"1\", \"event_source\"\"httpss://console.cloudop.vmcbc01.cecloudcs.com\", \"source_ip_address\":\"10.32.83.117\",\"user_agent\":
 \"Mozilla/5.0(Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36\", \"service_name\": \"infra\",\"event_api\": \"RunningStatusStatistic\", \"event_name\": \"运行状态统计\", \"request_type\": \"GET\",
 \"api_version\": \"1.0\", \"event_level\": \"Info\", \"request_id\": \"e80a2f5c216abab1272fc5ac1d0ac943\", \"event_time\": \"2022/09/07
 11:32:12\", \"event_region\": \"\", \"resource_name\": \"概览\", \"request_parameters\": \"{\\\"request\\\":\\\"\\\\\\\"\\\\\\\"\\\"}\", \"result\": \"Success\", \"response_elements\":
 \"{\\\"code\\\":200,\\\"data\\\":{\\\"normalNumber\\\":6,\\\"normalRate\\\":\\\"75.00%\\\",\\\"abnormalNumber\\\":2,\\\"abnormalRate\\\":\\\"25.00%\\\",\\\"unknowNumber\\\":0,\\\"unknowRate\\\":\\\"0.00%\\\"},\\\"message\\\":\\\"\\\"}\", \"error_code\": \"\", \"error_message\": \"\", \"user_name\": \"管理员\", \"user_id\":
 \"admin\"}","Message":"2022/09/07 11:32:12 | \u001b[34mINFO\u001b[0m | [OP_ACTION_TRAIL_LOG] | {\"event_id\": \"e80a2f5c216abab1272fc5ac1d0ac943\", \"event_version\": \"1\", \"event_source\": \"httpss://console.cloudop.vmcbc01.cecloudcs.com\", \"source_ip_address\": \"10.32.83.117\", \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36\", \"service_name\": \"infra\", \"event_api\": \"RunningStatusStatistic\", \"event_name\": \"运行状态统计\", \"request_type\": \"GET\", \"api_version\": \"1.0\", \"event_level\": \"Info\", \"request_id\": \"e80a2f5c216abab1272fc5ac1d0ac943\", \"event_time\": \"2022/09/07 11:32:12\", \"event_region\": \"\", \"resource_name\": \"概览\", \"request_parameters\": \"{\\\"request\\\":\\\"\\\\\\\"\\\\\\\"\\\"}\", \"result\": \"Success\", \"response_elements\": \"{\\\"code\\\":200,\\\"data\\\"{\\\"normalNumber\\\":6,\\\"normalRate\\\":\\\"75.00%\\\",\\\"abnormalNumber\\\":2,\\\"abnormalRate\\\":\\\"25.00%\\\",\\\"unknowNumber\\\":0,\\\"unknowRate\\\":\\\"0.00%\\\"},\\\"message\\\":\\\"\\\"}\", \"error_code\": \"\", \"error_message\": \"\", \"user_name\": \"管理员\", \"user_id\": \"admin\"}","RequestId":"e80a2f5c216abab1272fc5ac1d0ac943","RequestParameters":"{\"request\":\"\\\"\\\"\"}",
         "RequestType":"GET",
         "ResourceName":"概览",
         "ResponseElements":"{\"code\":200,\"data\":{\"normalNumber\":6,\"normalRate\":\"75.00%\",\"abnormalNumber\":2,\"abnormalRate\":\"25.00%\",\"unknowNumber\":0,\"unknowRate\":\"0.00%\"},\"message\":\"\"}",
         "Result":"Success",
         "ServiceName":"infra",
         "SourceIpAddress":"10.32.83.117",
         "Timestamp":"2022-09-07 11:32:12.780",
         "UserAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36(KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36",
         "UserId":"admin",
         "UserName":"管理员"
     }
     ],
     "TotalCount":21,
     "PageSize":1,
     "PageNumber":1
 }

意见反馈

文档内容是否对您有帮助?

如您有其他疑问,您也可以通过在线客服来与我们联系探讨 在线客服

联系我们
回到顶部