list_ip_routes
async
¶
list_ip_routes(
directory_id: DirectoryId,
*,
config_overrides: Optional[AsyncDirectoryServiceClientConfig] = None,
next_token: Optional[NextToken] = None,
limit: Optional[Limit] = None,
) -> ListIpRoutesResult
Lists the address blocks that you have added to a directory.
Parameters:
-
directory_id(DirectoryId) –Identifier (ID) of the directory for which you want to retrieve the IP addresses.
-
next_token(Optional[NextToken], default:None) –The ListIpRoutes.NextToken value from a previous call to ListIpRoutes. Pass null if this is the first call.
-
limit(Optional[Limit], default:None) –Maximum number of items to return. If this value is zero, the maximum number of items is specified by the limitations of the operation.
Raises:
-
ClientException–A client exception has occurred.
-
EntityDoesNotExistException–The specified entity could not be found.
-
InvalidNextTokenException–The
NextTokenvalue is not valid. -
InvalidParameterException–One or more parameters are not valid.
-
ServiceException–An exception has occurred in Directory Service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To list IP routes The following example lists the address blocks that have been added to a specified directory.
Source code in docs_src/capo_directory_service/_services/async_directory_service.py
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 | |