All URIs are relative to https://app.launchdarkly.com
| Method | HTTP request | Description |
|---|---|---|
| createDeploymentEvent | POST /api/v2/engineering-insights/deployment-events | Create deployment event |
| getDeployment | GET /api/v2/engineering-insights/deployments/{deploymentID} | Get deployment |
| getDeployments | GET /api/v2/engineering-insights/deployments | List deployments |
| updateDeployment | PATCH /api/v2/engineering-insights/deployments/{deploymentID} | Update deployment |
createDeploymentEvent(postDeploymentEventInput)
Create deployment event
import {
InsightsDeploymentsBetaApi,
Configuration,
PostDeploymentEventInput
} from 'launchdarkly-api-typescript';
const configuration = new Configuration();
const apiInstance = new InsightsDeploymentsBetaApi(configuration);
let postDeploymentEventInput: PostDeploymentEventInput; //
const { status, data } = await apiInstance.createDeploymentEvent(
postDeploymentEventInput
);| Name | Type | Description | Notes |
|---|---|---|---|
| postDeploymentEventInput | PostDeploymentEventInput |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Created | - |
| 400 | Invalid request | - |
| 401 | Invalid access token | - |
| 403 | Forbidden | - |
| 404 | Invalid resource identifier | - |
| 429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeploymentRep getDeployment()
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.
import {
InsightsDeploymentsBetaApi,
Configuration
} from 'launchdarkly-api-typescript';
const configuration = new Configuration();
const apiInstance = new InsightsDeploymentsBetaApi(configuration);
let deploymentID: string; //The deployment ID (default to undefined)
let expand: string; //Expand properties in response. Options: `pullRequests`, `flagReferences` (optional) (default to undefined)
const { status, data } = await apiInstance.getDeployment(
deploymentID,
expand
);| Name | Type | Description | Notes |
|---|---|---|---|
| deploymentID | [string] | The deployment ID | defaults to undefined |
| expand | [string] | Expand properties in response. Options: `pullRequests`, `flagReferences` | (optional) defaults to undefined |
DeploymentRep
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Deployment response | - |
| 400 | Invalid request | - |
| 401 | Invalid access token | - |
| 403 | Forbidden | - |
| 404 | Invalid resource identifier | - |
| 429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeploymentCollectionRep getDeployments()
Get a list of deployments ### Expanding the deployment collection response LaunchDarkly supports expanding the deployment collection 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.
import {
InsightsDeploymentsBetaApi,
Configuration
} from 'launchdarkly-api-typescript';
const configuration = new Configuration();
const apiInstance = new InsightsDeploymentsBetaApi(configuration);
let projectKey: string; //The project key (default to undefined)
let environmentKey: string; //The environment key (default to undefined)
let applicationKey: string; //Comma separated list of application keys (optional) (default to undefined)
let limit: number; //The number of deployments to return. Default is 20. Maximum allowed is 100. (optional) (default to undefined)
let expand: string; //Expand properties in response. Options: `pullRequests`, `flagReferences` (optional) (default to undefined)
let from: number; //Unix timestamp in milliseconds. Default value is 7 days ago. (optional) (default to undefined)
let to: number; //Unix timestamp in milliseconds. Default value is now. (optional) (default to undefined)
let after: string; //Identifier used for pagination (optional) (default to undefined)
let before: string; //Identifier used for pagination (optional) (default to undefined)
let kind: string; //The deployment kind (optional) (default to undefined)
let status: string; //The deployment status (optional) (default to undefined)
const { status, data } = await apiInstance.getDeployments(
projectKey,
environmentKey,
applicationKey,
limit,
expand,
from,
to,
after,
before,
kind,
status
);| Name | Type | Description | Notes |
|---|---|---|---|
| projectKey | [string] | The project key | defaults to undefined |
| environmentKey | [string] | The environment key | defaults to undefined |
| applicationKey | [string] | Comma separated list of application keys | (optional) defaults to undefined |
| limit | [number] | The number of deployments to return. Default is 20. Maximum allowed is 100. | (optional) defaults to undefined |
| expand | [string] | Expand properties in response. Options: `pullRequests`, `flagReferences` | (optional) defaults to undefined |
| from | [number] | Unix timestamp in milliseconds. Default value is 7 days ago. | (optional) defaults to undefined |
| to | [number] | Unix timestamp in milliseconds. Default value is now. | (optional) defaults to undefined |
| after | [string] | Identifier used for pagination | (optional) defaults to undefined |
| before | [string] | Identifier used for pagination | (optional) defaults to undefined |
| kind | [string] | The deployment kind | (optional) defaults to undefined |
| status | [string] | The deployment status | (optional) defaults to undefined |
DeploymentCollectionRep
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Deployment collection response | - |
| 400 | Invalid request | - |
| 401 | Invalid access token | - |
| 403 | Forbidden | - |
| 404 | Invalid resource identifier | - |
| 429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeploymentRep updateDeployment(patchOperation)
Update a deployment by ID. Updating a deployment uses a JSON patch representation of the desired changes. To learn more, read Updates.
The deployment ID is returned as part of the List deployments response. It is the id field of each element in the items array.
import {
InsightsDeploymentsBetaApi,
Configuration
} from 'launchdarkly-api-typescript';
const configuration = new Configuration();
const apiInstance = new InsightsDeploymentsBetaApi(configuration);
let deploymentID: string; //The deployment ID (default to undefined)
let patchOperation: Array<PatchOperation>; //
const { status, data } = await apiInstance.updateDeployment(
deploymentID,
patchOperation
);| Name | Type | Description | Notes |
|---|---|---|---|
| patchOperation | Array | ||
| deploymentID | [string] | The deployment ID | defaults to undefined |
DeploymentRep
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Deployment response | - |
| 400 | Invalid request | - |
| 401 | Invalid access token | - |
| 403 | Forbidden | - |
| 404 | Invalid resource identifier | - |
| 429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]