All URIs are relative to https://app.launchdarkly.com
Method | HTTP request | Description |
---|---|---|
delete_relay_auto_config | DELETE /api/v2/account/relay-auto-configs/{id} | Delete Relay Proxy config by ID |
get_relay_proxy_config | GET /api/v2/account/relay-auto-configs/{id} | Get Relay Proxy config |
get_relay_proxy_configs | GET /api/v2/account/relay-auto-configs | List Relay Proxy configs |
patch_relay_auto_config | PATCH /api/v2/account/relay-auto-configs/{id} | Update a Relay Proxy config |
post_relay_auto_config | POST /api/v2/account/relay-auto-configs | Create a new Relay Proxy config |
reset_relay_auto_config | POST /api/v2/account/relay-auto-configs/{id}/reset | Reset Relay Proxy configuration key |
delete_relay_auto_config(id)
Delete Relay Proxy config by ID
Delete a Relay Proxy config.
- Api Key Authentication (ApiKey):
import time
import launchdarkly_api
from launchdarkly_api.api import relay_proxy_configurations_api
from launchdarkly_api.model.not_found_error_rep import NotFoundErrorRep
from launchdarkly_api.model.rate_limited_error_rep import RateLimitedErrorRep
from launchdarkly_api.model.unauthorized_error_rep import UnauthorizedErrorRep
from launchdarkly_api.model.status_conflict_error_rep import StatusConflictErrorRep
from pprint import pprint
# Defining the host is optional and defaults to https://app.launchdarkly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = launchdarkly_api.Configuration(
host = "https://app.launchdarkly.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKey
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with launchdarkly_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = relay_proxy_configurations_api.RelayProxyConfigurationsApi(api_client)
id = "id_example" # str | The relay auto config id
# example passing only required values which don't have defaults set
try:
# Delete Relay Proxy config by ID
api_instance.delete_relay_auto_config(id)
except launchdarkly_api.ApiException as e:
print("Exception when calling RelayProxyConfigurationsApi->delete_relay_auto_config: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | The relay auto config id |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | Action succeeded | - |
401 | Invalid access token | - |
404 | Invalid resource identifier | - |
409 | Status conflict | - |
429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RelayAutoConfigRep get_relay_proxy_config(id)
Get Relay Proxy config
Get a single Relay Proxy auto config by ID.
- Api Key Authentication (ApiKey):
import time
import launchdarkly_api
from launchdarkly_api.api import relay_proxy_configurations_api
from launchdarkly_api.model.forbidden_error_rep import ForbiddenErrorRep
from launchdarkly_api.model.relay_auto_config_rep import RelayAutoConfigRep
from launchdarkly_api.model.not_found_error_rep import NotFoundErrorRep
from launchdarkly_api.model.rate_limited_error_rep import RateLimitedErrorRep
from launchdarkly_api.model.unauthorized_error_rep import UnauthorizedErrorRep
from pprint import pprint
# Defining the host is optional and defaults to https://app.launchdarkly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = launchdarkly_api.Configuration(
host = "https://app.launchdarkly.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKey
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with launchdarkly_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = relay_proxy_configurations_api.RelayProxyConfigurationsApi(api_client)
id = "id_example" # str | The relay auto config id
# example passing only required values which don't have defaults set
try:
# Get Relay Proxy config
api_response = api_instance.get_relay_proxy_config(id)
pprint(api_response)
except launchdarkly_api.ApiException as e:
print("Exception when calling RelayProxyConfigurationsApi->get_relay_proxy_config: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | The relay auto config id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Relay auto config response | - |
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]
RelayAutoConfigCollectionRep get_relay_proxy_configs()
List Relay Proxy configs
Get a list of Relay Proxy configurations in the account.
- Api Key Authentication (ApiKey):
import time
import launchdarkly_api
from launchdarkly_api.api import relay_proxy_configurations_api
from launchdarkly_api.model.forbidden_error_rep import ForbiddenErrorRep
from launchdarkly_api.model.relay_auto_config_collection_rep import RelayAutoConfigCollectionRep
from launchdarkly_api.model.rate_limited_error_rep import RateLimitedErrorRep
from launchdarkly_api.model.unauthorized_error_rep import UnauthorizedErrorRep
from pprint import pprint
# Defining the host is optional and defaults to https://app.launchdarkly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = launchdarkly_api.Configuration(
host = "https://app.launchdarkly.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKey
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with launchdarkly_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = relay_proxy_configurations_api.RelayProxyConfigurationsApi(api_client)
# example, this endpoint has no required or optional parameters
try:
# List Relay Proxy configs
api_response = api_instance.get_relay_proxy_configs()
pprint(api_response)
except launchdarkly_api.ApiException as e:
print("Exception when calling RelayProxyConfigurationsApi->get_relay_proxy_configs: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Relay auto configs collection response | - |
401 | Invalid access token | - |
403 | Forbidden | - |
429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RelayAutoConfigRep patch_relay_auto_config(id, patch_with_comment)
Update a Relay Proxy config
Update a Relay Proxy configuration. Updating a configuration uses a JSON patch or JSON merge patch representation of the desired changes. To learn more, read Updates.
- Api Key Authentication (ApiKey):
import time
import launchdarkly_api
from launchdarkly_api.api import relay_proxy_configurations_api
from launchdarkly_api.model.patch_failed_error_rep import PatchFailedErrorRep
from launchdarkly_api.model.invalid_request_error_rep import InvalidRequestErrorRep
from launchdarkly_api.model.relay_auto_config_rep import RelayAutoConfigRep
from launchdarkly_api.model.not_found_error_rep import NotFoundErrorRep
from launchdarkly_api.model.patch_with_comment import PatchWithComment
from launchdarkly_api.model.rate_limited_error_rep import RateLimitedErrorRep
from launchdarkly_api.model.unauthorized_error_rep import UnauthorizedErrorRep
from launchdarkly_api.model.status_conflict_error_rep import StatusConflictErrorRep
from pprint import pprint
# Defining the host is optional and defaults to https://app.launchdarkly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = launchdarkly_api.Configuration(
host = "https://app.launchdarkly.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKey
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with launchdarkly_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = relay_proxy_configurations_api.RelayProxyConfigurationsApi(api_client)
id = "id_example" # str | The relay auto config id
patch_with_comment = PatchWithComment(
patch=JSONPatch([
PatchOperation(
op="replace",
path="/exampleField",
value=None,
),
]),
comment="comment_example",
) # PatchWithComment |
# example passing only required values which don't have defaults set
try:
# Update a Relay Proxy config
api_response = api_instance.patch_relay_auto_config(id, patch_with_comment)
pprint(api_response)
except launchdarkly_api.ApiException as e:
print("Exception when calling RelayProxyConfigurationsApi->patch_relay_auto_config: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | The relay auto config id | |
patch_with_comment | PatchWithComment |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Relay auto config response | - |
400 | Invalid request | - |
401 | Invalid access token | - |
404 | Invalid resource identifier | - |
409 | Status conflict | - |
422 | Invalid patch content | - |
429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RelayAutoConfigRep post_relay_auto_config(relay_auto_config_post)
Create a new Relay Proxy config
Create a Relay Proxy config.
- Api Key Authentication (ApiKey):
import time
import launchdarkly_api
from launchdarkly_api.api import relay_proxy_configurations_api
from launchdarkly_api.model.invalid_request_error_rep import InvalidRequestErrorRep
from launchdarkly_api.model.relay_auto_config_post import RelayAutoConfigPost
from launchdarkly_api.model.relay_auto_config_rep import RelayAutoConfigRep
from launchdarkly_api.model.rate_limited_error_rep import RateLimitedErrorRep
from launchdarkly_api.model.unauthorized_error_rep import UnauthorizedErrorRep
from pprint import pprint
# Defining the host is optional and defaults to https://app.launchdarkly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = launchdarkly_api.Configuration(
host = "https://app.launchdarkly.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKey
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with launchdarkly_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = relay_proxy_configurations_api.RelayProxyConfigurationsApi(api_client)
relay_auto_config_post = RelayAutoConfigPost(
name="name_example",
policy=[
Statement(
resources=["proj/*:env/*;qa_*:/flag/*"],
not_resources=[
"not_resources_example",
],
actions=["*"],
not_actions=[
"not_actions_example",
],
effect="allow",
),
],
) # RelayAutoConfigPost |
# example passing only required values which don't have defaults set
try:
# Create a new Relay Proxy config
api_response = api_instance.post_relay_auto_config(relay_auto_config_post)
pprint(api_response)
except launchdarkly_api.ApiException as e:
print("Exception when calling RelayProxyConfigurationsApi->post_relay_auto_config: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
relay_auto_config_post | RelayAutoConfigPost |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Relay auto config response | - |
400 | Invalid request | - |
401 | Invalid access token | - |
429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RelayAutoConfigRep reset_relay_auto_config(id)
Reset Relay Proxy configuration key
Reset a Relay Proxy configuration's secret key with an optional expiry time for the old key.
- Api Key Authentication (ApiKey):
import time
import launchdarkly_api
from launchdarkly_api.api import relay_proxy_configurations_api
from launchdarkly_api.model.forbidden_error_rep import ForbiddenErrorRep
from launchdarkly_api.model.relay_auto_config_rep import RelayAutoConfigRep
from launchdarkly_api.model.not_found_error_rep import NotFoundErrorRep
from launchdarkly_api.model.rate_limited_error_rep import RateLimitedErrorRep
from launchdarkly_api.model.unauthorized_error_rep import UnauthorizedErrorRep
from pprint import pprint
# Defining the host is optional and defaults to https://app.launchdarkly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = launchdarkly_api.Configuration(
host = "https://app.launchdarkly.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKey
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with launchdarkly_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = relay_proxy_configurations_api.RelayProxyConfigurationsApi(api_client)
id = "id_example" # str | The Relay Proxy configuration ID
expiry = 1 # int | 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)
# example passing only required values which don't have defaults set
try:
# Reset Relay Proxy configuration key
api_response = api_instance.reset_relay_auto_config(id)
pprint(api_response)
except launchdarkly_api.ApiException as e:
print("Exception when calling RelayProxyConfigurationsApi->reset_relay_auto_config: %s\n" % e)
# example passing only required values which don't have defaults set
# and optional values
try:
# Reset Relay Proxy configuration key
api_response = api_instance.reset_relay_auto_config(id, expiry=expiry)
pprint(api_response)
except launchdarkly_api.ApiException as e:
print("Exception when calling RelayProxyConfigurationsApi->reset_relay_auto_config: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | The Relay Proxy configuration ID | |
expiry | int | 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: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Relay auto config response | - |
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]