# ASN ## Get ASN Overview. `intel.asn.get(ASNasn, ASNGetParams**kwargs) -> ASN` **get** `/accounts/{account_id}/intel/asn/{asn}` Gets an overview of the Autonomous System Number (ASN) and a list of subnets for it. ### Parameters - `account_id: str` Identifier. - `asn: ASN` ### Returns - `int` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) asn = client.intel.asn.get( asn=0, account_id="023e105f4ecef8ad9ca31a8372d0c353", ) print(asn) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "success": true, "result": 0 } ``` # Subnets ## Get ASN Subnets `intel.asn.subnets.get(ASNasn, SubnetGetParams**kwargs) -> SubnetGetResponse` **get** `/accounts/{account_id}/intel/asn/{asn}/subnets` Get ASN Subnets. ### Parameters - `account_id: str` Identifier. - `asn: ASN` ### Returns - `class SubnetGetResponse: …` - `asn: Optional[ASN]` - `count: Optional[float]` Total results returned based on your search parameters. - `ip_count_total: Optional[int]` - `page: Optional[float]` Current page within paginated list of results. - `per_page: Optional[float]` Number of results per page of results. - `subnets: Optional[List[str]]` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) subnet = client.intel.asn.subnets.get( asn=0, account_id="023e105f4ecef8ad9ca31a8372d0c353", ) print(subnet.asn) ``` #### Response ```json { "asn": 0, "count": 1, "ip_count_total": 0, "page": 1, "per_page": 20, "subnets": [ "192.0.2.0/24", "2001:DB8::/32" ] } ``` ## Domain Types ### Subnet Get Response - `class SubnetGetResponse: …` - `asn: Optional[ASN]` - `count: Optional[float]` Total results returned based on your search parameters. - `ip_count_total: Optional[int]` - `page: Optional[float]` Current page within paginated list of results. - `per_page: Optional[float]` Number of results per page of results. - `subnets: Optional[List[str]]`