NAME

Twilio::Rest::Supersim::V1::Fleet - The Fleet resource

SYNOPSIS

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

my $fleet = $client->supersim->v1->fleets->create($network_access_profile, \%options);
for my $fleet ($client->supersim->v1->fleets->read({}, 20)) {
  ...
}
my $fleet = $client->supersim->v1->fleets($sid)->fetch;
$client->supersim->v1->fleets($sid)->update(\%options);

DESCRIPTION

Configure shared settings inherited by all Super SIMs assigned to the Fleet

This file holds FleetList, FleetPage, FleetContext and FleetInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

FleetList

Returned by $client->supersim->v1->fleets. See also Twilio::ListResource.

create

my $fleet = $client->supersim->v1->fleets->create($network_access_profile, \%options);

Create a Fleet. Returns a FleetInstance.

The required values are:

$network_access_profile

The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to.

The options are:

data_enabled

Defines whether SIMs in the Fleet are capable of using 2G/3G/4G/LTE/CAT-M data connectivity. Defaults to true.

data_limit

The total data usage (download and upload combined) in Megabytes that each Super SIM assigned to the Fleet can consume during a billing period (normally one month). Value must be between 1MB (1) and 2TB (2,000,000). Defaults to 1GB (1,000).

ip_commands_method

A string representing the HTTP method to use when making a request to ip_commands_url. Can be one of POST or GET. Defaults to POST. One of GET or POST.

ip_commands_url

The URL that will receive a webhook when a Super SIM in the Fleet is used to send an IP Command from your device to a special IP address. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored.

sms_commands_enabled

Defines whether SIMs in the Fleet are capable of sending and receiving machine-to-machine SMS via Commands. Defaults to true.

sms_commands_method

A string representing the HTTP method to use when making a request to sms_commands_url. Can be one of POST or GET. Defaults to POST. One of GET or POST.

sms_commands_url

The URL that will receive a webhook when a Super SIM in the Fleet is used to send an SMS from your device to the SMS Commands number. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored.

unique_name

An application-defined string that uniquely identifies the resource. It can be used in place of the resource's sid in the URL to address the resource.

read

my @records = $client->supersim->v1->fleets->read(\%options, $limit, $page_size);

Retrieve a list of Fleets from your account. Returns the records as a list, fetching as many pages as it needs.

The options are:

network_access_profile

The SID or unique name of the Network Access Profile that controls which cellular networks the Fleet's SIMs can connect to.

stream

my $stream = $client->supersim->v1->fleets->stream(\%options, $limit, $page_size);

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

page

my $page = $client->supersim->v1->fleets->page(\%options, $page_size, $page_token, $page_number);

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

get_page

my $page = $client->supersim->v1->fleets->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->supersim->v1->fleets->get_context($sid);

Returns a FleetContext, and makes no request.

FleetPage

A Twilio::Page of FleetInstance objects.

records_key

build_instance

Used by Twilio::Page.

FleetContext

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

fetch

my $fleet = $client->supersim->v1->fleets($sid)->fetch;

Fetch a Fleet instance from your account. Returns a FleetInstance.

update

my $fleet = $client->supersim->v1->fleets($sid)->update(\%options);

Updates the given properties of a Super SIM Fleet instance from your account. Returns a FleetInstance.

The options are:

data_limit

The total data usage (download and upload combined) in Megabytes that each Super SIM assigned to the Fleet can consume during a billing period (normally one month). Value must be between 1MB (1) and 2TB (2,000,000). Defaults to 1GB (1,000).

ip_commands_method

A string representing the HTTP method to use when making a request to ip_commands_url. Can be one of POST or GET. Defaults to POST. One of GET or POST.

ip_commands_url

The URL that will receive a webhook when a Super SIM in the Fleet is used to send an IP Command from your device to a special IP address. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored.

network_access_profile

The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to.

sms_commands_method

A string representing the HTTP method to use when making a request to sms_commands_url. Can be one of POST or GET. Defaults to POST. One of GET or POST.

sms_commands_url

The URL that will receive a webhook when a Super SIM in the Fleet is used to send an SMS from your device to the SMS Commands number. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored.

unique_name

An application-defined string that uniquely identifies the resource. It can be used in place of the resource's sid in the URL to address the resource.

FleetInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

The SID of the Account that created the Fleet resource.

data_enabled

Defines whether SIMs in the Fleet are capable of using 2G/3G/4G/LTE/CAT-M data connectivity. Defaults to true.

data_limit

The total data usage (download and upload combined) in Megabytes that each Super SIM assigned to the Fleet can consume during a billing period (normally one month). Value must be between 1MB (1) and 2TB (2,000,000). Defaults to 250MB.

data_metering

Must be payg.

date_created

The date and time in GMT when the resource was created specified in ISO 8601 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 ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

ip_commands_method

A string representing the HTTP method to use when making a request to ip_commands_url. Can be one of POST or GET. Defaults to POST. One of GET or POST.

ip_commands_url

The URL that will receive a webhook when a Super SIM in the Fleet is used to send an IP Command from your device to a special IP address. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored.

network_access_profile_sid

The SID of the Network Access Profile that controls which cellular networks the Fleet's SIMs can connect to.

sid

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

sms_commands_enabled

Defines whether SIMs in the Fleet are capable of sending and receiving machine-to-machine SMS via Commands. Defaults to false.

sms_commands_method

A string representing the HTTP method to use when making a request to sms_commands_url. Can be one of POST or GET. Defaults to POST. One of GET or POST.

sms_commands_url

The URL that will receive a webhook when a Super SIM in the Fleet is used to send an SMS from your device to the SMS Commands number. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored.

unique_name

An application-defined string that uniquely identifies the resource. It can be used in place of the resource's sid in the URL to address the resource.

url

The absolute URL of the Fleet 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.