NAME
Twilio::Rest::Api::V2010::Account::Sip::Domain::CredentialListMapping - The CredentialListMapping resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $credential_list_mapping = $client->sip->domains($domain_sid)->credential_list_mappings->create($credential_list_sid);
for my $credential_list_mapping ($client->sip->domains($domain_sid)->credential_list_mappings->read({}, 20)) {
...
}
my $credential_list_mapping = $client->sip->domains($domain_sid)->credential_list_mappings($sid)->fetch;
$client->sip->domains($domain_sid)->credential_list_mappings($sid)->delete;
DESCRIPTION
Credential lists associated with a SIP Domain
This file holds CredentialListMappingList, CredentialListMappingPage, CredentialListMappingContext and CredentialListMappingInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
CredentialListMappingList
Returned by $client->sip->domains($domain_sid)->credential_list_mappings. See also Twilio::ListResource.
create
my $credential_list_mapping = $client->sip->domains($domain_sid)->credential_list_mappings->create($credential_list_sid);
Create a CredentialListMapping resource for an account. Returns a CredentialListMappingInstance.
The required values are:
$credential_list_sid-
A 34 character string that uniquely identifies the CredentialList resource to map to the SIP domain.
read
my @records = $client->sip->domains($domain_sid)->credential_list_mappings->read(\%options, $limit, $page_size);
Read multiple CredentialListMapping resources from an account. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->sip->domains($domain_sid)->credential_list_mappings->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->sip->domains($domain_sid)->credential_list_mappings->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->sip->domains($domain_sid)->credential_list_mappings->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->sip->domains($domain_sid)->credential_list_mappings->get_context($sid);
Returns a CredentialListMappingContext, and makes no request.
CredentialListMappingPage
A Twilio::Page of CredentialListMappingInstance objects.
records_key
build_instance
Used by Twilio::Page.
CredentialListMappingContext
Returned by $client->sip->domains($domain_sid)->credential_list_mappings($sid). It makes no request until one of these methods is called.
fetch
my $credential_list_mapping = $client->sip->domains($domain_sid)->credential_list_mappings($sid)->fetch;
Fetch a single CredentialListMapping resource from an account. Returns a CredentialListMappingInstance.
delete
$client->sip->domains($domain_sid)->credential_list_mappings($sid)->delete;
Delete a CredentialListMapping resource from an account. Returns true.
CredentialListMappingInstance
See also Twilio::InstanceResource.
It has fetch and delete, which work as they do on the context.
Its fields are:
- account_sid
-
The unique id of the Account that is responsible for this resource.
- date_created
-
The date that this resource was created, given as GMT in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
The date that this resource was last updated, given as GMT in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- domain_sid
-
The unique string that is created to identify the SipDomain resource.
- friendly_name
-
A human readable descriptive text for this resource, up to 64 characters long.
- sid
-
A 34 character string that uniquely identifies this resource.
- uri
-
The URI for this resource, relative to
https://api.twilio.com
CONSTRUCTORS
new
Objects here come from the methods above, so there is no need to call new directly.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.