# Configs # ASN ## Get list of ASNs `client.botnetFeed.configs.asn.get(ASNGetParamsparams, RequestOptionsoptions?): 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 - `params: ASNGetParams` - `account_id: string` Identifier. ### Returns - `ASNGetResponse` - `asn?: number` ### Example ```node import Cloudflare from 'cloudflare'; const client = new Cloudflare({ apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted }); const asn = await client.botnetFeed.configs.asn.get({ account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); console.log(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 `client.botnetFeed.configs.asn.delete(numberasnId, ASNDeleteParamsparams, RequestOptionsoptions?): ASNDeleteResponse` **delete** `/accounts/{account_id}/botnet_feed/configs/asn/{asn_id}` Delete an ASN from botnet threat feed for a given user. ### Parameters - `asnId: number` - `params: ASNDeleteParams` - `account_id: string` Identifier. ### Returns - `ASNDeleteResponse` - `asn?: number` ### Example ```node import Cloudflare from 'cloudflare'; const client = new Cloudflare({ apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted }); const asn = await client.botnetFeed.configs.asn.delete(0, { account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); console.log(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 - `ASNGetResponse` - `asn?: number` ### ASN Delete Response - `ASNDeleteResponse` - `asn?: number`