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 in REST API format | |
---|---|
friendly_name
オプション
|
A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. |
例 1
Fetch a ConnectionPolicy resource
https://voice.twilio.com/v1/ConnectionPolicies/{Sid}
パラメーター
Parameters in REST API format | |
---|---|
sid
Path
|
The unique string that we created to identify the Connection Policy resource to fetch. |
例 1
Read multiple ConnectionPolicy resources
https://voice.twilio.com/v1/ConnectionPolicies
例 1
Update a ConnectionPolicy resource
https://voice.twilio.com/v1/ConnectionPolicies/{Sid}
パラメーター
Parameters in REST API format | |
---|---|
sid
Path
|
The unique string that we created to identify the Connection Policy resource to update. |
friendly_name
オプション
|
A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. |
例 1
Delete a ConnectionPolicy resource
https://voice.twilio.com/v1/ConnectionPolicies/{Sid}
パラメーター
Parameters in REST API format | |
---|---|
sid
Path
|
The unique string that we created to identify the Connection Policy resource to delete. |
例 1
ヘルプが必要ですか?
誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。