NAME
Twilio::Rest::Supersim::V1::Sim - The Sim resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $sim = $client->supersim->v1->sims->create($iccid, $registration_code);
for my $sim ($client->supersim->v1->sims->read({}, 20)) {
...
}
my $sim = $client->supersim->v1->sims($sid)->fetch;
$client->supersim->v1->sims($sid)->update(\%options);
DESCRIPTION
Individual IoT Super SIMs
This file holds SimList, SimPage, SimContext and SimInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
SimList
Returned by $client->supersim->v1->sims. See also Twilio::ListResource.
create
my $sim = $client->supersim->v1->sims->create($iccid, $registration_code);
Register a Super SIM to your Account. Returns a SimInstance.
The required values are:
$iccid-
The ICCID of the Super SIM to be added to your Account.
$registration_code-
The 10-digit code required to claim the Super SIM for your Account.
read
my @records = $client->supersim->v1->sims->read(\%options, $limit, $page_size);
Retrieve a list of Super SIMs from your account. Returns the records as a list, fetching as many pages as it needs.
The options are:
fleet-
The SID or unique name of the Fleet to which a list of Sims are assigned.
iccid-
The ICCID associated with a Super SIM to filter the list by. Passing this parameter will always return a list containing zero or one SIMs.
status-
The status of the Sim resources to read. Can be
new,ready,active,inactive, orscheduled. One ofnew,ready,active,inactiveorscheduled.
stream
my $stream = $client->supersim->v1->sims->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->supersim->v1->sims->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->supersim->v1->sims->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->supersim->v1->sims->get_context($sid);
Returns a SimContext, and makes no request.
SimPage
A Twilio::Page of SimInstance objects.
records_key
build_instance
Used by Twilio::Page.
SimContext
Returned by $client->supersim->v1->sims($sid). It makes no request until one of these methods is called.
fetch
my $sim = $client->supersim->v1->sims($sid)->fetch;
Fetch a Super SIM instance from your account. Returns a SimInstance.
update
my $sim = $client->supersim->v1->sims($sid)->update(\%options);
Updates the given properties of a Super SIM instance from your account. Returns a SimInstance.
The options are:
account_sid-
The SID of the Account to which the Sim resource should belong. The Account SID can only be that of the requesting Account or that of a Subaccount of the requesting Account. Only valid when the Sim resource's status is new.
callback_method-
The HTTP method we should use to call
callback_url. Can be:GETorPOSTand the default is POST. One ofGETorPOST. callback_url-
The URL we should call using the
callback_methodafter an asynchronous update has finished. fleet-
The SID or unique name of the Fleet to which the SIM resource should be assigned.
status-
One of
ready,activeorinactive. unique_name-
An application-defined string that uniquely identifies the resource. It can be used in place of the resource's
sidin the URL to address the resource.
billing_periods
my $list = $object->billing_periods;
See Twilio::Rest::Supersim::V1::Sim::BillingPeriod.
sim_ip_addresses
my $list = $object->sim_ip_addresses;
See Twilio::Rest::Supersim::V1::Sim::SimIpAddress.
SimInstance
See also Twilio::InstanceResource.
It has fetch, update, billing_periods and sim_ip_addresses, which work as they do on the context.
Its fields are:
- account_sid
-
The SID of the Account that the Super SIM belongs to.
- 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.
- fleet_sid
-
The unique ID of the Fleet configured for this SIM.
- iccid
-
The ICCID associated with the SIM.
- links
-
No description in the specification.
- sid
-
The unique string that identifies the Sim resource.
- status
-
One of
new,ready,active,inactiveorscheduled. - unique_name
-
An application-defined string that uniquely identifies the resource. It can be used in place of the resource's
sidin the URL to address the resource. - url
-
The absolute URL of the Sim 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.