【问题标题】:Google Reports API activities.list gives ipAddress: 0.1.0.40Google Reports API activities.list 给出 ipAddress: 0.1.0.40
【发布时间】:2017-05-31 06:01:59
【问题描述】:

在从 Google Apps Admin SDK 中的 activity.list() 检索审核事件时,某些活动的 ipAddress 字段为 0.1.0.40 和 0.1.0.0。在什么情况下这可能是源 IP 地址,因为它们似乎是私有或受限 IP 地址?

 {
  "kind": "admin#reports#activities",
  "etag": "\"6KGrH_UY2JDZNpgjPKUOF8yJF1A/l6ZMtXXRXWtSeG8M3t2g4k5pUaY\"",
  "items": [
    {
      "kind": "admin#reports#activity",
      "id": {
        "time": "2016-12-28T11:23:26.269Z",
        "uniqueQualifier": "2877532833757184598",
        "applicationName": "drive",
        "customerId": "C01c818ge"
      },
       "etag": "\"6KGrH_UY2JDZNpgjPKUOF8yJF1A/7lASgpMTSWwMHfLg8I4-s07wD_Q\"",
      "actor": {
        "email": "def@abc.com",
        "profileId": "115227377397945077346"
      },
      "ipAddress": "0.1.0.40",
      "events": [
        {
          "type": "access",
          "name": "create",
          "parameters": [
            {
              "name": "primary_event",
              "boolValue": true
            },
            {
              "name": "owner",
              "value": "def@abc.com"
            },
            {
              "name": "doc_id",
              "value": "0ByoIcq_NoMgZDY19wc2RnZE0"
            },
            {
              "name": "doc_type",
              "value": "unknown"
            },
            {
              "name": "doc_title",
              "value": "Untitled"
            },
            {
              "name": "owner_is_team_drive",
              "boolValue": false
            }
          ]
        }
      ]
    }
  ]
}

【问题讨论】:

    标签: google-admin-sdk google-api-python-client


    【解决方案1】:

    从这个documentation,这里声明"ipAddress" 属性包含用户的IP 地址。从这个Activities: list,它包含执行操作的用户的IP 地址。这是用户登录 G Suite 时的互联网协议 (IP) 地址,它可能反映也可能不反映用户的实际位置。例如,IP 地址可以是用户的代理服务器地址或虚拟专用网络 (VPN) 地址。 API 支持 IPv4 和 IPv6。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-05-03
      • 2021-04-02
      • 2018-03-16
      • 1970-01-01
      • 1970-01-01
      • 2013-09-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多