Menu

Expand
Rate this page:

SIP IpAddress Resource

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

SIP IpAddress properties

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

A 34 character string that uniquely identifies this resource.

account_sid
sid<AC> Not PII

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

friendly_name
string Not PII

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

ip_address
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
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.

ip_access_control_list_sid
sid<AL> Not PII

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

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.

uri
uri Not PII

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

Create a SIP IpAddress 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
Parameters in REST API format
account_sid
Path
post sid<AC> Not PII

The unique id of the Account responsible for this resource.

ip_access_control_list_sid
Path
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 255 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
Loading Code Sample...
        
        
        

        Create a SIP IpAddress resource

        Fetch a SIP IpAddress resource

        get
        https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{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.

        ip_access_control_list_sid
        Path
        get sid<AL> Not PII

        The IpAccessControlList Sid that identifies the IpAddress resources to fetch.

        sid
        Path
        get sid<IP> Not PII

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

        Example 1
        Loading Code Sample...
              
              
              

              Fetch a SIP IpAddress resource

              Read multiple SIP IpAddress resources

              get
              https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.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.

              ip_access_control_list_sid
              Path
              get sid<AL> Not PII

              The IpAccessControlList Sid that identifies the IpAddress resources to read.

              Example 1
              Loading Code Sample...
                    
                    
                    

                    Read multiple SIP IpAddress resources

                    Update a SIP IpAddress resource

                    post
                    https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{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.

                    ip_access_control_list_sid
                    Path
                    post sid<AL> Not PII

                    The IpAccessControlList Sid that identifies the IpAddress resources to update.

                    sid
                    Path
                    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 255 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
                    Loading Code Sample...
                          
                          
                          

                          Update a SIP IpAddress resource

                          Delete a SIP IpAddress 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
                          Parameters in REST API format
                          account_sid
                          Path
                          delete sid<AC> Not PII

                          The unique id of the Account responsible for this resource.

                          ip_access_control_list_sid
                          Path
                          delete sid<AL> Not PII

                          The IpAccessControlList Sid that identifies the IpAddress resources to delete.

                          sid
                          Path
                          delete sid<IP> Not PII

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

                          Example 1
                          Loading Code Sample...
                                
                                
                                

                                Delete a SIP IpAddress 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