Describes the specified origination phone number, or all the phone numbers in your account¶
Description¶
Describes the specified origination phone number, or all the phone numbers in your account.
If you specify phone number IDs, the output includes information for only the specified phone numbers. If you specify filters, the output includes information for only those phone numbers that meet the filter criteria. If you don't specify phone number IDs or filters, the output includes information for all phone numbers.
If you specify a phone number ID that isn't valid, an error is returned.
Usage¶
Arguments¶
-
PhoneNumberIdsThe unique identifier of phone numbers to find information about. This is an array of strings that can be either the PhoneNumberId or PhoneNumberArn.
If you are using a shared End User Messaging SMS resource then you must use the full Amazon Resource Name(ARN).
-
FiltersAn array of PhoneNumberFilter objects to filter the results.
-
NextTokenThe token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.
-
MaxResultsThe maximum number of results to return per each request.
-
OwnerUse
SELFto filter the list of phone numbers to ones your account owns or useSHAREDto filter on phone numbers shared with your account. TheOwnerandPhoneNumberIdsparameters can't be used at the same time.
Value¶
A list with the following syntax:
list(
PhoneNumbers = list(
list(
PhoneNumberArn = "string",
PhoneNumberId = "string",
PhoneNumber = "string",
Status = "PENDING"|"ACTIVE"|"ASSOCIATING"|"DISASSOCIATING"|"DELETED",
IsoCountryCode = "string",
MessageType = "TRANSACTIONAL"|"PROMOTIONAL",
NumberCapabilities = list(
"SMS"|"VOICE"|"MMS"|"RCS"
),
NumberType = "SHORT_CODE"|"LONG_CODE"|"TOLL_FREE"|"TEN_DLC"|"SIMULATOR",
MonthlyLeasingPrice = "string",
TwoWayEnabled = TRUE|FALSE,
TwoWayChannelArn = "string",
TwoWayChannelRole = "string",
SelfManagedOptOutsEnabled = TRUE|FALSE,
OptOutListName = "string",
InternationalSendingEnabled = TRUE|FALSE,
DeletionProtectionEnabled = TRUE|FALSE,
PoolId = "string",
RegistrationId = "string",
MessagingLimits = list(
RateLimits = list(
123
),
DailyMessageCaps = list(
123
)
),
CreatedTimestamp = as.POSIXct(
"2015-01-01"
)
)
),
NextToken = "string"
)
Request syntax¶
svc$describe_phone_numbers(
PhoneNumberIds = list(
"string"
),
Filters = list(
list(
Name = "status"|"iso-country-code"|"message-type"|"number-capability"|"number-type"|"two-way-enabled"|"self-managed-opt-outs-enabled"|"opt-out-list-name"|"deletion-protection-enabled"|"two-way-channel-arn",
Values = list(
"string"
)
)
),
NextToken = "string",
MaxResults = 123,
Owner = "SELF"|"SHARED"
)