Menu

Expand
Rate this page:

IpAccessControlList Resource

The IP Access Control List subresource contains the list of IP Access Control List instances associated with this Trunk. If an INVITE is received for a Trunk, the source IP address must be in one of the lists for the INVITE to be accepted.

This API endpoint will only allow you to list, add, and remove IP Access Control Lists to your SIP Trunk. In order to create, list, and delete IP Access Control List instances please see the core Twilio REST API. Check out the IP Access Control List reference docs.

IpAccessControlList properties

Resource Properties in REST API format
account_sid
sid<AC> Not PII

The SID of the Account that created the IpAccessControlList resource.

sid
sid<AL> Not PII

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

trunk_sid
sid<TK> Not PII

The SID of the Trunk the resource is associated with.

friendly_name
string Not PII

The string that you assigned to describe the resource.

date_created
date_time<iso8601> Not PII

The date and time in GMT when the resource was created specified in RFC 2822 format.

date_updated
date_time<iso8601> Not PII

The date and time in GMT when the resource was last updated specified in RFC 2822 format.

url
url Not PII

The absolute URL of the resource.

Create an IpAccessControlList resource

post
https://trunking.twilio.com/v1/Trunks/{TrunkSid}/IpAccessControlLists
Parameters
Parameters in REST API format
trunk_sid
Path
post sid<TK> Not PII

The SID of the Trunk to associate the IP Access Control List with.

ip_access_control_list_sid
Required
post sid<AL> Not PII

The SID of the IP Access Control List that you want to associate with the trunk.

Example 1
Loading Code Sample...
        
        

        Create Ip Access Control List

        Read multiple IpAccessControlList resources

        get
        https://trunking.twilio.com/v1/Trunks/{TrunkSid}/IpAccessControlLists
        Parameters
        Parameters in REST API format
        trunk_sid
        Path
        get sid<TK> Not PII

        The SID of the Trunk from which to read the IP Access Control Lists.

        Example 1
        Loading Code Sample...
              
              

              Read Ip Access Control List

              Delete an IpAccessControlList resource

              delete
              https://trunking.twilio.com/v1/Trunks/{TrunkSid}/IpAccessControlLists/{Sid}
              Parameters
              Parameters in REST API format
              trunk_sid
              Path
              delete sid<TK> Not PII

              The SID of the Trunk from which to delete the IP Access Control List.

              sid
              Path
              delete sid<AL> Not PII

              The unique string that we created to identify the IpAccessControlList resource to delete.

              Example 1
              Loading Code Sample...
                    
                    

                    Delete Ip Access Control List

                    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