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
|
The SID of the Account that created the Connection Policy resource. |
sid
|
The unique string that we created to identify the Connection Policy resource. |
friendly_name
|
The string that you assigned to describe the resource. |
date_created
|
The date and time in GMT when the resource was created specified in RFC 2822 format. |
date_updated
|
The date and time in GMT when the resource was last updated specified in RFC 2822 format. |
url
|
The absolute URL of the resource. |
links
|
The URLs of related resources. |
Create a ConnectionPolicy resource
https://voice.twilio.com/v1/ConnectionPolicies
Parameters
Parameters in REST API format | |
---|---|
friendly_name
Optional
|
A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. |
Example 1
Fetch a ConnectionPolicy resource
https://voice.twilio.com/v1/ConnectionPolicies/{Sid}
Parameters
Parameters in REST API format | |
---|---|
sid
Path
|
The unique string that we created to identify the Connection Policy resource to fetch. |
Example 1
Read multiple ConnectionPolicy resources
https://voice.twilio.com/v1/ConnectionPolicies
Example 1
Update a ConnectionPolicy resource
https://voice.twilio.com/v1/ConnectionPolicies/{Sid}
Parameters
Parameters in REST API format | |
---|---|
sid
Path
|
The unique string that we created to identify the Connection Policy resource to update. |
friendly_name
Optional
|
A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. |
Example 1
Delete a ConnectionPolicy resource
https://voice.twilio.com/v1/ConnectionPolicies/{Sid}
Parameters
Parameters in REST API format | |
---|---|
sid
Path
|
The unique string that we created to identify the Connection Policy resource to delete. |
Example 1
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.