{
  "id": "ipaddr",
  "kind": "datatype",
  "status": "stable",
  "name": "IP address (IPv4 or IPv6)",
  "doc": "Address of a network interface in the Internet Protocol: a 32-bit IPv4 address in dotted-decimal form (192.0.2.1) or a 128-bit IPv6 address in hexadecimal groups (2001:db8::1). Use this record for columns that mix both versions; ipv4 and ipv6 describe each form. The IP address of a user's device or connection can single out a person, so data protection laws such as the GDPR may treat it as personal data.",
  "children": [
    "ipv4",
    "ipv6"
  ],
  "is_pii": true,
  "categories": [
    "internet",
    "pii"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3}|(?:(?:[0-9A-Fa-f]{1,4}:){6}(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3})|::(?:[0-9A-Fa-f]{1,4}:){5}(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3})|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3})|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3})|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3})|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3})|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3})|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::))$",
  "examples": [
    {
      "value": "192.0.2.1",
      "description": "IPv4 address from the documentation range (RFC 5737)",
      "valid": true
    },
    {
      "value": "2001:db8::1",
      "description": "IPv6 address from the documentation prefix (RFC 3849)",
      "valid": true
    },
    {
      "value": "192.0.2.0/24",
      "description": "A network prefix, not an address",
      "valid": false
    },
    {
      "value": "192.0.2.256",
      "description": "The last part is larger than 255",
      "valid": false
    }
  ],
  "mappings": {
    "dpv": "pd:IPAddress",
    "google_dlp": "IP_ADDRESS",
    "presidio": "IP_ADDRESS",
    "purview": "IP address"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/IP_address"
    }
  ],
  "translations": {
    "ru": {
      "name": "IP-адрес (IPv4 или IPv6)",
      "doc": "Адрес сетевого интерфейса в протоколе IP версии 4 или 6."
    }
  },
  "detected_by": {
    "tools": [
      "awsglue",
      "azureailanguage",
      "collibra",
      "databricks",
      "dataiku",
      "dataprep",
      "googledlp",
      "ibmguardium",
      "metacrafter",
      "metacrafterpro",
      "metadata-guardian",
      "microsoftpurview",
      "nightfall",
      "openmetadata",
      "oracledatasafe",
      "presidio",
      "snowflake",
      "soda",
      "sqldatacatalog",
      "woodwork"
    ],
    "metacrafter_rules": [
      {
        "rule": "ipvaddr",
        "type": "field",
        "match": "text",
        "file": "common/internet.yaml"
      }
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/any/internet/ipaddr.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/internet/ipaddr.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/internet/ipaddr.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/ipaddr",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/ipaddr.json"
  }
}