NAME

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

SYNOPSIS

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

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

DESCRIPTION

This file holds NetworkAccessProfileList, NetworkAccessProfilePage, NetworkAccessProfileContext and NetworkAccessProfileInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

NetworkAccessProfileList

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

create

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

Create a new Network Access Profile. Returns a NetworkAccessProfileInstance.

The options are:

networks

List of Network SIDs that this Network Access Profile will allow connections to. An array reference.

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->network_access_profiles->read(\%options, $limit, $page_size);

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

stream

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

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

page

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

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

get_page

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

Fetches the page at a URL given by Twilio.

get_context

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

Returns a NetworkAccessProfileContext, and makes no request.

NetworkAccessProfilePage

A Twilio::Page of NetworkAccessProfileInstance objects.

records_key

build_instance

Used by Twilio::Page.

NetworkAccessProfileContext

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

fetch

my $network_access_profile = $client->supersim->v1->network_access_profiles($sid)->fetch;

Fetch a Network Access Profile instance from your account. Returns a NetworkAccessProfileInstance.

update

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

Updates the given properties of a Network Access Profile in your account. Returns a NetworkAccessProfileInstance.

The options are:

unique_name

The new unique name of the Network Access Profile.

networks

my $list = $object->networks;

my $context = $object->networks($sid);

See Twilio::Rest::Supersim::V1::NetworkAccessProfile::NetworkAccessProfileNetwork.

NetworkAccessProfileInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

The SID of the Account that the Network Access Profile 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.

No description in the specification.

sid

The unique string that identifies the Network Access Profile resource.

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 Network Access Profile 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.