NAME
Twilio::Rest::Voice::V1::IpRecord - The IpRecord resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $ip_record = $client->voice->v1->ip_records->create($ip_address, \%options);
for my $ip_record ($client->voice->v1->ip_records->read({}, 20)) {
...
}
my $ip_record = $client->voice->v1->ip_records($sid)->fetch;
$client->voice->v1->ip_records($sid)->update(\%options);
$client->voice->v1->ip_records($sid)->delete;
DESCRIPTION
IP Records hold information about the IP addresses and ranges (CIDR blocks) that your traffic will be associated with.
This file holds IpRecordList, IpRecordPage, IpRecordContext and IpRecordInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
IpRecordList
Returned by $client->voice->v1->ip_records. See also Twilio::ListResource.
create
my $ip_record = $client->voice->v1->ip_records->create($ip_address, \%options);
Returns a IpRecordInstance.
The required values are:
The options are:
cidr_prefix_length-
An integer representing the length of the CIDR prefix to use with this IP address. By default the entire IP address is used, which for IPv4 is value 32.
friendly_name-
A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long.
read
my @records = $client->voice->v1->ip_records->read(\%options, $limit, $page_size);
Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->voice->v1->ip_records->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->voice->v1->ip_records->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->voice->v1->ip_records->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->voice->v1->ip_records->get_context($sid);
Returns a IpRecordContext, and makes no request.
IpRecordPage
A Twilio::Page of IpRecordInstance objects.
records_key
build_instance
Used by Twilio::Page.
IpRecordContext
Returned by $client->voice->v1->ip_records($sid). It makes no request until one of these methods is called.
fetch
my $ip_record = $client->voice->v1->ip_records($sid)->fetch;
Returns a IpRecordInstance.
update
my $ip_record = $client->voice->v1->ip_records($sid)->update(\%options);
Returns a IpRecordInstance.
The options are:
friendly_name-
A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long.
delete
$client->voice->v1->ip_records($sid)->delete;
Returns true.
IpRecordInstance
See also Twilio::InstanceResource.
It has fetch, update and delete, which work as they do on the context.
Its fields are:
- account_sid
-
The SID of the Account that created the IP Record resource.
- cidr_prefix_length
-
An integer representing the length of the CIDR prefix to use with this IP address. By default the entire IP address is used, which for IPv4 is value 32.
- date_created
-
The date and time in GMT that 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 that 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.
- ip_address
-
An IP address in dotted decimal notation, IPv4 only.
- sid
-
The unique string that we created to identify the IP Record resource.
- 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.