Menu

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?

Deployment

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

Deployment properties

Names in PHP format
sid
sid<ZD> Not PII

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

accountSid
sid<AC> Not PII

The SID of the Account that created the Deployment resource.

serviceSid
sid<ZS> Not PII

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

environmentSid
sid<ZE> Not PII

The SID of the environment for the deployment.

buildSid
sid<ZB> Not PII

The SID of the build for the deployment.

dateCreated
date_time<iso8601> Not PII

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

dateUpdated
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
Names in None format
service_sid
Required
post sid_like<ZS> Not PII

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

environment_sid
Required
post sid<ZE> Not PII

The SID of the environment for the deployment.

build_sid
Required
post sid<ZB> Not PII

The SID of the build for the deployment.

Example
        
        
        
        

        Fetch a Deployment resource

        get
        https://serverless.twilio.com/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments/{Sid}
        Parameters
        Names in None format
        service_sid
        Required
        get sid_like<ZS> Not PII

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

        environment_sid
        Required
        get sid<ZE> Not PII

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

        sid
        Required
        get sid<ZD> Not PII

        The SID of the Deployment resource to fetch.

        Example
              
              
              
              

              Read multiple Deployment resources

              get
              https://serverless.twilio.com/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments
              Parameters
              Names in None format
              service_sid
              Required
              get sid_like<ZS> Not PII

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

              environment_sid
              Required
              get sid<ZE> Not PII

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

              Example
                    
                    
                    
                    
                    Rate this page:

                    Need some help?

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