NAME

Twilio::Rest::Trunking::V1::Trunk::CredentialList - The CredentialList resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

my $credential_list = $client->trunking->v1->trunks($trunk_sid)->credentials_lists->create($credential_list_sid);
for my $credential_list ($client->trunking->v1->trunks($trunk_sid)->credentials_lists->read({}, 20)) {
  ...
}
my $credential_list = $client->trunking->v1->trunks($trunk_sid)->credentials_lists($sid)->fetch;
$client->trunking->v1->trunks($trunk_sid)->credentials_lists($sid)->delete;

DESCRIPTION

List of credentials for accessing a trunk

This file holds CredentialListList, CredentialListPage, CredentialListContext and CredentialListInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

CredentialListList

Returned by $client->trunking->v1->trunks($trunk_sid)->credentials_lists. See also Twilio::ListResource.

create

my $credential_list = $client->trunking->v1->trunks($trunk_sid)->credentials_lists->create($credential_list_sid);

Returns a CredentialListInstance.

The required values are:

$credential_list_sid

The SID of the Credential List that you want to associate with the trunk. Once associated, we will authenticate access to the trunk against this list.

read

my @records = $client->trunking->v1->trunks($trunk_sid)->credentials_lists->read(\%options, $limit, $page_size);

Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->trunking->v1->trunks($trunk_sid)->credentials_lists->stream(\%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->trunking->v1->trunks($trunk_sid)->credentials_lists->page(\%options, $page_size, $page_token, $page_number);

Fetches one page, and returns a Twilio::Page.

get_page

my $page = $client->trunking->v1->trunks($trunk_sid)->credentials_lists->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->trunking->v1->trunks($trunk_sid)->credentials_lists->get_context($sid);

Returns a CredentialListContext, and makes no request.

CredentialListPage

A Twilio::Page of CredentialListInstance objects.

records_key

build_instance

Used by Twilio::Page.

CredentialListContext

Returned by $client->trunking->v1->trunks($trunk_sid)->credentials_lists($sid). It makes no request until one of these methods is called.

fetch

my $credential_list = $client->trunking->v1->trunks($trunk_sid)->credentials_lists($sid)->fetch;

Returns a CredentialListInstance.

delete

$client->trunking->v1->trunks($trunk_sid)->credentials_lists($sid)->delete;

Returns true.

CredentialListInstance

See also Twilio::InstanceResource.

It has fetch and delete, which work as they do on the context.

Its fields are:

account_sid

The SID of the Account that created the CredentialList resource.

date_created

The date and time in GMT when the resource was created specified in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_updated

The date and time in GMT when the resource was last updated specified in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

friendly_name

The string that you assigned to describe the resource.

sid

The unique string that we created to identify the CredentialList resource.

trunk_sid

The SID of the Trunk the credential list in associated with.

url

The absolute URL of the resource.

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.