Describe Route Tables
ec2_describe_route_tables | R Documentation |
Describes your route tables¶
Description¶
Describes your route tables. The default is to describe all your route tables. Alternatively, you can specify specific route table IDs or filter the results to include only the route tables that match specific criteria.
Each subnet in your VPC must be associated with a route table. If a subnet is not explicitly associated with any route table, it is implicitly associated with the main route table. This command does not return the subnet ID for implicit associations.
For more information, see Route tables in the Amazon VPC User Guide.
Usage¶
ec2_describe_route_tables(NextToken, MaxResults, DryRun, RouteTableIds,
Filters)
Arguments¶
NextToken |
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. |
MaxResults |
The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination. |
DryRun |
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
|
RouteTableIds |
The IDs of the route tables. |
Filters |
The filters.
|
Value¶
A list with the following syntax:
list(
RouteTables = list(
list(
Associations = list(
list(
Main = TRUE|FALSE,
RouteTableAssociationId = "string",
RouteTableId = "string",
SubnetId = "string",
GatewayId = "string",
AssociationState = list(
State = "associating"|"associated"|"disassociating"|"disassociated"|"failed",
StatusMessage = "string"
)
)
),
PropagatingVgws = list(
list(
GatewayId = "string"
)
),
RouteTableId = "string",
Routes = list(
list(
DestinationCidrBlock = "string",
DestinationIpv6CidrBlock = "string",
DestinationPrefixListId = "string",
EgressOnlyInternetGatewayId = "string",
GatewayId = "string",
InstanceId = "string",
InstanceOwnerId = "string",
NatGatewayId = "string",
TransitGatewayId = "string",
LocalGatewayId = "string",
CarrierGatewayId = "string",
NetworkInterfaceId = "string",
Origin = "CreateRouteTable"|"CreateRoute"|"EnableVgwRoutePropagation",
State = "active"|"blackhole",
VpcPeeringConnectionId = "string",
CoreNetworkArn = "string"
)
),
Tags = list(
list(
Key = "string",
Value = "string"
)
),
VpcId = "string",
OwnerId = "string"
)
),
NextToken = "string"
)
Request syntax¶
svc$describe_route_tables(
NextToken = "string",
MaxResults = 123,
DryRun = TRUE|FALSE,
RouteTableIds = list(
"string"
),
Filters = list(
list(
Name = "string",
Values = list(
"string"
)
)
)
)
Examples¶
## Not run:
# This example describes the specified route table.
svc$describe_route_tables(
RouteTableIds = list(
"rtb-1f382e7d"
)
)
## End(Not run)