{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Updates the configuration of an existing Cloud Network Interconnect (CNI), including\nconnection parameters and routing settings.","properties":{"path":{"type":"object","properties":{"cni":{"type":"string","format":"uuid","description":"CNI ID to retrieve information about"},"account_id":{"$ref":"#/definitions/nsc_AccountTag"}},"required":["cni","account_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/nsc_Cni"}},"required":["path","body"],"additionalProperties":false,"definitions":{"nsc_AccountTag":{"description":"Customer account tag","type":"string"},"nsc_Cni":{"type":"object","properties":{"account":{"$ref":"#/definitions/nsc_AccountTag"},"bgp":{"$ref":"#/definitions/nsc_BgpControl"},"bgp_mode":{"$ref":"#/definitions/nsc_BgpMode"},"cust_ip":{"description":"Customer end of the point-to-point link\n\nThis should always be inside the same prefix as `p2p_ip`.","type":"string","examples":["192.168.3.4/31"]},"id":{"type":"string","format":"uuid"},"interconnect":{"description":"Interconnect identifier hosting this CNI","type":"string"},"magic":{"$ref":"#/definitions/nsc_MagicSettings"},"p2p_ip":{"description":"Cloudflare end of the point-to-point link","type":"string","examples":["192.168.3.4/31"]}},"required":["id","interconnect","account","p2p_ip","cust_ip","magic"]},"nsc_BgpControl":{"type":"object","properties":{"customer_asn":{"description":"ASN used on the customer end of the BGP session","type":"integer","minimum":0},"extra_prefixes":{"description":"Extra set of static prefixes to advertise to the customer's end of the session\nPrefixes containing host bits will be normalized to contain network bits only.\nDuplicates are not allowed.","type":"array","items":{"type":"string"},"examples":[["192.168.3.4/31"]]},"md5_key":{"description":"MD5 key to use for session authentication.\n\nNote that *this is not a security measure*. MD5 is not a valid security mechanism, and the\nkey is not treated as a secret value. This is *only* supported for preventing\nmisconfiguration, not for defending against malicious attacks.\n\nThe MD5 key, if set, must be of non-zero length and consist only of the following types of\ncharacter:\n\n* ASCII alphanumerics: `[a-zA-Z0-9]`\n* Special characters in the set `'!@#$%^&*()+[]{}<>/.,;:_-~`= \\|`\n\nIn other words, MD5 keys may contain any printable ASCII character aside from newline\n(0x0A), quotation mark (`\"`), vertical tab (0x0B), carriage return (0x0D), tab (0x09),\nform feed (0x0C), and the question mark (`?`). Requests specifying an MD5 key with one\nor more of these disallowed characters will be rejected.","type":["string","null"]}},"required":["customer_asn","extra_prefixes"]},"nsc_BgpMode":{"description":"The BGP mode for a CNI.\nOne of the following:\n* `dynamic_route_exchange`\n* `advertise_only`","type":"string","enum":["dynamic_route_exchange","advertise_only"]},"nsc_MagicSettings":{"type":"object","properties":{"conduit_name":{"type":"string"},"description":{"type":"string"},"mtu":{"type":"integer","minimum":0}},"required":["conduit_name","description","mtu"]}}},"name":"Modify stored information about a CNI object","id":"cloudflare.update_cni","example":{"path":{"cni":"00000000-0000-4000-8000-000000000000","account_id":"example"},"body":{"id":"00000000-0000-4000-8000-000000000000","interconnect":"example","account":"example","p2p_ip":"192.168.3.4/31","cust_ip":"192.168.3.4/31","magic":{"conduit_name":"example","description":"example","mtu":1}}},"maxRequests":1,"summary":false}}