All URIs are relative to https://app.launchdarkly.com
| Method | HTTP request | Description |
|---|---|---|
| DeleteRelayAutoConfig | Delete /api/v2/account/relay-auto-configs/{id} | Delete Relay Proxy config by ID |
| GetRelayProxyConfig | Get /api/v2/account/relay-auto-configs/{id} | Get Relay Proxy config |
| GetRelayProxyConfigs | Get /api/v2/account/relay-auto-configs | List Relay Proxy configs |
| PatchRelayAutoConfig | Patch /api/v2/account/relay-auto-configs/{id} | Update a Relay Proxy config |
| PostRelayAutoConfig | Post /api/v2/account/relay-auto-configs | Create a new Relay Proxy config |
| ResetRelayAutoConfig | Post /api/v2/account/relay-auto-configs/{id}/reset | Reset Relay Proxy configuration key |
DeleteRelayAutoConfig(ctx, id).Execute()
Delete Relay Proxy config by ID
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/launchdarkly/api-client-go"
)
func main() {
id := "id_example" // string | The relay auto config id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.RelayProxyConfigurationsApi.DeleteRelayAutoConfig(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RelayProxyConfigurationsApi.DeleteRelayAutoConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | The relay auto config id |
Other parameters are passed through a pointer to a apiDeleteRelayAutoConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RelayAutoConfigRep GetRelayProxyConfig(ctx, id).Execute()
Get Relay Proxy config
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/launchdarkly/api-client-go"
)
func main() {
id := "id_example" // string | The relay auto config id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RelayProxyConfigurationsApi.GetRelayProxyConfig(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RelayProxyConfigurationsApi.GetRelayProxyConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetRelayProxyConfig`: RelayAutoConfigRep
fmt.Fprintf(os.Stdout, "Response from `RelayProxyConfigurationsApi.GetRelayProxyConfig`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | The relay auto config id |
Other parameters are passed through a pointer to a apiGetRelayProxyConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RelayAutoConfigCollectionRep GetRelayProxyConfigs(ctx).Execute()
List Relay Proxy configs
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/launchdarkly/api-client-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RelayProxyConfigurationsApi.GetRelayProxyConfigs(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RelayProxyConfigurationsApi.GetRelayProxyConfigs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetRelayProxyConfigs`: RelayAutoConfigCollectionRep
fmt.Fprintf(os.Stdout, "Response from `RelayProxyConfigurationsApi.GetRelayProxyConfigs`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetRelayProxyConfigsRequest 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]
RelayAutoConfigRep PatchRelayAutoConfig(ctx, id).PatchWithComment(patchWithComment).Execute()
Update a Relay Proxy config
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/launchdarkly/api-client-go"
)
func main() {
id := "id_example" // string | The relay auto config id
patchWithComment := *openapiclient.NewPatchWithComment([]openapiclient.PatchOperation{*openapiclient.NewPatchOperation("replace", "/exampleField")}) // PatchWithComment |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RelayProxyConfigurationsApi.PatchRelayAutoConfig(context.Background(), id).PatchWithComment(patchWithComment).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RelayProxyConfigurationsApi.PatchRelayAutoConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PatchRelayAutoConfig`: RelayAutoConfigRep
fmt.Fprintf(os.Stdout, "Response from `RelayProxyConfigurationsApi.PatchRelayAutoConfig`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | The relay auto config id |
Other parameters are passed through a pointer to a apiPatchRelayAutoConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
patchWithComment | PatchWithComment | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RelayAutoConfigRep PostRelayAutoConfig(ctx).RelayAutoConfigPost(relayAutoConfigPost).Execute()
Create a new Relay Proxy config
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/launchdarkly/api-client-go"
)
func main() {
relayAutoConfigPost := *openapiclient.NewRelayAutoConfigPost("Name_example", []openapiclient.Statement{*openapiclient.NewStatement("allow")}) // RelayAutoConfigPost |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RelayProxyConfigurationsApi.PostRelayAutoConfig(context.Background()).RelayAutoConfigPost(relayAutoConfigPost).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RelayProxyConfigurationsApi.PostRelayAutoConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostRelayAutoConfig`: RelayAutoConfigRep
fmt.Fprintf(os.Stdout, "Response from `RelayProxyConfigurationsApi.PostRelayAutoConfig`: %v\n", resp)
}Other parameters are passed through a pointer to a apiPostRelayAutoConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| relayAutoConfigPost | RelayAutoConfigPost |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RelayAutoConfigRep ResetRelayAutoConfig(ctx, id).Expiry(expiry).Execute()
Reset Relay Proxy configuration key
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/launchdarkly/api-client-go"
)
func main() {
id := "id_example" // string | The Relay Proxy configuration ID
expiry := int64(789) // int64 | An expiration time for the old Relay Proxy configuration key, expressed as a Unix epoch time in milliseconds. By default, the Relay Proxy configuration will expire immediately. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RelayProxyConfigurationsApi.ResetRelayAutoConfig(context.Background(), id).Expiry(expiry).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RelayProxyConfigurationsApi.ResetRelayAutoConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ResetRelayAutoConfig`: RelayAutoConfigRep
fmt.Fprintf(os.Stdout, "Response from `RelayProxyConfigurationsApi.ResetRelayAutoConfig`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | The Relay Proxy configuration ID |
Other parameters are passed through a pointer to a apiResetRelayAutoConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
expiry | int64 | An expiration time for the old Relay Proxy configuration key, expressed as a Unix epoch time in milliseconds. By default, the Relay Proxy configuration will expire immediately. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]