メニュー

Expand
ページを評価:

デプロイ

Deployments let you set a particular Build to be live on a particular Environment.

Deployment properties

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

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

account_sid
sid<AC> Not PII

The SID of the Account that created the Deployment resource.

service_sid
sid<ZS> Not PII

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

environment_sid
sid<ZE> Not PII

The SID of the Environment for the Deployment.

build_sid
sid<ZB> Not PII

The SID of the Build for the deployment.

date_created
date_time<iso8601> Not PII

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

date_updated
date_time<iso8601> Not PII

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

url
url Not PII

The absolute URL of the Deployment resource.

Create a Deployment resource

post
https://serverless.twilio.com/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments
パラメーター
Parameters in REST API format
service_sid
Path
post sid_like<ZS> Not PII

The SID of the Service to create the Deployment resource under.

environment_sid
Path
post sid<ZE> Not PII

The SID of the Environment for the Deployment.

build_sid
オプション
post sid<ZB> Not PII

The SID of the Build for the Deployment.

例 1
        
        
        

        POST'ing to the deployment endpoint without a Build SID will delete any existing deployments in that Environment. Calls to Functions & Assets that were hosted by that Environment will result in 404s.

        例 2
              
              
              

              Fetch a Deployment resource

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

              The SID of the Service to fetch the Deployment resource from.

              environment_sid
              Path
              GET sid<ZE> Not PII

              The SID of the Environment used by the Deployment to fetch.

              sid
              Path
              GET sid<ZD> Not PII

              The SID that identifies the Deployment resource to fetch.

              例 1
                    
                    
                    

                    Read multiple Deployment resources

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

                    The SID of the Service to read the Deployment resources from.

                    environment_sid
                    Path
                    GET sid<ZE> Not PII

                    The SID of the Environment used by the Deployment resources to read.

                    例 1
                          
                          
                          
                          ページを評価:

                          ヘルプが必要ですか?

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

                                
                                
                                

                                フィードバックくださりありがとうございます!

                                Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

                                Sending your feedback...
                                🎉 Thank you for your feedback!
                                Something went wrong. Please try again.

                                Thanks for your feedback!

                                Refer us and get $10 in 3 simple steps!

                                ステップ1

                                Get link

                                Get a free personal referral link here

                                ステップ2:

                                Give $10

                                Your user signs up and upgrade using link

                                ステップ3

                                Get $10

                                1,250 free SMSes
                                OR 1,000 free voice mins
                                OR 12,000 chats
                                OR more