{"id":"ipv4-cidr-parse","version":"1.0.0","description":"Parse an IPv4 CIDR block into its network, broadcast, netmask, wildcard mask, usable host range and address counts.","supported_operations":["ipv4 cidr parse","ipv4 subnet info","ipv4 cidr to network details"],"unsupported_operations":["IPv6","host-address CIDR notation (host bits must be zero)","dotted netmask input"],"semantics":["cidr is dotted-decimal/prefix with prefix a canonical decimal integer 0-32 and no leading zeros except 0.","The network address must have host bits zero; otherwise the tool throws \"cidr host bits must be zero\".","total_count is the canonical decimal string 2^(32-prefix), the size of the block including network and broadcast.","usable_host_count follows RFC 3021: /32 has 1 usable host (itself), /31 has 2 (both addresses, no reserved network/broadcast), /0-/30 reserve the first address as network and the last as broadcast.","first_usable_host/last_usable_host equal network/broadcast for /31 and /32."],"limits":{"max_cidr_length":18,"prefix_min":0,"prefix_max":32},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["cidr"],"properties":{"cidr":{"type":"string","maxLength":18}}},"output_schema":{"type":"object","additionalProperties":false,"required":["network","broadcast","netmask","wildcard_mask","prefix","first_usable_host","last_usable_host","usable_host_count","total_count"],"properties":{"network":{"type":"string","maxLength":15},"broadcast":{"type":"string","maxLength":15},"netmask":{"type":"string","maxLength":15},"wildcard_mask":{"type":"string","maxLength":15},"prefix":{"type":"integer","minimum":0,"maximum":32},"first_usable_host":{"type":"string","maxLength":15},"last_usable_host":{"type":"string","maxLength":15},"usable_host_count":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"total_count":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"}}},"examples":[{"input":{"cidr":"192.168.1.0/24"},"output":{"network":"192.168.1.0","broadcast":"192.168.1.255","netmask":"255.255.255.0","wildcard_mask":"0.0.0.255","prefix":24,"first_usable_host":"192.168.1.1","last_usable_host":"192.168.1.254","usable_host_count":"254","total_count":"256"}}],"execute_url":"/v1/tools/ipv4-cidr-parse/versions/1.0.0/execute"}