search_available_phone_numbers
¶
search_available_phone_numbers(
*,
config_overrides: Optional[ChimeSDKVoiceClientConfig] = None,
area_code: Optional[String] = None,
city: Optional[String] = None,
country: Optional[Alpha2CountryCode] = None,
state: Optional[String] = None,
toll_free_prefix: Optional[TollFreePrefix] = None,
phone_number_type: Optional[PhoneNumberType] = None,
max_results: Optional[PhoneNumberMaxResults] = None,
next_token: Optional[String] = None,
) -> SearchAvailablePhoneNumbersResponse
Searches the provisioned phone numbers in an organization.
Parameters:
-
area_code(Optional[String], default:None) –Confines a search to just the phone numbers associated with the specified area code.
-
city(Optional[String], default:None) –Confines a search to just the phone numbers associated with the specified city.
-
country(Optional[Alpha2CountryCode], default:None) –Confines a search to just the phone numbers associated with the specified country.
-
state(Optional[String], default:None) –Confines a search to just the phone numbers associated with the specified state.
-
toll_free_prefix(Optional[TollFreePrefix], default:None) –Confines a search to just the phone numbers associated with the specified toll-free prefix.
-
phone_number_type(Optional[PhoneNumberType], default:None) –Confines a search to just the phone numbers associated with the specified phone number type, either local or toll-free.
-
max_results(Optional[PhoneNumberMaxResults], default:None) –The maximum number of results to return.
-
next_token(Optional[String], default:None) –The token used to return the next page of results.
Raises:
-
AccessDeniedException–You don't have the permissions needed to run this action.
-
BadRequestException–The input parameters don't match the service's restrictions.
-
ForbiddenException–The client is permanently forbidden from making the request.
-
ServiceFailureException–The service encountered an unexpected error.
-
ServiceUnavailableException–The service is currently unavailable.
-
ThrottledClientException–The number of customer requests exceeds the request rate limit.
-
UnauthorizedClientException–The client isn't authorized to request a resource.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_chime_sdk_voice/_services/chime_sdk_voice.py
5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 | |