NAME

Twilio::Rest::Api::V2010::Account::Sip::IpAccessControlList - The IpAccessControlList resource

SYNOPSIS

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

my $ip_access_control_list = $client->sip->ip_access_control_lists->create($friendly_name);
for my $ip_access_control_list ($client->sip->ip_access_control_lists->read({}, 20)) {
  ...
}
my $ip_access_control_list = $client->sip->ip_access_control_lists($sid)->fetch;
$client->sip->ip_access_control_lists($sid)->update($friendly_name);
$client->sip->ip_access_control_lists($sid)->delete;

DESCRIPTION

Access control lists of IP address resources

This file holds IpAccessControlListList, IpAccessControlListPage, IpAccessControlListContext and IpAccessControlListInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

IpAccessControlListList

Returned by $client->sip->ip_access_control_lists. See also Twilio::ListResource.

create

my $ip_access_control_list = $client->sip->ip_access_control_lists->create($friendly_name);

Create a new IpAccessControlList resource. Returns a IpAccessControlListInstance.

The required values are:

$friendly_name

A human readable descriptive text that describes the IpAccessControlList, up to 255 characters long.

read

my @records = $client->sip->ip_access_control_lists->read(\%options, $limit, $page_size);

Retrieve a list of IpAccessControlLists that belong to the account used to make the request. Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->sip->ip_access_control_lists->stream(\%options, $limit, $page_size);

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

page

my $page = $client->sip->ip_access_control_lists->page(\%options, $page_size, $page_token, $page_number);

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

get_page

my $page = $client->sip->ip_access_control_lists->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->sip->ip_access_control_lists->get_context($sid);

Returns a IpAccessControlListContext, and makes no request.

IpAccessControlListPage

A Twilio::Page of IpAccessControlListInstance objects.

records_key

build_instance

Used by Twilio::Page.

IpAccessControlListContext

Returned by $client->sip->ip_access_control_lists($sid). It makes no request until one of these methods is called.

fetch

my $ip_access_control_list = $client->sip->ip_access_control_lists($sid)->fetch;

Fetch a specific instance of an IpAccessControlList. Returns a IpAccessControlListInstance.

update

my $ip_access_control_list = $client->sip->ip_access_control_lists($sid)->update($friendly_name);

Rename an IpAccessControlList. Returns a IpAccessControlListInstance.

The required values are:

$friendly_name

A human readable descriptive text, up to 255 characters long.

delete

$client->sip->ip_access_control_lists($sid)->delete;

Delete an IpAccessControlList from the requested account. Returns true.

ip_addresses

my $list = $object->ip_addresses;

my $context = $object->ip_addresses($sid);

See Twilio::Rest::Api::V2010::Account::Sip::IpAccessControlList::IpAddress.

IpAccessControlListInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

The unique id of the Account that owns 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.

friendly_name

A human readable descriptive text, up to 255 characters long.

sid

A 34 character string that uniquely identifies this resource.

subresource_uris

A list of the IpAddress resources associated with this IP access control list 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.