action threatjammer_query_asn_v1_asn_number_get { label: "Get the Autonomous System details of the AS number given." description: "### What\nObtain the full details of the Autonomous System Number (ASN) passed as a parameter.\n\n### Parameters\nThe endpoint accepts only the following parameter in the path:\n- ``number``: (Mandatory) The ASN number 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- ``name``: the name of the Autonomous System as registered in the registries databases.\n- ``description``: the description of the Autonomous System as registered in the registries databases.\n- ``country_code``: the ISO 3166-1 alpha-2 country code of the Autonomous System.\n- ``registry_date``: the date of registration of the Autonomous System in the registry. The format is YYYY-MM-DD.\n- ``registry``: the URI of the registry where the Autonomous System is registered.\n- ``status``: the status of the Autonomous System as stored in the registry.\n- ``prefixes``: the URI to the list of prefixes that belong to the Autonomous System.\n- ``score``: The risk score of the Autonomous System. It ranges from 0 to 99.\n- ``risk``: The risk of the Autonomous System. The allowed values are: LOW, MEDIUM, HIGH. It's a human readable representation of the score.\n\n\n### Errors\nThe endpoint will return the following errors:\n- a `404 Not Found` error if the AS was not found.\n- a `422 Unprocessable Entity` error if the AS number is malformed.\n\nIt will also return the API Global errors described in the API description." provider: threatjammer method: GET path: "/v1/asn/{number}" encoding: json input: { type: "object" properties: { number: { type: "integer" } } required: ["number"] additionalProperties: false } output: { type: "object" required: ["country_code", "name", "prefixes", "registry", "status"] properties: { country_code: { type: "string" enum: ["AF", "AP", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "CV", "KH", "CM", "CA", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW", "ZZ", "EU", "RESERVED BY RFC6793"] } description: { type: "string" } name: { type: "string" } prefixes: { type: "string" } registry: { type: "string" } registry_date: { type: "string" } risk: { type: "string" enum: ["UNKNOWN", "LOW", "MEDIUM", "HIGH"] } score: { type: "integer" } self: { type: "string" } status: { type: "string" } } } }