Menu

Expand
Rate this page:

SourceIpMapping Resource

The SourceIpMappings resource describes the publicly-routable Static IP addresses that can be used to receive Termination traffic from a BYOC Carrier.

This resource requires that the Account has a Twilio Interconnect connection configured.

SourceIpMapping properties

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

The unique string that we created to identify the IP Record resource.

ip_record_sid
sid<IL> Not PII

The Twilio-provided string that uniquely identifies the IP Record resource to map from.

sip_domain_sid
sid<SD> Not PII

The SID of the SIP Domain that the IP Record is mapped to.

date_created
date_time<iso8601> Not PII

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

date_updated
date_time<iso8601> Not PII

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

url
url Not PII

The absolute URL of the resource.

Create a SourceIpMapping resource

post
https://voice.twilio.com/v1/SourceIpMappings
Parameters
Parameters in REST API format
ip_record_sid
Required
post sid<IL> Not PII

The Twilio-provided string that uniquely identifies the IP Record resource to map from.

sip_domain_sid
Required
post sid<SD> Not PII

The SID of the SIP Domain that the IP Record should be mapped to.

Example 1
Loading Code Sample...
        
        

        Create Source Ip Mapping

        Fetch a SourceIpMapping resource

        get
        https://voice.twilio.com/v1/SourceIpMappings/{Sid}
        Parameters
        Parameters in REST API format
        sid
        Path
        get sid<IB> Not PII

        The Twilio-provided string that uniquely identifies the IP Record resource to fetch.

        Example 1
        Loading Code Sample...
              
              

              Fetch Source Ip Mapping

              Read multiple SourceIpMapping resources

              get
              https://voice.twilio.com/v1/SourceIpMappings
              Example 1
              Loading Code Sample...
                    
                    

                    Read Source Ip Mapping

                    Update a SourceIpMapping resource

                    post
                    https://voice.twilio.com/v1/SourceIpMappings/{Sid}
                    Parameters
                    Parameters in REST API format
                    sid
                    Path
                    post sid<IB> Not PII

                    The Twilio-provided string that uniquely identifies the IP Record resource to update.

                    sip_domain_sid
                    Required
                    post sid<SD> Not PII

                    The SID of the SIP Domain that the IP Record should be mapped to.

                    Example 1
                    Loading Code Sample...
                          
                          

                          Update Source Ip Mapping

                          Delete a SourceIpMapping resource

                          delete
                          https://voice.twilio.com/v1/SourceIpMappings/{Sid}
                          Parameters
                          Parameters in REST API format
                          sid
                          Path
                          delete sid<IB> Not PII

                          The Twilio-provided string that uniquely identifies the IP Record resource to delete.

                          Example 1
                          Loading Code Sample...
                                
                                

                                Delete Source Ip Mapping

                                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