Data Export is an add-on feature
Data Export is available as an add-on for customers on a Foundation or Enterprise plan. To learn more, read about our pricing. To upgrade your plan, contact Sales.
Data Export provides a real-time export of raw analytics data, including feature flag requests, analytics events, custom events, and more.
Data Export destinations are locations that receive exported data. The Data Export destinations API allows you to configure destinations so that your data can be exported.
Several of the endpoints in the Data Export destinations API require a Data Export destination ID. The Data Export destination ID is returned as part of the Create a Data Export destination and List destinations responses. It is the _id
field, or the _id
field of each element in the items
array.
To learn more, read Data Export.
Get a list of Data Export destinations configured across all projects and environments.
Destination collection response
Invalid access token
Forbidden
Rate limited
{- "_links": {
- "self": {
- "href": "/api/v2/destinations",
- "type": "application/json"
}
}, - "items": [
- {
- "_id": "610addeadbeefaa86ec9a7d4",
- "_links": {
- "parent": {
- "href": "/api/v2/destinations",
- "type": "application/json"
}, - "self": {
- "href": "/api/v2/destinations/my-project/my-environment/610addeadbeefaa86ec9a7d4",
- "type": "application/json"
}
}, - "name": "example-destination",
- "kind": "google-pubsub",
- "version": 1,
- "config": "{\"project\":\"test-prod\",\"topic\":\"ld-pubsub-test-192301\"}",
- "on": true,
- "_access": {
- "denied": [
- {
- "action": "string",
- "reason": {
- "resources": [
- "proj/*:env/*;qa_*:/flag/*"
], - "notResources": [
- null
], - "actions": [
- "*"
], - "notActions": [
- null
], - "effect": "allow",
- "role_name": "string"
}
}
], - "allowed": [
- {
- "action": "string",
- "reason": {
- "resources": [
- "proj/*:env/*;qa_*:/flag/*"
], - "notResources": [
- null
], - "actions": [
- "*"
], - "notActions": [
- null
], - "effect": "allow",
- "role_name": "string"
}
}
]
}
}
]
}
Create a new Data Export destination.
In the config
request body parameter, the fields required depend on the type of Data Export destination.
config
parameter detailsTo create a Data Export destination with a kind
of azure-event-hubs
, the config
object requires the following fields:
namespace
: The Event Hub Namespace namename
: The Event Hub namepolicyName
: The shared access signature policy name. You can find your policy name in the settings of your Azure Event Hubs Namespace.policyKey
: The shared access signature key. You can find your policy key in the settings of your Azure Event Hubs Namespace.To create a Data Export destination with a kind
of google-pubsub
, the config
object requires the following fields:
project
: The Google PubSub project ID for the project to publish totopic
: The Google PubSub topic ID for the topic to publish toTo create a Data Export destination with a kind
of kinesis
, the config
object requires the following fields:
region
: The Kinesis stream's AWS region keyroleArn
: The Amazon Resource Name (ARN) of the AWS role that will be writing to KinesisstreamName
: The name of the Kinesis stream that LaunchDarkly is sending events to. This is not the ARN of the stream.To create a Data Export destination with a kind
of mparticle
, the config
object requires the following fields:
apiKey
: The mParticle API keysecret
: The mParticle API secretuserIdentity
: The type of identifier you use to identify your end users in mParticleanonymousUserIdentity
: The type of identifier you use to identify your anonymous end users in mParticleTo create a Data Export destination with a kind
of segment
, the config
object requires the following fields:
writeKey
: The Segment write key. This is used to authenticate LaunchDarkly's calls to Segment.Destination response
Invalid request
Invalid access token
Forbidden
Status conflict
Rate limited
{- "config": {
- "project": "test-prod",
- "topic": "ld-pubsub-test-192301"
}, - "kind": "google-pubsub"
}
{- "_id": "610addeadbeefaa86ec9a7d4",
- "_links": {
- "parent": {
- "href": "/api/v2/destinations",
- "type": "application/json"
}, - "self": {
- "href": "/api/v2/destinations/my-project/my-environment/610addeadbeefaa86ec9a7d4",
- "type": "application/json"
}
}, - "name": "example-destination",
- "kind": "google-pubsub",
- "version": 1,
- "config": "{\"project\":\"test-prod\",\"topic\":\"ld-pubsub-test-192301\"}",
- "on": true,
- "_access": {
- "denied": [
- {
- "action": "string",
- "reason": {
- "resources": [
- "proj/*:env/*;qa_*:/flag/*"
], - "notResources": [
- "string"
], - "actions": [
- "*"
], - "notActions": [
- "string"
], - "effect": "allow",
- "role_name": "string"
}
}
], - "allowed": [
- {
- "action": "string",
- "reason": {
- "resources": [
- "proj/*:env/*;qa_*:/flag/*"
], - "notResources": [
- "string"
], - "actions": [
- "*"
], - "notActions": [
- "string"
], - "effect": "allow",
- "role_name": "string"
}
}
]
}
}
Get a single Data Export destination by ID.
Destination response
Invalid access token
Forbidden
Invalid resource identifier
Rate limited
{- "_id": "610addeadbeefaa86ec9a7d4",
- "_links": {
- "parent": {
- "href": "/api/v2/destinations",
- "type": "application/json"
}, - "self": {
- "href": "/api/v2/destinations/my-project/my-environment/610addeadbeefaa86ec9a7d4",
- "type": "application/json"
}
}, - "name": "example-destination",
- "kind": "google-pubsub",
- "version": 1,
- "config": "{\"project\":\"test-prod\",\"topic\":\"ld-pubsub-test-192301\"}",
- "on": true,
- "_access": {
- "denied": [
- {
- "action": "string",
- "reason": {
- "resources": [
- "proj/*:env/*;qa_*:/flag/*"
], - "notResources": [
- "string"
], - "actions": [
- "*"
], - "notActions": [
- "string"
], - "effect": "allow",
- "role_name": "string"
}
}
], - "allowed": [
- {
- "action": "string",
- "reason": {
- "resources": [
- "proj/*:env/*;qa_*:/flag/*"
], - "notResources": [
- "string"
], - "actions": [
- "*"
], - "notActions": [
- "string"
], - "effect": "allow",
- "role_name": "string"
}
}
]
}
}
Update a Data Export destination. Updating a destination uses a JSON patch or JSON merge patch representation of the desired changes. To learn more, read Updates.
Destination response
Invalid request
Invalid access token
Forbidden
Invalid resource identifier
Status conflict
Rate limited
[- {
- "op": "replace",
- "path": "/config/topic",
- "value": "ld-pubsub-test-192302"
}
]
{- "_id": "610addeadbeefaa86ec9a7d4",
- "_links": {
- "parent": {
- "href": "/api/v2/destinations",
- "type": "application/json"
}, - "self": {
- "href": "/api/v2/destinations/my-project/my-environment/610addeadbeefaa86ec9a7d4",
- "type": "application/json"
}
}, - "name": "example-destination",
- "kind": "google-pubsub",
- "version": 1,
- "config": "{\"project\":\"test-prod\",\"topic\":\"ld-pubsub-test-192301\"}",
- "on": true,
- "_access": {
- "denied": [
- {
- "action": "string",
- "reason": {
- "resources": [
- "proj/*:env/*;qa_*:/flag/*"
], - "notResources": [
- "string"
], - "actions": [
- "*"
], - "notActions": [
- "string"
], - "effect": "allow",
- "role_name": "string"
}
}
], - "allowed": [
- {
- "action": "string",
- "reason": {
- "resources": [
- "proj/*:env/*;qa_*:/flag/*"
], - "notResources": [
- "string"
], - "actions": [
- "*"
], - "notActions": [
- "string"
], - "effect": "allow",
- "role_name": "string"
}
}
]
}
}
Delete a Data Export destination by ID.
Destination response
Invalid access token
Forbidden
Invalid resource identifier
Rate limited
{- "code": "unauthorized",
- "message": "Invalid access token"
}