action threatjammer_query_ip_address_network_information_v1_datacenter_ip_ip_address { label: "Get the IPv4 or IPv6 prefix of the IP address given." description: "### What\nObtain the IPv4 or IPv6 prefix and the Datacenter information of the IP address passed as a parameter.\n\n### Parameters\nThe endpoint accepts only the following parameter in the path:\n- ``ip_address``: (Mandatory) The IPv4 or IPv6 address to be queried.\n\n### Result\n- The result is a JSON object with the following structure:\n - ``self``: the URI to individual IPv4 prefix.\n - ``datacenter_id``: the URI to query the full details of the Datacenter.\n - ``score``: The risk score of the prefix. It ranges from 0 to 99.\n - ``risk``: The risk of the prefix. The allowed values are: LOW, MEDIUM, HIGH. It's a human readable representation of the score.\n - ``min_score``: The minimum risk score of the prefix. It ranges from 0 to 99.\n - ``max_score``: The maximum risk score of the prefix. It ranges from 0 to 99.\n - ``ip_abuse_total``: The total number of IPs that have been reported as abuse in the range.\n\n\n### Errors\nThe endpoint will return the following errors:\n- a `404 Not Found` error if the prefix information was not found.\n- a `422 Unprocessable Entity` error if the IP address is malformed.\n\nIt will also return the API Global errors described in the API description." provider: threatjammer method: GET path: "/v1/datacenter/ip/{ip_address}" encoding: json input: { type: "object" properties: { ip_address: { type: "string" format: "ipvanyaddress" } } required: ["ip_address"] additionalProperties: false } output: { type: "object" required: ["datacenter"] properties: { datacenter: { type: "string" } ip_abuse_total: { type: "integer" } max_score: { type: "integer" } min_score: { type: "integer" } risk: { type: "string" enum: ["UNKNOWN", "LOW", "MEDIUM", "HIGH"] } score: { type: "integer" } self: { type: "string" } } } }