{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates a new BGP filter profile for an account.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/magic_identifier"}},"required":["account_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/magic_create_bgp_filter_profile_request"}},"required":["path","body"],"additionalProperties":false,"definitions":{"magic_identifier":{"description":"Identifier","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"magic_create_bgp_filter_profile_request":{"type":"object","properties":{"description":{"description":"Description of the filter profile","type":"string","default":"","maxLength":1024,"examples":["Allowed corporate subnets from on-premises"]},"match_action":{"$ref":"#/definitions/magic_bgp_filter_match_action"},"name":{"description":"Friendly name for the filter profile","type":"string","maxLength":255,"minLength":1,"examples":["Allowed On-Prem Imports"]},"targets":{"description":"List of CIDR prefixes. Each entry may carry an optional suffix that specifies which prefix lengths to match relative to the prefix length N: '{X,Y}' matches prefix lengths in the inclusive range [X, Y] where N <= X <= Y <= max (max is 32 for IPv4, 128 for IPv6), '{X}' matches exactly length X (equivalent to {X,X}), '+' is shorthand for {N, max} (the prefix and all more-specific subnets, including at length N itself; valid even when N is the maximum length). Omit the suffix to match the prefix exactly at length N.","type":"array","items":{"description":"CIDR notation prefix with optional + or {X,Y} suffix","type":"string","examples":["10.0.0.0/8{8,32}"]},"maxItems":1000}},"required":["name","match_action","targets"]},"magic_bgp_filter_match_action":{"description":"Action to take when a route matches one of the targets in this profile","type":"string","enum":["allow","deny"],"examples":["allow"]}}},"name":"Create BGP Filter Profile","id":"cloudflare.magic-bgp-create-filter-profile","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{"name":"Allowed On-Prem Imports","match_action":"allow","targets":[]}},"maxRequests":1,"summary":false}}