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,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = 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.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return.
-
next_token(Optional[NextToken], default:None) –The token for the next page of results.
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
5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 | |