All URIs are relative to https://app.launchdarkly.com
Method | HTTP request | Description |
---|---|---|
GetIps | Get /api/v2/public-ip-list | Gets the public IP list |
GetOpenapiSpec | Get /api/v2/openapi.json | Gets the OpenAPI spec in json |
GetRoot | Get /api/v2 | Root resource |
GetVersions | Get /api/v2/versions | Get version information |
IpList GetIps(ctx).Execute()
Gets the public IP list
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.OtherApi.GetIps(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OtherApi.GetIps``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetIps`: IpList
fmt.Fprintf(os.Stdout, "Response from `OtherApi.GetIps`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetIpsRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetOpenapiSpec(ctx).Execute()
Gets the OpenAPI spec in json
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.OtherApi.GetOpenapiSpec(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OtherApi.GetOpenapiSpec``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetOpenapiSpecRequest struct via the builder pattern
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]Link GetRoot(ctx).Execute()
Root resource
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.OtherApi.GetRoot(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OtherApi.GetRoot``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetRoot`: map[string]Link
fmt.Fprintf(os.Stdout, "Response from `OtherApi.GetRoot`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetRootRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VersionsRep GetVersions(ctx).Execute()
Get version information
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.OtherApi.GetVersions(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OtherApi.GetVersions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetVersions`: VersionsRep
fmt.Fprintf(os.Stdout, "Response from `OtherApi.GetVersions`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetVersionsRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]