action threatjammer_query_datacenter_prefix_information_v1_datacenter_prefix_post { label: "Get the IPv4 or IPv6 prefix of the CIDR given." description: "### What\nObtain the IPv4 or IPv6 prefix and the Datacenter information of the CIDR passed in the body as a POST method. This endpoint works around the problem of passing '/' addresses in the URI.\n\n### Parameters\nThe endpoint accepts only the following parameter in the body as a JSON object:\n- ``prefix``: (Mandatory) The CIDR v4 or v6 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 CIDR is malformed.\n\nIt will also return the API Global errors described in the API description." provider: threatjammer method: POST path: "/v1/datacenter/prefix" encoding: json input: { type: "object" required: ["prefix"] properties: { prefix: { type: "string" format: "ipvanynetwork" } } } 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" } } } }