All URIs are relative to https://app.launchdarkly.com
Method | HTTP request | Description |
---|---|---|
createBigSegmentExport | POST /api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/exports | Create big segment export |
createBigSegmentImport | POST /api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/imports | Create big segment import |
getBigSegmentExport | GET /api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/exports/{exportID} | Get big segment export |
getBigSegmentImport | GET /api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/imports/{importID} | Get big segment import |
createBigSegmentExport(projectKey, environmentKey, segmentKey)
Create big segment export
Starts a new export process for a big segment. This is an export for a synced segment or a list-based segment that can include more than 15,000 entries.
// Import classes:
import com.launchdarkly.api.ApiClient;
import com.launchdarkly.api.ApiException;
import com.launchdarkly.api.Configuration;
import com.launchdarkly.api.auth.*;
import com.launchdarkly.api.models.*;
import com.launchdarkly.api.api.SegmentsBetaApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://app.launchdarkly.com");
// Configure API key authorization: ApiKey
ApiKeyAuth ApiKey = (ApiKeyAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKey.setApiKeyPrefix("Token");
SegmentsBetaApi apiInstance = new SegmentsBetaApi(defaultClient);
String projectKey = "projectKey_example"; // String | The project key
String environmentKey = "environmentKey_example"; // String | The environment key
String segmentKey = "segmentKey_example"; // String | The segment key
try {
apiInstance.createBigSegmentExport(projectKey, environmentKey, segmentKey);
} catch (ApiException e) {
System.err.println("Exception when calling SegmentsBetaApi#createBigSegmentExport");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
projectKey | String | The project key | |
environmentKey | String | The environment key | |
segmentKey | String | The segment key |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Action succeeded | - |
400 | Invalid request | - |
401 | Invalid access token | - |
404 | Invalid resource identifier | - |
429 | Rate limited | - |
createBigSegmentImport(projectKey, environmentKey, segmentKey, _file, mode)
Create big segment import
Start a new import process for a big segment. This is an import for a list-based segment that can include more than 15,000 entries.
// Import classes:
import com.launchdarkly.api.ApiClient;
import com.launchdarkly.api.ApiException;
import com.launchdarkly.api.Configuration;
import com.launchdarkly.api.auth.*;
import com.launchdarkly.api.models.*;
import com.launchdarkly.api.api.SegmentsBetaApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://app.launchdarkly.com");
// Configure API key authorization: ApiKey
ApiKeyAuth ApiKey = (ApiKeyAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKey.setApiKeyPrefix("Token");
SegmentsBetaApi apiInstance = new SegmentsBetaApi(defaultClient);
String projectKey = "projectKey_example"; // String | The project key
String environmentKey = "environmentKey_example"; // String | The environment key
String segmentKey = "segmentKey_example"; // String | The segment key
File _file = new File("/path/to/file"); // File | CSV file containing keys
String mode = "mode_example"; // String | Import mode. Use either `merge` or `replace`
try {
apiInstance.createBigSegmentImport(projectKey, environmentKey, segmentKey, _file, mode);
} catch (ApiException e) {
System.err.println("Exception when calling SegmentsBetaApi#createBigSegmentImport");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
projectKey | String | The project key | |
environmentKey | String | The environment key | |
segmentKey | String | The segment key | |
_file | File | CSV file containing keys | [optional] |
mode | String | Import mode. Use either `merge` or `replace` | [optional] |
null (empty response body)
- Content-Type: multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | Import request submitted successfully | - |
400 | Invalid request | - |
401 | Invalid access token | - |
404 | Invalid resource identifier | - |
409 | Conflicting process | - |
429 | Rate limited | - |
Export getBigSegmentExport(projectKey, environmentKey, segmentKey, exportID)
Get big segment export
Returns information about a big segment export process. This is an export for a synced segment or a list-based segment that can include more than 15,000 entries.
// Import classes:
import com.launchdarkly.api.ApiClient;
import com.launchdarkly.api.ApiException;
import com.launchdarkly.api.Configuration;
import com.launchdarkly.api.auth.*;
import com.launchdarkly.api.models.*;
import com.launchdarkly.api.api.SegmentsBetaApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://app.launchdarkly.com");
// Configure API key authorization: ApiKey
ApiKeyAuth ApiKey = (ApiKeyAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKey.setApiKeyPrefix("Token");
SegmentsBetaApi apiInstance = new SegmentsBetaApi(defaultClient);
String projectKey = "projectKey_example"; // String | The project key
String environmentKey = "environmentKey_example"; // String | The environment key
String segmentKey = "segmentKey_example"; // String | The segment key
String exportID = "exportID_example"; // String | The export ID
try {
Export result = apiInstance.getBigSegmentExport(projectKey, environmentKey, segmentKey, exportID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SegmentsBetaApi#getBigSegmentExport");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
projectKey | String | The project key | |
environmentKey | String | The environment key | |
segmentKey | String | The segment key | |
exportID | String | The export ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Segment export response | - |
400 | Invalid request | - |
404 | Invalid resource identifier | - |
429 | Rate limited | - |
ModelImport getBigSegmentImport(projectKey, environmentKey, segmentKey, importID)
Get big segment import
Returns information about a big segment import process. This is the import of a list-based segment that can include more than 15,000 entries.
// Import classes:
import com.launchdarkly.api.ApiClient;
import com.launchdarkly.api.ApiException;
import com.launchdarkly.api.Configuration;
import com.launchdarkly.api.auth.*;
import com.launchdarkly.api.models.*;
import com.launchdarkly.api.api.SegmentsBetaApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://app.launchdarkly.com");
// Configure API key authorization: ApiKey
ApiKeyAuth ApiKey = (ApiKeyAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKey.setApiKeyPrefix("Token");
SegmentsBetaApi apiInstance = new SegmentsBetaApi(defaultClient);
String projectKey = "projectKey_example"; // String | The project key
String environmentKey = "environmentKey_example"; // String | The environment key
String segmentKey = "segmentKey_example"; // String | The segment key
String importID = "importID_example"; // String | The import ID
try {
ModelImport result = apiInstance.getBigSegmentImport(projectKey, environmentKey, segmentKey, importID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SegmentsBetaApi#getBigSegmentImport");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
projectKey | String | The project key | |
environmentKey | String | The environment key | |
segmentKey | String | The segment key | |
importID | String | The import ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Segment import response | - |
400 | Invalid request | - |
404 | Invalid resource identifier | - |
429 | Rate limited | - |