Deployments let you set a particular Build to be live on a particular Environment.
sid
type: SID<ZD>The unique string that we created to identify the Deployment resource.
^ZD[0-9a-fA-F]{32}$
34
34
account_sid
type: SID<AC>The SID of the Account that created the Deployment resource.
^AC[0-9a-fA-F]{32}$
34
34
service_sid
type: SID<ZS>The SID of the Service that the Deployment resource is associated with.
^ZS[0-9a-fA-F]{32}$
34
34
environment_sid
type: SID<ZE>The SID of the Environment for the Deployment.
^ZE[0-9a-fA-F]{32}$
34
34
build_sid
type: SID<ZB>The SID of the Build for the deployment.
^ZB[0-9a-fA-F]{32}$
34
34
date_created
type: string<date-time>The date and time in GMT when the Deployment resource was created specified in ISO 8601 format.
date_updated
type: string<date-time>The date and time in GMT when the Deployment resource was last updated specified in ISO 8601 format.
POST https://serverless.twilio.com/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments
ServiceSid
type: stringThe SID of the Service to create the Deployment resource under.
EnvironmentSid
type: SID<ZE>The SID of the Environment for the Deployment.
^ZE[0-9a-fA-F]{32}$
34
34
BuildSid
type: SID<ZB>The SID of the Build for the Deployment.
^ZB[0-9a-fA-F]{32}$
34
34
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.
GET https://serverless.twilio.com/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments/{Sid}
ServiceSid
type: stringThe SID of the Service to fetch the Deployment resource from.
EnvironmentSid
type: SID<ZE>The SID of the Environment used by the Deployment to fetch.
^ZE[0-9a-fA-F]{32}$
34
34
Sid
type: SID<ZD>The SID that identifies the Deployment resource to fetch.
^ZD[0-9a-fA-F]{32}$
34
34
GET https://serverless.twilio.com/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments
ServiceSid
type: stringThe SID of the Service to read the Deployment resources from.
EnvironmentSid
type: SID<ZE>The SID of the Environment used by the Deployment resources to read.
^ZE[0-9a-fA-F]{32}$
34
34
PageSize
type: integerHow many resources to return in each list page. The default is 50, and the maximum is 1000.
1
Page
type: integerThe page index. This value is simply for client state.
0