All URIs are relative to https://app.launchdarkly.com
Method | HTTP request | Description |
---|---|---|
get_dependent_flags | GET /api/v2/flags/{projectKey}/{featureFlagKey}/dependent-flags | List dependent feature flags |
get_dependent_flags_by_env | GET /api/v2/flags/{projectKey}/{environmentKey}/{featureFlagKey}/dependent-flags | List dependent feature flags by environment |
get_dependent_flags(project_key, feature_flag_key)
List dependent feature flags
Flag prerequisites is an Enterprise feature > > Flag prerequisites is available to customers on an Enterprise plan. To learn more, read about our pricing. To upgrade your plan, contact Sales. > ### This feature is in beta > > To use this feature, pass in a header including the
LD-API-Version
key with value set tobeta
. Use this header with each call. To learn more, read Beta resources. List dependent flags across all environments for the flag specified in the path parameters. A dependent flag is a flag that uses another flag as a prerequisite. To learn more, read Flag prerequisites.
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::FeatureFlagsBetaApi.new
project_key = 'project_key_example' # String | The project key
feature_flag_key = 'feature_flag_key_example' # String | The feature flag key
begin
# List dependent feature flags
result = api_instance.get_dependent_flags(project_key, feature_flag_key)
p result
rescue LaunchDarklyApi::ApiError => e
puts "Error when calling FeatureFlagsBetaApi->get_dependent_flags: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_dependent_flags_with_http_info(project_key, feature_flag_key)
begin
# List dependent feature flags
data, status_code, headers = api_instance.get_dependent_flags_with_http_info(project_key, feature_flag_key)
p status_code # => 2xx
p headers # => { ... }
p data # => <MultiEnvironmentDependentFlags>
rescue LaunchDarklyApi::ApiError => e
puts "Error when calling FeatureFlagsBetaApi->get_dependent_flags_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
project_key | String | The project key | |
feature_flag_key | String | The feature flag key |
MultiEnvironmentDependentFlags
- Content-Type: Not defined
- Accept: application/json
get_dependent_flags_by_env(project_key, environment_key, feature_flag_key)
List dependent feature flags by environment
Flag prerequisites is an Enterprise feature > > Flag prerequisites is available to customers on an Enterprise plan. To learn more, read about our pricing. To upgrade your plan, contact Sales. > ### This feature is in beta > > To use this feature, pass in a header including the
LD-API-Version
key with value set tobeta
. Use this header with each call. To learn more, read Beta resources. List dependent flags across all environments for the flag specified in the path parameters. A dependent flag is a flag that uses another flag as a prerequisite. To learn more, read Flag prerequisites.
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::FeatureFlagsBetaApi.new
project_key = 'project_key_example' # String | The project key
environment_key = 'environment_key_example' # String | The environment key
feature_flag_key = 'feature_flag_key_example' # String | The feature flag key
begin
# List dependent feature flags by environment
result = api_instance.get_dependent_flags_by_env(project_key, environment_key, feature_flag_key)
p result
rescue LaunchDarklyApi::ApiError => e
puts "Error when calling FeatureFlagsBetaApi->get_dependent_flags_by_env: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_dependent_flags_by_env_with_http_info(project_key, environment_key, feature_flag_key)
begin
# List dependent feature flags by environment
data, status_code, headers = api_instance.get_dependent_flags_by_env_with_http_info(project_key, environment_key, feature_flag_key)
p status_code # => 2xx
p headers # => { ... }
p data # => <DependentFlagsByEnvironment>
rescue LaunchDarklyApi::ApiError => e
puts "Error when calling FeatureFlagsBetaApi->get_dependent_flags_by_env_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
project_key | String | The project key | |
environment_key | String | The environment key | |
feature_flag_key | String | The feature flag key |
- Content-Type: Not defined
- Accept: application/json