list_ip_routes
¶
list_ip_routes(
directory_id: DirectoryId,
*,
config_overrides: Optional[DirectoryServiceClientConfig] = 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/directory_service.py
4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 | |