EC2 Describe Subnets
Describes one or more of your subnets.
For more information, see Your VPC and subnets in the Amazon Virtual Private Cloud User Guide.
External Documentation
To learn more, visit the AWS documentation.
Basic Parameters
Parameter | Description |
---|---|
AWS Region(s) | Enter the desired AWS Region(s).To execute the action in multiple regions, provide a comma-separated list.For example: us-east-1,eu-west-2 .If you wish to run the action in all available regions, use the asterisk symbol (* ) instead. |
Subnet IDs | One or more subnet IDs.Default: Describes all your subnets. |
Advanced Parameters
Parameter | Description |
---|---|
Disable XML To JSON Auto Convert | When checked, XML responses are not automatically converted into JSON format. |
Dry Run | Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation . |
Filters | One or more filters.
|
Max Results | The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. |
Next Token | The token for the next page of results. |
Example Output
{
"Subnets": [
{
"AvailabilityZone": "us-east-1c",
"AvailableIpAddressCount": 251,
"CidrBlock": "10.0.1.0/24",
"DefaultForAz": false,
"MapPublicIpOnLaunch": false,
"State": "available",
"SubnetId": "subnet-9d4a7b6c",
"VpcId": "vpc-a01106c2"
}
]
}
Workflow Library Example
Preview this Workflow on desktop