NAME
Twilio::Rest::Trunking::V1::Trunk::IpAccessControlList - The IpAccessControlList resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $ip_access_control_list = $client->trunking->v1->trunks($trunk_sid)->ip_access_control_lists->create($ip_access_control_list_sid);
for my $ip_access_control_list ($client->trunking->v1->trunks($trunk_sid)->ip_access_control_lists->read({}, 20)) {
...
}
my $ip_access_control_list = $client->trunking->v1->trunks($trunk_sid)->ip_access_control_lists($sid)->fetch;
$client->trunking->v1->trunks($trunk_sid)->ip_access_control_lists($sid)->delete;
DESCRIPTION
List of IP addresses for accessing a trunk
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->trunking->v1->trunks($trunk_sid)->ip_access_control_lists. See also Twilio::ListResource.
create
my $ip_access_control_list = $client->trunking->v1->trunks($trunk_sid)->ip_access_control_lists->create($ip_access_control_list_sid);
Associate an IP Access Control List with a Trunk. Returns a IpAccessControlListInstance.
The required values are:
$ip_access_control_list_sid-
The SID of the IP Access Control List that you want to associate with the trunk.
read
my @records = $client->trunking->v1->trunks($trunk_sid)->ip_access_control_lists->read(\%options, $limit, $page_size);
List all IP Access Control Lists for a Trunk. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->trunking->v1->trunks($trunk_sid)->ip_access_control_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)->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->trunking->v1->trunks($trunk_sid)->ip_access_control_lists->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->trunking->v1->trunks($trunk_sid)->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->trunking->v1->trunks($trunk_sid)->ip_access_control_lists($sid). It makes no request until one of these methods is called.
fetch
my $ip_access_control_list = $client->trunking->v1->trunks($trunk_sid)->ip_access_control_lists($sid)->fetch;
Returns a IpAccessControlListInstance.
delete
$client->trunking->v1->trunks($trunk_sid)->ip_access_control_lists($sid)->delete;
Remove an associated IP Access Control List from a Trunk. Returns true.
IpAccessControlListInstance
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 IpAccessControlList 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 IpAccessControlList resource.
- trunk_sid
-
The SID of the Trunk the resource is 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.