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?

環境

Environments define the different domains your Functions and Assets are available under. You can only have one environment, or you can have many, e.g. a dev, stage and prod. You can deploy Builds to many environments.

Environment properties

Names in PHP format
sid
sid<ZE> Not PII

The unique SID identifier of this Environment.

accountSid
sid<AC> Not PII

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

serviceSid
sid<ZS> Not PII

The unique SID identifier of the Service for this Environment.

buildSid
sid<ZB> Not PII

The unique SID identifier of the Build deployed in this Environment.

uniqueName
文字列 PII MTL: 7 DAYS

A unique, addressable name of this Environment, fewer than 256 characters.

domainSuffix
文字列 PII MTL: 7 DAYS

A URL-friendly name that represents this Environment and forms part of the domain name, fewer than 32 characters.

domainName
文字列 PII MTL: 7 DAYS

The base domain name for all Functions and Assets deployed in this Environment, using the Service unique name and Environment domain suffix.

dateCreated
date_time<iso8601> Not PII

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

dateUpdated
date_time<iso8601> Not PII

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

url
url Not PII

The URL of this Environment.

links
uri_map Not PII

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

Create an Environment resource

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

The unique SID identifier of the Service for this Environment.

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

A unique, addressable name of this Environment, fewer than 256 characters. Required.

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

A URL-friendly name that represents this Environment and forms part of the domain name, fewer than 32 characters. Required.

例 1
        
        
        
        

        Fetch an Environment resource

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

        The unique SID identifier of the Service for this Environment.

        sid
        必須
        GET sid<ZE> Not PII

        The unique SID identifier of this Environment.

              
              
              
              

              Read multiple Environment resources

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

              The unique SID identifier of the Service for these Environments.

                    
                    
                    
                    

                    Delete an Environment resource

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

                    The unique SID identifier of the Service for this Environment.

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

                    The unique SID identifier of this Environment.

                          
                          
                          
                          
                          Rate this page:

                          ヘルプが必要ですか?

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