Menu

Expand
Rate this page:

SIP IpAccessControlList Resource

IpAccessControlList resources contain the Access Control List (ACL), which is a list of IpAddress resources that describe the IP addresses with access to the SIP Domain. Requests to the SIP Domain from an IP address that is not in the ACL are blocked.

After you create an IpAccessControlList resource, you will need to map it to your SIP domain for it to take effect. You can apply the same list to more than one SIP Domain.

Your Account can have up to 1,000 IpAccessControlList resources. Each IpAccessControlList resource can contain up to 100 entries (which could be CIDR blocks).

SipIpAccessControlList properties

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

A 34 character string that uniquely identifies this resource.

account_sid
sid<AC> Not PII

The unique id of the Account that owns this resource.

friendly_name
string Not PII

A human readable descriptive text, up to 255 characters long.

date_created
date_time<rfc2822> Not PII

The date that this resource was created, given as GMT in RFC 2822 format.

date_updated
date_time<rfc2822> Not PII

The date that this resource was last updated, given as GMT in RFC 2822 format.

subresource_uris
uri_map Not PII

A list of the IpAddress resources associated with this IP access control list resource.

uri
uri Not PII

The URI for this resource, relative to https://api.twilio.com

Create a SIP IpAccessControlList resource

post
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json

The ACL that is created is empty and has no IP addresses.

You will need to add IpAddress resources to the list for it to have any effect.

Parameters
Parameters in REST API format
account_sid
Path
post sid<AC> Not PII

The unique id of the Account responsible for this resource.

friendly_name
Required
post string Not PII

A human readable descriptive text that describes the IpAccessControlList, up to 255 characters long.

Example 1
Loading Code Sample...
        
        
        

        Create a SIP IpAccessControlList resource

        Fetch a SIP IpAccessControlList resource

        get
        https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json
        Parameters
        Parameters in REST API format
        account_sid
        Path
        get sid<AC> Not PII

        The unique id of the Account responsible for this resource.

        sid
        Path
        get sid<AL> Not PII

        A 34 character string that uniquely identifies the resource to fetch.

        Example 1
        Loading Code Sample...
              
              
              

              Fetch a SIP IpAccessControlList resource

              Read multiple SIP IpAccessControlList resources

              get
              https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json
              Parameters
              Parameters in REST API format
              account_sid
              Path
              get sid<AC> Not PII

              The unique id of the Account responsible for this resource.

              Example 1
              Loading Code Sample...
                    
                    
                    

                    Read multiple SIP IpAccessControlList resources

                    Update a SIP IpAccessControlList resource

                    post
                    https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json
                    Parameters
                    Parameters in REST API format
                    account_sid
                    Path
                    post sid<AC> Not PII

                    The unique id of the Account responsible for this resource.

                    sid
                    Path
                    post sid<AL> Not PII

                    A 34 character string that uniquely identifies the resource to udpate.

                    friendly_name
                    Required
                    post string Not PII

                    A human readable descriptive text, up to 255 characters long.

                    Example 1
                    Loading Code Sample...
                          
                          
                          

                          Update a SIP IpAccessControlList resource

                          Delete a SIP IpAccessControlList resource

                          delete
                          https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json
                          Parameters
                          Parameters in REST API format
                          account_sid
                          Path
                          delete sid<AC> Not PII

                          The unique id of the Account responsible for this resource.

                          sid
                          Path
                          delete sid<AL> Not PII

                          A 34 character string that uniquely identifies the resource to delete.

                          Example 1
                          Loading Code Sample...
                                
                                
                                

                                Delete a SIP IpAccessControlList resource

                                Rate this page:

                                Need some help?

                                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 Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.

                                Loading Code Sample...
                                      
                                      
                                      

                                      Thank you for your feedback!

                                      Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

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

                                      Thanks for your feedback!

                                      thanks-feedback-gif