All URIs are relative to https://app.launchdarkly.com
Method | HTTP request | Description |
---|---|---|
get_tags | GET /api/v2/tags | List tags |
get_tags(opts)
List tags
Get a list of tags.
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::TagsApi.new
opts = {
kind: 'kind_example', # String | Fetch tags associated with the specified resource type. Options are `flag`, `project`, `environment`, `segment`. Returns all types by default.
pre: 'pre_example' # String | Return tags with the specified prefix
}
begin
# List tags
result = api_instance.get_tags(opts)
p result
rescue LaunchDarklyApi::ApiError => e
puts "Error when calling TagsApi->get_tags: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_tags_with_http_info(opts)
begin
# List tags
data, status_code, headers = api_instance.get_tags_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <TagCollection>
rescue LaunchDarklyApi::ApiError => e
puts "Error when calling TagsApi->get_tags_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
kind | String | Fetch tags associated with the specified resource type. Options are `flag`, `project`, `environment`, `segment`. Returns all types by default. | [optional] |
pre | String | Return tags with the specified prefix | [optional] |
- Content-Type: Not defined
- Accept: application/json