メニュー

Expand
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?

ConnectionPolicyTarget Resource

The ConnectionPolicyTarget resource describes the individual URI entries that make up the BYOC Origination ConnectionPolicies list.

ConnectionPolicyTarget properties

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

The SID of the Account that created the Target resource.

connection_policy_sid
sid<NY> Not PII

The SID of the Connection Policy that owns the Target.

sid
sid<NE> Not PII

The unique string that we created to identify the Target resource.

friendly_name
文字列 Not PII

The string that you assigned to describe the resource.

target

The SIP address you want Twilio to route your calls to. This must be a sip: schema. sips is NOT supported.

priority
integer Not PII

The relative importance of the target. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important target.

weight
integer Not PII

The value that determines the relative share of the load the Target should receive compared to other Targets with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. Targets with higher values receive more load than those with lower ones with the same priority.

enabled
boolean Not PII

Whether the target is enabled. The default is true.

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.

Create a ConnectionPolicyTarget resource

post
https://voice.twilio.com/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets
パラメーター
Parameters in REST API format
connection_policy_sid
Path
post sid<NY> Not PII

The SID of the Connection Policy that owns the Target.

target
必須
post url PII MTL: 30 DAYS

The SIP address you want Twilio to route your calls to. This must be a sip: schema. sips is NOT supported.

friendly_name
オプション
post 文字列 Not PII

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

priority
オプション
post integer Not PII

The relative importance of the target. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important target.

weight
オプション
post integer Not PII

The value that determines the relative share of the load the Target should receive compared to other Targets with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. Targets with higher values receive more load than those with lower ones with the same priority.

enabled
オプション
post boolean Not PII

Whether the Target is enabled. The default is true.

例 1
        
        
        
        

        Fetch a ConnectionPolicyTarget resource

        GET
        https://voice.twilio.com/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}
        パラメーター
        Parameters in REST API format
        connection_policy_sid
        Path
        GET sid<NY> Not PII

        The SID of the Connection Policy that owns the Target.

        sid
        Path
        GET sid<NE> Not PII

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

        例 1
              
              
              
              

              Read multiple ConnectionPolicyTarget resources

              GET
              https://voice.twilio.com/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets
              パラメーター
              Parameters in REST API format
              connection_policy_sid
              Path
              GET sid<NY> Not PII

              The SID of the Connection Policy from which to read the Targets.

              例 1
                    
                    
                    
                    

                    Update a ConnectionPolicyTarget resource

                    post
                    https://voice.twilio.com/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}
                    パラメーター
                    Parameters in REST API format
                    connection_policy_sid
                    Path
                    post sid<NY> Not PII

                    The SID of the Connection Policy that owns the Target.

                    sid
                    Path
                    post sid<NE> Not PII

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

                    friendly_name
                    オプション
                    post 文字列 Not PII

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

                    target
                    オプション
                    post url PII MTL: 30 DAYS

                    The SIP address you want Twilio to route your calls to. This must be a sip: schema. sips is NOT supported.

                    priority
                    オプション
                    post integer Not PII

                    The relative importance of the target. Can be an integer from 0 to 65535, inclusive. The lowest number represents the most important target.

                    weight
                    オプション
                    post integer Not PII

                    The value that determines the relative share of the load the Target should receive compared to other Targets with the same priority. Can be an integer from 1 to 65535, inclusive. Targets with higher values receive more load than those with lower ones with the same priority.

                    enabled
                    オプション
                    post boolean Not PII

                    Whether the Target is enabled.

                    例 1
                          
                          
                          
                          

                          Delete a ConnectionPolicyTarget resource

                          削除する
                          https://voice.twilio.com/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}
                          パラメーター
                          Parameters in REST API format
                          connection_policy_sid
                          Path
                          削除する sid<NY> Not PII

                          The SID of the Connection Policy that owns the Target.

                          sid
                          Path
                          削除する sid<NE> Not PII

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

                          例 1
                                
                                
                                
                                
                                Rate this page:

                                ヘルプが必要ですか?

                                誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。