メニュー

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?

SIP Credential Resource

The Credential resource stores usernames and password information.

Username and Password

Each Username requires a corresponding password that meets the requirements in the Password parameter's description.

We don't store the passwords you provide in the credential records as cleartext. Instead, they are MD5 hashed in accordance with the digest authentication specification.

SipCredential properties

Names in PHP format
sid
sid<CR> Not PII

このリソースを一意に識別する 34 文字の文字列です。

accountSid
sid<AC> Not PII

The unique id of the Account that is responsible for this resource.

credentialListSid
sid<CL> Not PII

The unique id that identifies the credential list that includes this credential.

username
文字列 PII MTL: 30 DAYS

The username for this credential.

dateCreated
date_time<rfc2822> Not PII

このリソースが生成された日付の GMT 表記です。 RFC 2822 フォーマットを使用します。

dateUpdated
date_time<rfc2822> Not PII

DateUpdated | このリソースが最後に更新された日付の GMT 表記です。 RFC 2822 フォーマットを使用します。

uri
uri Not PII

このリソースのURIで、右記のURLに対する相対パスです https://api.twilio.com

Create a SipCredential resource

post
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json
パラメーター
Names in PHP format
accountSid
必須
post sid<AC> Not PII

The unique id of the Account that is responsible for this resource.

credentialListSid
必須
post sid<CL> Not PII

The unique id that identifies the credential list to include the created credential.

username
必須
post 文字列 PII MTL: 30 DAYS

SIPリクエストが要求された際に認証に使われます。ユーザー名レスポンス時に最初のINVITEのTwilioのチャレンジに含まれます。最大32文字まで設定可能です。

password
必須
post 文字列 PII MTL: 30 DAYS

The password that the username will use when authenticating SIP requests. The password must be a minimum of 12 characters, contain at least 1 digit, and have mixed case. (eg “IWasAtSignal2018”)

例 1
        
        
        
        

        Fetch a SipCredential resource

        GET
        https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json
        パラメーター
        Names in PHP format
        accountSid
        必須
        GET sid<AC> Not PII

        The unique id of the Account that is responsible for this resource.

        credentialListSid
        必須
        GET sid<CL> Not PII

        The unique id that identifies the credential list that contains the desired credential.

        sid
        必須
        GET sid<CR> Not PII

        The unique id that identifies the resource to fetch.

        例 1
              
              
              
              

              Read multiple SipCredential resources

              GET
              https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json
              パラメーター
              Names in PHP format
              accountSid
              必須
              GET sid<AC> Not PII

              The unique id of the Account that is responsible for this resource.

              credentialListSid
              必須
              GET sid<CL> Not PII

              The unique id that identifies the credential list that contains the desired credentials.

              例 1
                    
                    
                    
                    

                    Update a SipCredential resource

                    post
                    https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json

                    The update action is used to update a user's password.

                    パラメーター
                    Names in PHP format
                    accountSid
                    必須
                    post sid<AC> Not PII

                    The unique id of the Account that is responsible for this resource.

                    credentialListSid
                    必須
                    post sid<CL> Not PII

                    The unique id that identifies the credential list that includes this credential.

                    sid
                    必須
                    post sid<CR> Not PII

                    The unique id that identifies the resource to update.

                    password
                    オプション
                    post 文字列 PII MTL: 30 DAYS

                    The password that the username will use when authenticating SIP requests. The password must be a minimum of 12 characters, contain at least 1 digit, and have mixed case. (eg “IWasAtSignal2018”)

                    例 1
                          
                          
                          
                          

                          Delete a SipCredential resource

                          削除する
                          https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json
                          パラメーター
                          Names in PHP format
                          accountSid
                          必須
                          削除する sid<AC> Not PII

                          The unique id of the Account that is responsible for this resource.

                          credentialListSid
                          必須
                          削除する sid<CL> Not PII

                          The unique id that identifies the credential list that contains the desired credentials.

                          sid
                          必須
                          削除する sid<CR> Not PII

                          The unique id that identifies the resource to delete.

                          例 1
                                
                                
                                
                                

                                ヘルプが必要ですか?

                                We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.