Get deployment

Get a deployment by ID.

The deployment ID is returned as part of the List deployments response. It is the id field of each element in the items array.

Expanding the deployment response

LaunchDarkly supports expanding the deployment response to include additional fields.

To expand the response, append the expand query parameter and include the following:

  • pullRequests includes details on all of the pull requests associated with each deployment
  • flagReferences includes details on all of the references to flags in each deployment

For example, use ?expand=pullRequests to include the pullRequests field in the response. By default, this field is not included in the response.

Path parameters

deploymentIDstringRequired
The deployment ID

Headers

AuthorizationstringRequired

Query parameters

expandstringOptional

Expand properties in response. Options: pullRequests, flagReferences

Response

Deployment response
idstringformat: "uuid"
The deployment ID
applicationKeystring
The application key
applicationVersionstring
The application version
startedAtlong
The time the deployment started
statusstring
The status of the deployment
kindstring
The kind of deployment
activeboolean
Whether the deployment is active
archivedboolean
Whether the deployment is archived
environmentKeystring
The environment key
numberOfContributorsinteger
The number of contributors
numberOfPullRequestsinteger
The number of pull requests
linesAddedlong
The number of lines added
linesDeletedlong
The number of lines deleted
leadTimelong
The total lead time from first commit to deployment end in milliseconds
endedAtlongOptional
The time the deployment ended
durationMslongOptional
The duration of the deployment in milliseconds
metadatamap from strings to anyOptional
The metadata associated with the deployment
pullRequestsobjectOptional
The pull requests contained in the deployment
flagReferencesobjectOptional
The flag references contained in the deployment
leadTimeStagesobjectOptional
The lead time stages for the deployment

Errors