{"command":{"effect":"read","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Lists and filters subnets in an account.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/tunnel_account_id"}},"required":["account_id"],"additionalProperties":false},"query":{"type":"object","properties":{"name":{"$ref":"#/definitions/tunnel_subnet_query_name","description":"If set, only list subnets with the given name"},"comment":{"$ref":"#/definitions/tunnel_subnet_query_comment"},"network":{"description":"If set, only list the subnet whose network exactly matches the given CIDR.","allOf":[{"$ref":"#/definitions/tunnel_ip_network_encoded"}]},"existed_at":{"$ref":"#/definitions/tunnel_existed_at"},"address_family":{"$ref":"#/definitions/tunnel_address_family","description":"If set, only include subnets in the given address family - `v4` or `v6`"},"is_default_network":{"description":"If `true`, only include default subnets. If `false`, exclude default subnets subnets. If not set, all subnets will be included.","type":"boolean"},"is_deleted":{"description":"If `true`, only include deleted subnets. If `false`, exclude deleted subnets. If not set, all subnets will be included.","type":"boolean"},"sort_order":{"description":"Sort order of the results. `asc` means oldest to newest, `desc` means newest to oldest. If not set, they will not be in any particular order.","type":"string","enum":["asc","desc"]},"subnet_types":{"description":"If set, the types of subnets to include, separated by comma.","type":"string","enum":["cloudflare_source","initial_resolved_ip","warp"],"examples":["cloudflare_source,warp"]},"per_page":{"$ref":"#/definitions/tunnel_per_page"},"page":{"$ref":"#/definitions/tunnel_page_number"}},"required":[],"additionalProperties":false}},"required":["path"],"additionalProperties":false,"definitions":{"tunnel_account_id":{"description":"Cloudflare account ID","type":"string","maxLength":32,"examples":["699d98642c564d2e855e9661899b7252"]},"tunnel_subnet_query_name":{"description":"If set, only list subnets with the given name","type":"string","examples":["IPv4%20Cloudflare%20Source%20IPs"]},"tunnel_subnet_query_comment":{"description":"If set, only list subnets with the given comment.","type":"string","examples":["example%20comment"]},"tunnel_ip_network_encoded":{"description":"IP/CIDR range in URL-encoded format","type":"string","examples":["172.16.0.0%2F16"]},"tunnel_existed_at":{"description":"If provided, include only resources that were created (and not deleted) before this time. URL encoded.","type":"string","examples":["2019-10-12T07%3A20%3A50.52Z"]},"tunnel_address_family":{"description":"IP address family, either `v4` (IPv4) or `v6` (IPv6)","type":"string","enum":["v4","v6"],"examples":["v4"]},"tunnel_per_page":{"description":"Number of results to display.","type":"number","maximum":1000,"minimum":1},"tunnel_page_number":{"description":"Page number of paginated results.","type":"number","default":1,"minimum":1}}},"name":"List Subnets","id":"cloudflare.zero-trust-networks-subnets-list","example":{"path":{"account_id":"699d98642c564d2e855e9661899b7252"}},"maxRequests":1,"summary":false}}