Menu

Expand
Rate this page:

ConnectionPolicy Resource

The ConnectionPolicies resource describes a list of URI Entries that are used to route Origination traffic to a PSTN Carrier over a BYOC Trunk.

ConnectionPolicy properties

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

The SID of the Account that created the Connection Policy resource.

sid
sid<NY> Not PII

The unique string that we created to identify the Connection Policy resource.

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.

links
uri_map Not PII

The URLs of related resources.

Create a ConnectionPolicy resource

post
https://voice.twilio.com/v1/ConnectionPolicies
Parameters
Parameters in REST API format
friendly_name
Optional
post string Not PII

A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long.

Example 1
Loading Code Sample...
        
        

        Create Connection Policy

        Fetch a ConnectionPolicy resource

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

        The unique string that we created to identify the Connection Policy resource to fetch.

        Example 1
        Loading Code Sample...
              
              

              Fetch Connection Policy

              Read multiple ConnectionPolicy resources

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

                    Read Connection Policy

                    Update a ConnectionPolicy resource

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

                    The unique string that we created to identify the Connection Policy resource to update.

                    friendly_name
                    Optional
                    post string Not PII

                    A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long.

                    Example 1
                    Loading Code Sample...
                          
                          

                          Update Connection Policy

                          Delete a ConnectionPolicy resource

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

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

                          Example 1
                          Loading Code Sample...
                                
                                

                                Delete Connection Policy

                                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