These docs are for v2. Click to read the latest docs for v3.

Validate CIDR blocks

Check the format of your CIDR blocks. To validate, pass the CIDR block or an individual IP address in the cidrblock query parameter. Encode any slash characters as %2F.

Query Params
string
required

The CIDR block value you want to validate. This isn't the same as a cidrBlockId.

string

For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

Response
204

CIDR block is valid.

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!