Skip to content

Latest commit

 

History

History
83 lines (59 loc) · 2.19 KB

TagsApi.md

File metadata and controls

83 lines (59 loc) · 2.19 KB

LaunchDarklyApi::TagsApi

All URIs are relative to https://app.launchdarkly.com

Method HTTP request Description
get_tags GET /api/v2/tags List tags

get_tags

get_tags(opts)

List tags

Get a list of tags.

Examples

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

Using the get_tags_with_http_info variant

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

Parameters

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]

Return type

TagCollection

Authorization

ApiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json