メニュー

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 string that we created to identify the Environment resource.

accountSid
sid<AC> Not PII

The SID of the Account that created the Environment resource.

serviceSid
sid<ZS> Not PII

The SID of the Service that the Environment resource is associated with.

buildSid
sid<ZB> Not PII

The SID of the build deployed in the environment.

uniqueName
文字列 PII MTL: 7 DAYS

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

domainSuffix
文字列 PII MTL: 7 DAYS

A URL-friendly name that represents the environment and forms part of the domain name.

domainName
文字列 PII MTL: 7 DAYS

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

dateCreated
date_time<iso8601> Not PII

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

dateUpdated
date_time<iso8601> Not PII

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

url
url Not PII

The absolute URL of the Environment resource.

links
uri_map Not PII

The URLs of the environment's nested resources.

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 SID of the Service to create the Environment resource under.

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

An application-defined string that uniquely identifies the Environment resource. It can be used as an alternative to the sid in the URL path to address the Environment resource. This value must have fewer than 256 characters.

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

A URL-friendly name that represents the environment and forms part of the domain name. Must have fewer than 32 characters.

例 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 SID of the Service to fetch the Environment resource from.

        sid
        必須
        GET sid<ZE> Not PII

        The SID of the Environment resource to fetch.

              
              
              
              

              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 SID of the Service to read the Environment resources from.

                    
                    
                    
                    

                    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 SID of the Service to delete the Environment resource from.

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

                    The SID of the Environment resource to delete.

                          
                          
                          
                          
                          Rate this page:

                          ヘルプが必要ですか?

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