All URIs are relative to https://app.launchdarkly.com
Method | HTTP request | Description |
---|---|---|
create_integration_configuration | POST /api/v2/integration-configurations/keys/{integrationKey} | Create integration configuration |
delete_integration_configuration | DELETE /api/v2/integration-configurations/{integrationConfigurationId} | Delete integration configuration |
get_all_integration_configurations | GET /api/v2/integration-configurations/keys/{integrationKey} | Get all configurations for the integration |
get_integration_configuration | GET /api/v2/integration-configurations/{integrationConfigurationId} | Get an integration configuration |
update_integration_configuration | PATCH /api/v2/integration-configurations/{integrationConfigurationId} | Update integration configuration |
create_integration_configuration(integration_key, integration_configuration_post)
Create integration configuration
Create a new integration configuration. (Excludes persistent store and flag import configurations.)
require 'time'
require 'launchdarkly_api'
# setup authorization
LaunchDarklyApi.configure do |config|
# Configure API key authorization: ApiKey
config.api_key['ApiKey'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['ApiKey'] = 'Bearer'
end
api_instance = LaunchDarklyApi::IntegrationsBetaApi.new
integration_key = 'integration_key_example' # String | The integration key
integration_configuration_post = LaunchDarklyApi::IntegrationConfigurationPost.new({name: 'Example integration configuration', config_values: { key: 3.56}}) # IntegrationConfigurationPost |
begin
# Create integration configuration
result = api_instance.create_integration_configuration(integration_key, integration_configuration_post)
p result
rescue LaunchDarklyApi::ApiError => e
puts "Error when calling IntegrationsBetaApi->create_integration_configuration: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> create_integration_configuration_with_http_info(integration_key, integration_configuration_post)
begin
# Create integration configuration
data, status_code, headers = api_instance.create_integration_configuration_with_http_info(integration_key, integration_configuration_post)
p status_code # => 2xx
p headers # => { ... }
p data # => <IntegrationConfigurationsRep>
rescue LaunchDarklyApi::ApiError => e
puts "Error when calling IntegrationsBetaApi->create_integration_configuration_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
integration_key | String | The integration key | |
integration_configuration_post | IntegrationConfigurationPost |
- Content-Type: application/json
- Accept: application/json
delete_integration_configuration(integration_configuration_id)
Delete integration configuration
Delete an integration configuration by ID. (Excludes persistent store and flag import configurations.)
require 'time'
require 'launchdarkly_api'
# setup authorization
LaunchDarklyApi.configure do |config|
# Configure API key authorization: ApiKey
config.api_key['ApiKey'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['ApiKey'] = 'Bearer'
end
api_instance = LaunchDarklyApi::IntegrationsBetaApi.new
integration_configuration_id = 'integration_configuration_id_example' # String | The ID of the integration configuration to be deleted
begin
# Delete integration configuration
api_instance.delete_integration_configuration(integration_configuration_id)
rescue LaunchDarklyApi::ApiError => e
puts "Error when calling IntegrationsBetaApi->delete_integration_configuration: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> delete_integration_configuration_with_http_info(integration_configuration_id)
begin
# Delete integration configuration
data, status_code, headers = api_instance.delete_integration_configuration_with_http_info(integration_configuration_id)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue LaunchDarklyApi::ApiError => e
puts "Error when calling IntegrationsBetaApi->delete_integration_configuration_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
integration_configuration_id | String | The ID of the integration configuration to be deleted |
nil (empty response body)
- Content-Type: Not defined
- Accept: application/json
get_all_integration_configurations(integration_key)
Get all configurations for the integration
Get all integration configurations with the specified integration key. (Excludes persistent store and flag import configurations).
require 'time'
require 'launchdarkly_api'
# setup authorization
LaunchDarklyApi.configure do |config|
# Configure API key authorization: ApiKey
config.api_key['ApiKey'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['ApiKey'] = 'Bearer'
end
api_instance = LaunchDarklyApi::IntegrationsBetaApi.new
integration_key = 'integration_key_example' # String | Integration key
begin
# Get all configurations for the integration
result = api_instance.get_all_integration_configurations(integration_key)
p result
rescue LaunchDarklyApi::ApiError => e
puts "Error when calling IntegrationsBetaApi->get_all_integration_configurations: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_all_integration_configurations_with_http_info(integration_key)
begin
# Get all configurations for the integration
data, status_code, headers = api_instance.get_all_integration_configurations_with_http_info(integration_key)
p status_code # => 2xx
p headers # => { ... }
p data # => <IntegrationConfigurationCollectionRep>
rescue LaunchDarklyApi::ApiError => e
puts "Error when calling IntegrationsBetaApi->get_all_integration_configurations_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
integration_key | String | Integration key |
IntegrationConfigurationCollectionRep
- Content-Type: Not defined
- Accept: application/json
get_integration_configuration(integration_configuration_id)
Get an integration configuration
Get integration configuration with the specified ID. (Excludes persistent store and flag import configurations.)
require 'time'
require 'launchdarkly_api'
# setup authorization
LaunchDarklyApi.configure do |config|
# Configure API key authorization: ApiKey
config.api_key['ApiKey'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['ApiKey'] = 'Bearer'
end
api_instance = LaunchDarklyApi::IntegrationsBetaApi.new
integration_configuration_id = 'integration_configuration_id_example' # String | Integration configuration ID
begin
# Get an integration configuration
result = api_instance.get_integration_configuration(integration_configuration_id)
p result
rescue LaunchDarklyApi::ApiError => e
puts "Error when calling IntegrationsBetaApi->get_integration_configuration: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_integration_configuration_with_http_info(integration_configuration_id)
begin
# Get an integration configuration
data, status_code, headers = api_instance.get_integration_configuration_with_http_info(integration_configuration_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <IntegrationConfigurationsRep>
rescue LaunchDarklyApi::ApiError => e
puts "Error when calling IntegrationsBetaApi->get_integration_configuration_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
integration_configuration_id | String | Integration configuration ID |
- Content-Type: Not defined
- Accept: application/json
update_integration_configuration(integration_configuration_id, patch_operation)
Update integration configuration
Update an integration configuration. Updating an integration configuration uses a JSON patch representation of the desired changes. To learn more, read Updates.
require 'time'
require 'launchdarkly_api'
# setup authorization
LaunchDarklyApi.configure do |config|
# Configure API key authorization: ApiKey
config.api_key['ApiKey'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['ApiKey'] = 'Bearer'
end
api_instance = LaunchDarklyApi::IntegrationsBetaApi.new
integration_configuration_id = 'integration_configuration_id_example' # String | The ID of the integration configuration
patch_operation = [LaunchDarklyApi::PatchOperation.new({op: 'replace', path: '/exampleField'})] # Array<PatchOperation> |
begin
# Update integration configuration
result = api_instance.update_integration_configuration(integration_configuration_id, patch_operation)
p result
rescue LaunchDarklyApi::ApiError => e
puts "Error when calling IntegrationsBetaApi->update_integration_configuration: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> update_integration_configuration_with_http_info(integration_configuration_id, patch_operation)
begin
# Update integration configuration
data, status_code, headers = api_instance.update_integration_configuration_with_http_info(integration_configuration_id, patch_operation)
p status_code # => 2xx
p headers # => { ... }
p data # => <IntegrationConfigurationsRep>
rescue LaunchDarklyApi::ApiError => e
puts "Error when calling IntegrationsBetaApi->update_integration_configuration_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
integration_configuration_id | String | The ID of the integration configuration | |
patch_operation | Array<PatchOperation> |
- Content-Type: application/json
- Accept: application/json