Retrieve a list of all Deployments.
An association of a Build with an Environment so that the Build is published in the Environment.
Retrieve a list of all Deployments.
Path parameters
-
The SID of the Service to read the Deployment resources from.
-
The SID of the Environment used by the Deployment resources to read.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^ZE[0-9a-fA-F]{32}$
.
GET
/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments
curl \
--request GET 'https://serverless.twilio.com/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments' \
--user "username:password"
Response examples (200)
{
"meta": {
"key": "deployments",
"url": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Environments/ZE00000000000000000000000000000000/Deployments?PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Environments/ZE00000000000000000000000000000000/Deployments?PageSize=50&Page=0",
"previous_page_url": null
},
"deployments": []
}