All URIs are relative to https://dashboard.quantcdn.io
| Method | HTTP request | Description |
|---|---|---|
| BulkSetEnvironmentVariables | Put /api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables | Bulk set/replace environment variables |
| DeleteEnvironmentVariable | Delete /api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables/{api_variable} | Delete a variable |
| ListEnvironmentVariables | Get /api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables | Get all variables for an environment |
| UpdateEnvironmentVariable | Put /api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables/{api_variable} | Update a variable |
BulkSetEnvironmentVariables(ctx, apiOrganisation, apiApplication, apiEnvironment).BulkSetEnvironmentVariablesRequest(bulkSetEnvironmentVariablesRequest).Execute()
Bulk set/replace environment variables
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
apiOrganisation := "test-org" // string | The organisation ID
apiApplication := "test-app" // string | The application ID
apiEnvironment := "test-env" // string | The environment ID
bulkSetEnvironmentVariablesRequest := *openapiclient.NewBulkSetEnvironmentVariablesRequest([]openapiclient.BulkSetEnvironmentVariablesRequestEnvironmentInner{*openapiclient.NewBulkSetEnvironmentVariablesRequestEnvironmentInner("Name_example", "Value_example")}) // BulkSetEnvironmentVariablesRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.VariablesAPI.BulkSetEnvironmentVariables(context.Background(), apiOrganisation, apiApplication, apiEnvironment).BulkSetEnvironmentVariablesRequest(bulkSetEnvironmentVariablesRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VariablesAPI.BulkSetEnvironmentVariables``: %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. | |
| apiOrganisation | string | The organisation ID | |
| apiApplication | string | The application ID | |
| apiEnvironment | string | The environment ID |
Other parameters are passed through a pointer to a apiBulkSetEnvironmentVariablesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
bulkSetEnvironmentVariablesRequest | BulkSetEnvironmentVariablesRequest | |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteEnvironmentVariable(ctx, apiOrganisation, apiApplication, apiEnvironment, apiVariable).Execute()
Delete a variable
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
apiOrganisation := "apiOrganisation_example" // string | The organisation ID
apiApplication := "apiApplication_example" // string | The application ID
apiEnvironment := "apiEnvironment_example" // string | The environment ID
apiVariable := "apiVariable_example" // string | The variable key
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.VariablesAPI.DeleteEnvironmentVariable(context.Background(), apiOrganisation, apiApplication, apiEnvironment, apiVariable).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VariablesAPI.DeleteEnvironmentVariable``: %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. | |
| apiOrganisation | string | The organisation ID | |
| apiApplication | string | The application ID | |
| apiEnvironment | string | The environment ID | |
| apiVariable | string | The variable key |
Other parameters are passed through a pointer to a apiDeleteEnvironmentVariableRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListEnvironmentVariables(ctx, apiOrganisation, apiApplication, apiEnvironment).Execute()
Get all variables for an environment
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
apiOrganisation := "test-org" // string | The organisation ID
apiApplication := "test-app" // string | The application ID
apiEnvironment := "test-env" // string | The environment ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.VariablesAPI.ListEnvironmentVariables(context.Background(), apiOrganisation, apiApplication, apiEnvironment).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VariablesAPI.ListEnvironmentVariables``: %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. | |
| apiOrganisation | string | The organisation ID | |
| apiApplication | string | The application ID | |
| apiEnvironment | string | The environment ID |
Other parameters are passed through a pointer to a apiListEnvironmentVariablesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateEnvironmentVariable(ctx, apiOrganisation, apiApplication, apiEnvironment, apiVariable).UpdateEnvironmentVariableRequest(updateEnvironmentVariableRequest).Execute()
Update a variable
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
apiOrganisation := "test-org" // string | The organisation ID
apiApplication := "test-app" // string | The application ID
apiEnvironment := "test-env" // string | The environment ID
apiVariable := "apiVariable_example" // string | The variable key
updateEnvironmentVariableRequest := *openapiclient.NewUpdateEnvironmentVariableRequest() // UpdateEnvironmentVariableRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.VariablesAPI.UpdateEnvironmentVariable(context.Background(), apiOrganisation, apiApplication, apiEnvironment, apiVariable).UpdateEnvironmentVariableRequest(updateEnvironmentVariableRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VariablesAPI.UpdateEnvironmentVariable``: %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. | |
| apiOrganisation | string | The organisation ID | |
| apiApplication | string | The application ID | |
| apiEnvironment | string | The environment ID | |
| apiVariable | string | The variable key |
Other parameters are passed through a pointer to a apiUpdateEnvironmentVariableRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
updateEnvironmentVariableRequest | UpdateEnvironmentVariableRequest | |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]