メニュー

Expand
ページを評価:

NetworkAccessProfile Resource

NetworkAccessProfile resources control which public land mobile networks (PLMNs) your Super SIMs can connect to:

https://supersim.twilio.com/v1/NetworkAccessProfiles

A NetworkAccessProfile resource can be referenced in the API by either by its unique Sid or UniqueName:

https://supersim.twilio.com/v1/NetworkAccessProfiles/{Sid}
https://supersim.twilio.com/v1/NetworkAccessProfiles/{UniqueName}

Each NetworkAccessProfile (NAP) resource has a Networks subresource (NAP Networks):

https://supersim.twilio.com/v1/NetworkAccessProfiles/{Sid}/Networks

Each NAP Network resource represents a cellular network that Super SIMs can connect to - an allowed Network.

The NAP Network resources in the Networks subresource will be a subset of all of the Network resources available from the main Networks resource. You can add or remove NAP Network resources from the NAP Networks subresource at any time to change which cellular networks your Super SIMs can access.

The Super SIM Networks resource is a read-only resource which lists all of the cellular networks to which it is possible for Super SIMs to connect: it is a catalog of available networks for you to choose from. Once you’ve identified a cellular network you want to allow your Super SIMs to connect to, use its sid to add it to a NetworkAccessProfile resource’s Networks subresource. See these examples to learn how to add or remove NAP Network resources.

If your Super SIM has already attached to a network, authentication and authorization information may be cached in that network to allow devices to continue to use that network without re-authenticating. When you disable a network in a NAP, it may not take immediate effect for that Super SIM. The cached information for that Super SIM will need to expire before the Super SIM can no longer use that network. This may take up to a week, but varies by network.

To make use of a NetworkAccessProfile resource, it needs to be referenced by a Fleet resource. All of the Sim resources assigned to that Fleet will then be able to attach to the cellular networks allowed by the NetworkAccessProfile’s Networks subresource. A NetworkAccessProfile can be used by multiple Fleet resources.

See Forbidden networks for details on what happens when a device tries to attach to a mobile operator network not allowed by a NetworkAccessProfile resource.

Forbidden networks

The Networks subresource serves as an allow list of the cellular networks to which Super SIMs can connect. Network resources not present in the Networks subresource are therefore blocked (i.e., forbidden).

When your device scans for available cellular networks to attempt to attach to, it may find a number of cellular networks. Super SIMs can only attach to a cellular network if the Network resource that represents the cellular network is present in the Networks subresource. If your device explicitly tries to attach to a cellular network that has not been allowed, the network will return the error 5004 / ROAMING_NOT_ALLOWED.

There will be some cellular networks for which there is no Network resource available. As such there is no way to add them to the list of allowed cellular networks in a NetworkAccessProfile resource. No Super SIMs will be able to attach to these cellular networks.

NetworkAccessProfile properties

Resource Properties in REST API format
sid
sid<HA> Not PII

The unique string that identifies the Network Access Profile resource.

unique_name
文字列 Not PII

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.

account_sid
sid<AC> Not PII

The SID of the Account that the Network Access Profile belongs to.

date_created
date_time<iso8601> Not PII

The date and time in GMT when the resource was created specified in ISO 8601 format.

date_updated
date_time<iso8601> Not PII

The date and time in GMT when the resource was last updated specified in ISO 8601 format.

url
url Not PII

The absolute URL of the Network Access Profile resource.

links
uri_map Not PII

Create a NetworkAccessProfile resource

post
https://supersim.twilio.com/v1/NetworkAccessProfiles
パラメーター
Parameters in REST API format
unique_name
オプション
post 文字列 Not PII

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.

networks
オプション
post sid_like<HW>[] Not PII

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

例 1
        
        
        

        Fetch a NetworkAccessProfile resource

        GET
        https://supersim.twilio.com/v1/NetworkAccessProfiles/{Sid}
        パラメーター
        Parameters in REST API format
        sid
        Path
        GET sid_like<HA> Not PII

        The SID of the Network Access Profile resource to fetch.

        例 1
              
              
              

              Read multiple NetworkAccessProfile resources

              GET
              https://supersim.twilio.com/v1/NetworkAccessProfiles
              例 1
                    
                    
                    

                    Update a NetworkAccessProfile resource

                    post
                    https://supersim.twilio.com/v1/NetworkAccessProfiles/{Sid}
                    パラメーター
                    Parameters in REST API format
                    sid
                    Path
                    post sid_like<HA> Not PII

                    The SID of the Network Access Profile to update.

                    unique_name
                    オプション
                    post 文字列 Not PII

                    The new unique name of the Network Access Profile.

                    例 1
                          
                          
                          
                          ページを評価:

                          ヘルプが必要ですか?

                          We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Community Forums or browsing the Twilio tag on Stack Overflow.

                                
                                
                                

                                フィードバックくださりありがとうございます!

                                We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

                                Sending your feedback...
                                🎉 Thank you for your feedback!
                                Something went wrong. Please try again.

                                Thanks for your feedback!

                                Refer us and get $10 in 3 simple steps!

                                ステップ1

                                Get link

                                Get a free personal referral link here

                                ステップ2:

                                Give $10

                                Your user signs up and upgrade using link

                                ステップ3

                                Get $10

                                1,250 free SMSes
                                OR 1,000 free voice mins
                                OR 12,000 chats
                                OR more