NAME

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

SYNOPSIS

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

my $ip_address = $client->sip->ip_access_control_lists($ip_access_control_list_sid)->ip_addresses->create($friendly_name, $ip_address, \%options);
for my $ip_address ($client->sip->ip_access_control_lists($ip_access_control_list_sid)->ip_addresses->read({}, 20)) {
  ...
}
my $ip_address = $client->sip->ip_access_control_lists($ip_access_control_list_sid)->ip_addresses($sid)->fetch;
$client->sip->ip_access_control_lists($ip_access_control_list_sid)->ip_addresses($sid)->update(\%options);
$client->sip->ip_access_control_lists($ip_access_control_list_sid)->ip_addresses($sid)->delete;

DESCRIPTION

IP addresses that have access to a SIP Domain

This file holds IpAddressList, IpAddressPage, IpAddressContext and IpAddressInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

IpAddressList

Returned by $client->sip->ip_access_control_lists($ip_access_control_list_sid)->ip_addresses. See also Twilio::ListResource.

create

my $ip_address = $client->sip->ip_access_control_lists($ip_access_control_list_sid)->ip_addresses->create($friendly_name, $ip_address, \%options);

Create a new IpAddress resource. Returns a IpAddressInstance.

The required values are:

$friendly_name

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

$ip_address

An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today.

The options are:

cidr_prefix_length

An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used.

read

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

Read multiple IpAddress resources. Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->sip->ip_access_control_lists($ip_access_control_list_sid)->ip_addresses->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($ip_access_control_list_sid)->ip_addresses->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($ip_access_control_list_sid)->ip_addresses->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

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

Returns a IpAddressContext, and makes no request.

IpAddressPage

A Twilio::Page of IpAddressInstance objects.

records_key

build_instance

Used by Twilio::Page.

IpAddressContext

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

fetch

my $ip_address = $client->sip->ip_access_control_lists($ip_access_control_list_sid)->ip_addresses($sid)->fetch;

Read one IpAddress resource. Returns a IpAddressInstance.

update

my $ip_address = $client->sip->ip_access_control_lists($ip_access_control_list_sid)->ip_addresses($sid)->update(\%options);

Update an IpAddress resource. Returns a IpAddressInstance.

The options are:

cidr_prefix_length

An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used.

friendly_name

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

ip_address

An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today.

delete

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

Delete an IpAddress resource. Returns true.

IpAddressInstance

See also Twilio::InstanceResource.

It has fetch, update 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.

cidr_prefix_length

An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used.

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 for this resource, up to 255 characters long.

ip_access_control_list_sid

The unique id of the IpAccessControlList resource that includes this resource.

ip_address

An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today.

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.