Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now

メニュー

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?

Service (サービス)

Services are containers for your environments. You may only need one Service with many environments. When you begin working on a new application, you will likely want to create a new Service.

The unique name of your service forms the first part of your Serverless domain and cannot be updated.

Service properties

Names in PHP format
sid
sid<ZS> Not PII

The unique SID identifier of this Service.

accountSid
sid<AC> Not PII

The unique SID identifier of the Account that owns this Service.

friendlyName
文字列 PII MTL: 7 DAYS

A human-readable description of this Service, fewer than 256 characters.

uniqueName
文字列 PII MTL: 7 DAYS

A unique, URL-friendly name of this Service which forms part of the domain name, fewer than 256 characters.

includeCredentials
boolean Not PII

A boolean value that indicates whether to inject Account credentials into a Function invocation context.

dateCreated
date_time<iso8601> Not PII

The date that this Service was created, given in ISO 8601 format.

dateUpdated
date_time<iso8601> Not PII

The date that this Service was updated, given in ISO 8601 format.

url
url Not PII

The URL of this Service.

links
uri_map Not PII

Contains a dictionary of URL links to nested resources of this Service.

Create a Service resource

post
https://serverless.twilio.com/v1/Services
パラメーター
Names in None format
include_credentials
オプション
post boolean Not PII

A boolean value that indicates whether to inject Account credentials into a Function invocation context. Optional, default false.

unique_name
必須
post 文字列 PII MTL: 7 DAYS

A unique, addressable name of this Service which forms part of the domain name, fewer than 256 characters. Required.

friendly_name
必須
post 文字列 PII MTL: 7 DAYS

A human-readable description of this Service, fewer than 256 characters. Required

例 1
        
        
        
        

        Fetch a Service resource

        GET
        https://serverless.twilio.com/v1/Services/{Sid}
        パラメーター
        Names in None format
        sid
        必須
        GET sid_like<ZS> Not PII

        Identifier of the Serverless Service Instance. Either a SID or UniqueName.

              
              
              
              

              Read multiple Service resources

              GET
              https://serverless.twilio.com/v1/Services
                    
                    
                    
                    

                    Update a Service resource

                    post
                    https://serverless.twilio.com/v1/Services/{Sid}
                    パラメーター
                    Names in None format
                    sid
                    必須
                    post sid<ZS> Not PII

                    The unique SID identifier of this Service.

                    include_credentials
                    オプション
                    post boolean Not PII

                    A boolean value that indicates whether to inject Account credentials into a Function invocation context. Optional.

                    friendly_name
                    オプション
                    post 文字列 PII MTL: 7 DAYS

                    A human-readable description of this Service, fewer than 256 characters. Optional

                          
                          
                          
                          

                          Delete a Service resource

                          削除する
                          https://serverless.twilio.com/v1/Services/{Sid}
                          パラメーター
                          Names in None format
                          sid
                          必須
                          削除する sid_like<ZS> Not PII

                          Identifier of the Serverless Service Instance. Either a SID or UniqueName.

                                
                                
                                
                                
                                Rate this page:

                                ヘルプが必要ですか?

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