Skip to content

Latest commit

 

History

History
79 lines (50 loc) · 2.25 KB

TagsApi.md

File metadata and controls

79 lines (50 loc) · 2.25 KB

\TagsApi

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

Method HTTP request Description
GetTags Get /api/v2/tags List tags

GetTags

TagCollection GetTags(ctx).Kind(kind).Pre(pre).Archived(archived).Execute()

List tags

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    kind := "kind_example" // string | Fetch tags associated with the specified resource type. Options are `flag`, `project`, `environment`, `segment`. Returns all types by default. (optional)
    pre := "pre_example" // string | Return tags with the specified prefix (optional)
    archived := true // bool | Whether or not to return archived flags (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.TagsApi.GetTags(context.Background()).Kind(kind).Pre(pre).Archived(archived).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GetTags``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `GetTags`: TagCollection
    fmt.Fprintf(os.Stdout, "Response from `TagsApi.GetTags`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiGetTagsRequest struct via the builder pattern

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.
pre string Return tags with the specified prefix
archived bool Whether or not to return archived flags

Return type

TagCollection

Authorization

ApiKey

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]