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

account_sid
sid<AC> Not PII

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

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.

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.

friendly_name
string Not PII

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

ip_access_control_list_sid
sid<AL> Not PII

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

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.

sid
sid<IP> Not PII

A 34 character string that uniquely identifies this resource.

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
AccountSid
Required
post sid<AC> Not PII

The unique id of the Account responsible for this resource.

FriendlyName
Required
post string Not PII

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

IpAccessControlListSid
Required
post sid<AL> Not PII

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

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

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

      Fetch a SipIpAddress resource

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

      The unique id of the Account responsible for this resource.

      IpAccessControlListSid
      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
      Loading Code Sample...
          
          
          
          

          Read multiple SipIpAddress resources

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

          The unique id of the Account responsible for this resource.

          IpAccessControlListSid
          Required
          get sid<AL> Not PII

          The IpAccessControlList Sid that identifies the IpAddress resources to read.

          Example 1
          Loading Code Sample...
              
              
              
              

              Update a SipIpAddress resource

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

              The unique id of the Account responsible for this resource.

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

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

              FriendlyName
              Optional
              post string Not PII

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

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

              Example 1
              Loading Code Sample...
                  
                  
                  
                  

                  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
                  AccountSid
                  Required
                  delete sid<AC> Not PII

                  The unique id of the Account responsible for this resource.

                  IpAccessControlListSid
                  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
                  Loading Code Sample...
                      
                      
                      
                      

                      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.

                      Loading Code Sample...