action threatjammer_query_datacenter_prefixes_list_v1_datacenter_datacenter_id_prefi { label: "Get the list of IPv4 and IPv6 prefixes of the Datacenter given." description: "### What\nObtain the full list of IPv4 and IPv6 prefixes of the Datacenter passed as a parameter.\n\n### Parameters\nThe endpoint accepts only the following parameter in the path:\n- ``datacenter_id``: (Mandatory) The internal Datacenter ID to be queried.\n\n### Result\nThe result is a JSON object with the following structure:\n- ``self``: the URI of the API call\n- ``datacenter_id``: the URI to query the full details of the Datacenter.\n- ``prefixes_v4``: the list of IPv4 prefixes that belong to the Datacenter. Each element of the list is a JSON object with the following structure:\n\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- ``prefixes_v6``: the list of IPv6 prefixes that belong to the Datacenter. Each element of the list is a JSON object with the following structure:\n\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 Datacenter was not found.\n- a `422 Unprocessable Entity` error if the Datacenter number is malformed.\n\nIt will also return the API Global errors described in the API description." provider: threatjammer method: GET path: "/v1/datacenter/{datacenter_id}/prefixes" encoding: json input: { type: "object" properties: { datacenter_id: { type: "string" } } required: ["datacenter_id"] additionalProperties: false } output: { type: "object" required: ["prefixes_v4", "prefixes_v6", "self"] properties: { prefixes_v4: { type: "array" items: { 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" } } } } prefixes_v6: { type: "array" items: { type: "object" additionalProperties: true } } self: { type: "string" } } } }