# Configs # ASN ## Get list of ASNs `botnet_feed.configs.asn.get(ASNGetParams**kwargs) -> ASNGetResponse` **get** `/accounts/{account_id}/botnet_feed/configs/asn` Gets a list of all ASNs registered for a user for the DDoS Botnet Feed API. ### Parameters - `account_id: str` Identifier. ### Returns - `class ASNGetResponse: …` - `asn: Optional[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.botnet_feed.configs.asn.get( account_id="023e105f4ecef8ad9ca31a8372d0c353", ) print(asn.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": { "asn": 13335 } } ``` ## Delete an ASN `botnet_feed.configs.asn.delete(intasn_id, ASNDeleteParams**kwargs) -> ASNDeleteResponse` **delete** `/accounts/{account_id}/botnet_feed/configs/asn/{asn_id}` Delete an ASN from botnet threat feed for a given user. ### Parameters - `account_id: str` Identifier. - `asn_id: int` ### Returns - `class ASNDeleteResponse: …` - `asn: Optional[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.botnet_feed.configs.asn.delete( asn_id=0, account_id="023e105f4ecef8ad9ca31a8372d0c353", ) print(asn.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": { "asn": 13335 } } ``` ## Domain Types ### ASN Get Response - `class ASNGetResponse: …` - `asn: Optional[int]` ### ASN Delete Response - `class ASNDeleteResponse: …` - `asn: Optional[int]`