All URIs are relative to https://app.launchdarkly.com/api/v2
| Method | HTTP request | Description |
|---|---|---|
| DeleteRelayProxyConfig | DELETE /account/relay-auto-configs/{id} | Delete a relay proxy configuration by ID. |
| GetRelayProxyConfig | GET /account/relay-auto-configs/{id} | Get a single relay proxy configuration by ID. |
| GetRelayProxyConfigs | GET /account/relay-auto-configs | Returns a list of relay proxy configurations in the account. |
| PatchRelayProxyConfig | PATCH /account/relay-auto-configs/{id} | Modify a relay proxy configuration by ID. |
| PostRelayAutoConfig | POST /account/relay-auto-configs | Create a new relay proxy config. |
| ResetRelayProxyConfig | POST /account/relay-auto-configs/{id}/reset | Reset a relay proxy configuration's secret key with an optional expiry time for the old key. |
void DeleteRelayProxyConfig (string id)
Delete a relay proxy configuration by ID.
using System;
using System.Diagnostics;
using LaunchDarkly.Api.Api;
using LaunchDarkly.Api.Client;
using LaunchDarkly.Api.Model;
namespace Example
{
public class DeleteRelayProxyConfigExample
{
public void main()
{
// Configure API key authorization: Token
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new RelayProxyConfigurationsApi();
var id = id_example; // string | The relay proxy configuration ID
try
{
// Delete a relay proxy configuration by ID.
apiInstance.DeleteRelayProxyConfig(id);
}
catch (Exception e)
{
Debug.Print("Exception when calling RelayProxyConfigurationsApi.DeleteRelayProxyConfig: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | The relay proxy configuration ID |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RelayProxyConfig GetRelayProxyConfig (string id)
Get a single relay proxy configuration by ID.
using System;
using System.Diagnostics;
using LaunchDarkly.Api.Api;
using LaunchDarkly.Api.Client;
using LaunchDarkly.Api.Model;
namespace Example
{
public class GetRelayProxyConfigExample
{
public void main()
{
// Configure API key authorization: Token
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new RelayProxyConfigurationsApi();
var id = id_example; // string | The relay proxy configuration ID
try
{
// Get a single relay proxy configuration by ID.
RelayProxyConfig result = apiInstance.GetRelayProxyConfig(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling RelayProxyConfigurationsApi.GetRelayProxyConfig: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | The relay proxy configuration ID |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RelayProxyConfigs GetRelayProxyConfigs ()
Returns a list of relay proxy configurations in the account.
using System;
using System.Diagnostics;
using LaunchDarkly.Api.Api;
using LaunchDarkly.Api.Client;
using LaunchDarkly.Api.Model;
namespace Example
{
public class GetRelayProxyConfigsExample
{
public void main()
{
// Configure API key authorization: Token
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new RelayProxyConfigurationsApi();
try
{
// Returns a list of relay proxy configurations in the account.
RelayProxyConfigs result = apiInstance.GetRelayProxyConfigs();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling RelayProxyConfigurationsApi.GetRelayProxyConfigs: " + e.Message );
}
}
}
}This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RelayProxyConfig PatchRelayProxyConfig (string id, List patchDelta)
Modify a relay proxy configuration by ID.
using System;
using System.Diagnostics;
using LaunchDarkly.Api.Api;
using LaunchDarkly.Api.Client;
using LaunchDarkly.Api.Model;
namespace Example
{
public class PatchRelayProxyConfigExample
{
public void main()
{
// Configure API key authorization: Token
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new RelayProxyConfigurationsApi();
var id = id_example; // string | The relay proxy configuration ID
var patchDelta = new List<PatchOperation>(); // List<PatchOperation> | Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/'
try
{
// Modify a relay proxy configuration by ID.
RelayProxyConfig result = apiInstance.PatchRelayProxyConfig(id, patchDelta);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling RelayProxyConfigurationsApi.PatchRelayProxyConfig: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | The relay proxy configuration ID | |
| patchDelta | List | Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RelayProxyConfig PostRelayAutoConfig (RelayProxyConfigBody relayProxyConfigBody)
Create a new relay proxy config.
using System;
using System.Diagnostics;
using LaunchDarkly.Api.Api;
using LaunchDarkly.Api.Client;
using LaunchDarkly.Api.Model;
namespace Example
{
public class PostRelayAutoConfigExample
{
public void main()
{
// Configure API key authorization: Token
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new RelayProxyConfigurationsApi();
var relayProxyConfigBody = new RelayProxyConfigBody(); // RelayProxyConfigBody | Create a new relay proxy configuration
try
{
// Create a new relay proxy config.
RelayProxyConfig result = apiInstance.PostRelayAutoConfig(relayProxyConfigBody);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling RelayProxyConfigurationsApi.PostRelayAutoConfig: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| relayProxyConfigBody | RelayProxyConfigBody | Create a new relay proxy configuration |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RelayProxyConfig ResetRelayProxyConfig (string id, long? expiry)
Reset a relay proxy configuration's secret key with an optional expiry time for the old key.
using System;
using System.Diagnostics;
using LaunchDarkly.Api.Api;
using LaunchDarkly.Api.Client;
using LaunchDarkly.Api.Model;
namespace Example
{
public class ResetRelayProxyConfigExample
{
public void main()
{
// Configure API key authorization: Token
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new RelayProxyConfigurationsApi();
var id = id_example; // string | The relay proxy configuration ID
var expiry = 789; // long? | An expiration time for the old relay proxy configuration key, expressed as a Unix epoch time in milliseconds. By default, the relay proxy configuration will expire immediately (optional)
try
{
// Reset a relay proxy configuration's secret key with an optional expiry time for the old key.
RelayProxyConfig result = apiInstance.ResetRelayProxyConfig(id, expiry);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling RelayProxyConfigurationsApi.ResetRelayProxyConfig: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | The relay proxy configuration ID | |
| expiry | long? | An expiration time for the old relay proxy configuration key, expressed as a Unix epoch time in milliseconds. By default, the relay proxy configuration will expire immediately | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]