メニュー

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

Resource Properties in REST API format
sid
sid<ZS> Not PII

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

account_sid
sid<AC> Not PII

The SID of the Account that created the Service resource.

friendly_name
文字列 PII MTL: 7 DAYS

The string that you assigned to describe the Service resource.

unique_name
文字列 PII MTL: 7 DAYS

An application-defined string that uniquely identifies the Service resource. It can be used in place of the Service resource's sid in the URL to address the Service resource.

include_credentials
boolean Not PII

Whether to inject Account credentials into a function invocation context.

ui_editable
boolean Not PII

Whether the Service's properties and subresources can be edited via the UI.

date_created
date_time<iso8601> Not PII

The date and time in GMT when the Service resource was created specified in ISO 8601 format.

date_updated
date_time<iso8601> Not PII

The date and time in GMT when the Service resource was last updated specified in ISO 8601 format.

url
url Not PII

The absolute URL of the Service resource.

links
uri_map Not PII

The URLs of the Service's nested resources.

Create a Service resource

post
https://serverless.twilio.com/v1/Services
パラメーター
Parameters in REST API format
unique_name
必須
post 文字列 PII MTL: 7 DAYS

An application-defined string that uniquely identifies the Service resource. It can be used as an alternative to the sid in the URL path to address the Service resource. This value must be 244 characters or less in length and be unique.

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

A descriptive string that you create to describe the Service resource. It can be up to 255 characters long.

include_credentials
オプション
post boolean Not PII

Whether to inject Account credentials into a function invocation context. The default value is false.

ui_editable
オプション
post boolean Not PII

Whether the Service's properties and subresources can be edited via the UI. The default value is false.

例 1
        
        
        
        

        Fetch a Service resource

        GET
        https://serverless.twilio.com/v1/Services/{Sid}
        パラメーター
        Parameters in REST API format
        sid
        Path
        GET sid_like<ZS> Not PII

        The sid or unique_name of the Service resource to fetch.

        例 1
              
              
              
              

              Read multiple Service resources

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

                    Update a Service resource

                    post
                    https://serverless.twilio.com/v1/Services/{Sid}
                    パラメーター
                    Parameters in REST API format
                    sid
                    Path
                    post sid<ZS> Not PII

                    The sid or unique_name of the Service resource to update.

                    include_credentials
                    オプション
                    post boolean Not PII

                    Whether to inject Account credentials into a function invocation context.

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

                    A descriptive string that you create to describe the Service resource. It can be up to 255 characters long.

                    ui_editable
                    オプション
                    post boolean Not PII

                    Whether the Service's properties and subresources can be edited via the UI. The default value is false.

                    例 1
                          
                          
                          
                          

                          Delete a Service resource

                          削除する
                          https://serverless.twilio.com/v1/Services/{Sid}
                          パラメーター
                          Parameters in REST API format
                          sid
                          Path
                          削除する sid_like<ZS> Not PII

                          The sid or unique_name of the Service resource to delete.

                          例 1
                                
                                
                                
                                
                                Rate this page:

                                ヘルプが必要ですか?

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