get_network_routes
¶
get_network_routes(
global_network_id: GlobalNetworkId,
route_table_identifier: RouteTableIdentifier,
*,
config_overrides: Optional[NetworkManagerClientConfig] = None,
exact_cidr_matches: Optional[ConstrainedStringList] = None,
longest_prefix_matches: Optional[ConstrainedStringList] = None,
subnet_of_matches: Optional[ConstrainedStringList] = None,
supernet_of_matches: Optional[ConstrainedStringList] = None,
prefix_list_ids: Optional[ConstrainedStringList] = None,
states: Optional[RouteStateList] = None,
types: Optional[RouteTypeList] = None,
destination_filters: Optional[FilterMap] = None,
) -> GetNetworkRoutesResponse
Gets the network routes of the specified global network.
Parameters:
-
global_network_id(GlobalNetworkId) –The ID of the global network.
-
route_table_identifier(RouteTableIdentifier) –The ID of the route table.
-
exact_cidr_matches(Optional[ConstrainedStringList], default:None) –An exact CIDR block.
-
longest_prefix_matches(Optional[ConstrainedStringList], default:None) –The most specific route that matches the traffic (longest prefix match).
-
subnet_of_matches(Optional[ConstrainedStringList], default:None) –The routes with a subnet that match the specified CIDR filter.
-
supernet_of_matches(Optional[ConstrainedStringList], default:None) –The routes with a CIDR that encompasses the CIDR filter. Example: If you specify 10.0.1.0/30, then the result returns 10.0.1.0/29.
-
prefix_list_ids(Optional[ConstrainedStringList], default:None) –The IDs of the prefix lists.
-
states(Optional[RouteStateList], default:None) –The route states.
-
types(Optional[RouteTypeList], default:None) –The route types.
-
destination_filters(Optional[FilterMap], default:None) –Filter by route table destination. Possible Values: TRANSIT_GATEWAY_ATTACHMENT_ID, RESOURCE_ID, or RESOURCE_TYPE.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–The request has failed due to an internal error.
-
ResourceNotFoundException–The specified resource could not be found.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_networkmanager/_services/network_manager.py
4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 | |