Menu

Rate this page:

Thanks for rating this page!

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

SIP IpAddress Resource

IpAddress resources describe the IP addresses that have access to the SIP Domain.

SipIpAddress properties

Names in PHP format
sid
sid<IP> Not PII

A 34 character string that uniquely identifies this resource.

accountSid
sid<AC> Not PII

The unique id of the Account that is responsible for this resource.

friendlyName
string Not PII

A human readable descriptive text for this resource, up to 64 characters long.

ipAddress
string Not PII

An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today.

cidrPrefixLength
integer Not PII

An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used.

ipAccessControlListSid
sid<AL> Not PII

The unique id of the IpAccessControlList resource that includes this resource.

dateCreated
date_time<rfc2822> Not PII

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

dateUpdated
date_time<rfc2822> Not PII

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

uri
uri Not PII

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

Create a SipIpAddress resource

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

You can add up to 100 IP addresses to an IpAccessControlList.

ip_address must be a complete IP address; wildcards are not supported.

Parameters
Names in None format
account_sid
Required
post sid<AC> Not PII

The unique id of the Account responsible for this resource.

ip_access_control_list_sid
Required
post sid<AL> Not PII

The IpAccessControlList Sid with which to associate the created IpAddress resource.

friendly_name
Required
post string Not PII

A human readable descriptive text for this resource, up to 64 characters long.

ip_address
Required
post string Not PII

An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today.

cidr_prefix_length
Optional
post integer Not PII

An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used.

Example 1
        
        
        
        

        Fetch a SipIpAddress resource

        get
        https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json
        Parameters
        Names in None format
        account_sid
        Required
        get sid<AC> Not PII

        The unique id of the Account responsible for this resource.

        ip_access_control_list_sid
        Required
        get sid<AL> Not PII

        The IpAccessControlList Sid that identifies the IpAddress resources to fetch.

        sid
        Required
        get sid<IP> Not PII

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

        Example 1
              
              
              
              

              Read multiple SipIpAddress resources

              get
              https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json
              Parameters
              Names in None format
              account_sid
              Required
              get sid<AC> Not PII

              The unique id of the Account responsible for this resource.

              ip_access_control_list_sid
              Required
              get sid<AL> Not PII

              The IpAccessControlList Sid that identifies the IpAddress resources to read.

              Example 1
                    
                    
                    
                    

                    Update a SipIpAddress resource

                    post
                    https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json
                    Parameters
                    Names in None format
                    account_sid
                    Required
                    post sid<AC> Not PII

                    The unique id of the Account responsible for this resource.

                    ip_access_control_list_sid
                    Required
                    post sid<AL> Not PII

                    The IpAccessControlList Sid that identifies the IpAddress resources to update.

                    sid
                    Required
                    post sid<IP> Not PII

                    A 34 character string that identifies the IpAddress resource to update.

                    ip_address
                    Optional
                    post string Not PII

                    An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today.

                    friendly_name
                    Optional
                    post string Not PII

                    A human readable descriptive text for this resource, up to 64 characters long.

                    cidr_prefix_length
                    Optional
                    post integer Not PII

                    An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used.

                    Example 1
                          
                          
                          
                          

                          Delete a SipIpAddress resource

                          delete
                          https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json

                          An HTTP 204 response with no response body indicates successful deletion.

                          Parameters
                          Names in None format
                          account_sid
                          Required
                          delete sid<AC> Not PII

                          The unique id of the Account responsible for this resource.

                          ip_access_control_list_sid
                          Required
                          delete sid<AL> Not PII

                          The IpAccessControlList Sid that identifies the IpAddress resources to delete.

                          sid
                          Required
                          delete sid<IP> Not PII

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

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