All URIs are relative to https://dashboard.quantcdn.io
| Method | HTTP request | Description |
|---|---|---|
| CreateEnvironment | Post /api/v3/organizations/{organisation}/applications/{application}/environments | Create a new environment |
| DeleteEnvironment | Delete /api/v3/organizations/{organisation}/applications/{application}/environments/{environment} | Delete an environment |
| GetEnvironment | Get /api/v3/organizations/{organisation}/applications/{application}/environments/{environment} | Get a single environment |
| GetEnvironmentLogs | Get /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/logs | Get the logs for an environment |
| GetEnvironmentMetrics | Get /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/metrics | Get the metrics for an environment |
| ListEnvironments | Get /api/v3/organizations/{organisation}/applications/{application}/environments | Get all environments for an application |
| ListSyncOperations | Get /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/sync/{type} | List the sync operations for an environment |
| SyncToEnvironment | Post /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/sync/{type} | Perform a sync operation from a source environment to the current environment |
| UpdateEnvironment | Put /api/v3/organizations/{organisation}/applications/{application}/environments/{environment} | Update Environment Compose Definition |
| UpdateEnvironmentState | Put /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/state | Update the state of an environment |
EnvironmentResponse CreateEnvironment(ctx, organisation, application).CreateEnvironmentRequest(createEnvironmentRequest).Execute()
Create a new environment
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organisation := "test-org" // string | The organisation ID
application := "test-app" // string | The application ID
createEnvironmentRequest := *openapiclient.NewCreateEnvironmentRequest("EnvName_example") // CreateEnvironmentRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnvironmentsAPI.CreateEnvironment(context.Background(), organisation, application).CreateEnvironmentRequest(createEnvironmentRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsAPI.CreateEnvironment``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateEnvironment`: EnvironmentResponse
fmt.Fprintf(os.Stdout, "Response from `EnvironmentsAPI.CreateEnvironment`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organisation | string | The organisation ID | |
| application | string | The application ID |
Other parameters are passed through a pointer to a apiCreateEnvironmentRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
createEnvironmentRequest | CreateEnvironmentRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteEnvironment(ctx, organisation, application, environment).Execute()
Delete an environment
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organisation := "test-org" // string | The organisation ID
application := "test-app" // string | The application ID
environment := "test-env" // string | The environment ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.EnvironmentsAPI.DeleteEnvironment(context.Background(), organisation, application, environment).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsAPI.DeleteEnvironment``: %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. | |
| organisation | string | The organisation ID | |
| application | string | The application ID | |
| environment | string | The environment ID |
Other parameters are passed through a pointer to a apiDeleteEnvironmentRequest 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]
EnvironmentResponse GetEnvironment(ctx, organisation, application, environment).Execute()
Get a single environment
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organisation := "test-org" // string | The organisation ID
application := "test-app" // string | The application ID
environment := "test-env" // string | The environment ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnvironmentsAPI.GetEnvironment(context.Background(), organisation, application, environment).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsAPI.GetEnvironment``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEnvironment`: EnvironmentResponse
fmt.Fprintf(os.Stdout, "Response from `EnvironmentsAPI.GetEnvironment`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organisation | string | The organisation ID | |
| application | string | The application ID | |
| environment | string | The environment ID |
Other parameters are passed through a pointer to a apiGetEnvironmentRequest 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]
GetEnvironmentLogs200Response GetEnvironmentLogs(ctx, organisation, application, environment).StartTime(startTime).EndTime(endTime).ContainerName(containerName).FilterPattern(filterPattern).Limit(limit).NextToken(nextToken).Execute()
Get the logs for an environment
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organisation := "test-org" // string | The organisation ID
application := "test-app" // string | The application ID
environment := "test-env" // string | The environment ID
startTime := "startTime_example" // string | Start time for log retrieval (ISO 8601 format or Unix timestamp) (optional)
endTime := "endTime_example" // string | End time for log retrieval (ISO 8601 format or Unix timestamp) (optional)
containerName := "containerName_example" // string | Filter logs by specific container name (optional)
filterPattern := "filterPattern_example" // string | CloudWatch Logs filter pattern for searching log content (optional)
limit := int32(56) // int32 | Maximum number of log entries to return per page (optional)
nextToken := "nextToken_example" // string | Pagination token from previous response for retrieving next page of results (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnvironmentsAPI.GetEnvironmentLogs(context.Background(), organisation, application, environment).StartTime(startTime).EndTime(endTime).ContainerName(containerName).FilterPattern(filterPattern).Limit(limit).NextToken(nextToken).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsAPI.GetEnvironmentLogs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEnvironmentLogs`: GetEnvironmentLogs200Response
fmt.Fprintf(os.Stdout, "Response from `EnvironmentsAPI.GetEnvironmentLogs`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organisation | string | The organisation ID | |
| application | string | The application ID | |
| environment | string | The environment ID |
Other parameters are passed through a pointer to a apiGetEnvironmentLogsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
startTime | string | Start time for log retrieval (ISO 8601 format or Unix timestamp) | endTime | string | End time for log retrieval (ISO 8601 format or Unix timestamp) | containerName | string | Filter logs by specific container name | filterPattern | string | CloudWatch Logs filter pattern for searching log content | limit | int32 | Maximum number of log entries to return per page | nextToken | string | Pagination token from previous response for retrieving next page of results |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} GetEnvironmentMetrics(ctx, organisation, application, environment).StartTime(startTime).EndTime(endTime).Period(period).Statistics(statistics).ContainerName(containerName).Execute()
Get the metrics for an environment
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organisation := "test-org" // string | The organisation ID
application := "test-app" // string | The application ID
environment := "test-env" // string | The environment ID
startTime := int32(56) // int32 | Start time for metrics retrieval (Unix timestamp in milliseconds) (optional)
endTime := int32(56) // int32 | End time for metrics retrieval (Unix timestamp in milliseconds) (optional)
period := int32(56) // int32 | Period in seconds for metric aggregation (e.g., 60 for 1 minute, 300 for 5 minutes) (optional)
statistics := "statistics_example" // string | Comma-separated list of CloudWatch statistics (e.g., Average, Maximum, Minimum, Sum, SampleCount) (optional)
containerName := "containerName_example" // string | Filter metrics by specific container name (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnvironmentsAPI.GetEnvironmentMetrics(context.Background(), organisation, application, environment).StartTime(startTime).EndTime(endTime).Period(period).Statistics(statistics).ContainerName(containerName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsAPI.GetEnvironmentMetrics``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEnvironmentMetrics`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `EnvironmentsAPI.GetEnvironmentMetrics`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organisation | string | The organisation ID | |
| application | string | The application ID | |
| environment | string | The environment ID |
Other parameters are passed through a pointer to a apiGetEnvironmentMetricsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
startTime | int32 | Start time for metrics retrieval (Unix timestamp in milliseconds) | endTime | int32 | End time for metrics retrieval (Unix timestamp in milliseconds) | period | int32 | Period in seconds for metric aggregation (e.g., 60 for 1 minute, 300 for 5 minutes) | statistics | string | Comma-separated list of CloudWatch statistics (e.g., Average, Maximum, Minimum, Sum, SampleCount) | containerName | string | Filter metrics by specific container name |
map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]EnvironmentSummary ListEnvironments(ctx, organisation, application).Execute()
Get all environments for an application
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organisation := "test-org" // string | The organisation ID
application := "test-app" // string | The application ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnvironmentsAPI.ListEnvironments(context.Background(), organisation, application).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsAPI.ListEnvironments``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListEnvironments`: []EnvironmentSummary
fmt.Fprintf(os.Stdout, "Response from `EnvironmentsAPI.ListEnvironments`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organisation | string | The organisation ID | |
| application | string | The application ID |
Other parameters are passed through a pointer to a apiListEnvironmentsRequest 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]
[]SyncOperation ListSyncOperations(ctx, organisation, application, environment, type_).Execute()
List the sync operations for an environment
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organisation := "test-org" // string | The organisation ID
application := "test-app" // string | The application ID
environment := "test-env" // string | The environment ID
type_ := "type__example" // string | The sync type
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnvironmentsAPI.ListSyncOperations(context.Background(), organisation, application, environment, type_).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsAPI.ListSyncOperations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListSyncOperations`: []SyncOperation
fmt.Fprintf(os.Stdout, "Response from `EnvironmentsAPI.ListSyncOperations`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organisation | string | The organisation ID | |
| application | string | The application ID | |
| environment | string | The environment ID | |
| type_ | string | The sync type |
Other parameters are passed through a pointer to a apiListSyncOperationsRequest 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]
SyncOperation SyncToEnvironment(ctx, organisation, application, environment, type_).SyncToEnvironmentRequest(syncToEnvironmentRequest).Execute()
Perform a sync operation from a source environment to the current environment
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organisation := "test-org" // string | The organisation ID
application := "test-app" // string | The application ID
environment := "test-env" // string | The environment ID
type_ := "type__example" // string | The sync type
syncToEnvironmentRequest := *openapiclient.NewSyncToEnvironmentRequest() // SyncToEnvironmentRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnvironmentsAPI.SyncToEnvironment(context.Background(), organisation, application, environment, type_).SyncToEnvironmentRequest(syncToEnvironmentRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsAPI.SyncToEnvironment``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SyncToEnvironment`: SyncOperation
fmt.Fprintf(os.Stdout, "Response from `EnvironmentsAPI.SyncToEnvironment`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organisation | string | The organisation ID | |
| application | string | The application ID | |
| environment | string | The environment ID | |
| type_ | string | The sync type |
Other parameters are passed through a pointer to a apiSyncToEnvironmentRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
syncToEnvironmentRequest | SyncToEnvironmentRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateEnvironment(ctx, organisation, application, environment).UpdateEnvironmentRequest(updateEnvironmentRequest).Execute()
Update Environment Compose Definition
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organisation := "organisation_example" // string | The organisation ID
application := "application_example" // string | The application ID
environment := "environment_example" // string | The environment ID
updateEnvironmentRequest := *openapiclient.NewUpdateEnvironmentRequest(*openapiclient.NewCompose()) // UpdateEnvironmentRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.EnvironmentsAPI.UpdateEnvironment(context.Background(), organisation, application, environment).UpdateEnvironmentRequest(updateEnvironmentRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsAPI.UpdateEnvironment``: %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. | |
| organisation | string | The organisation ID | |
| application | string | The application ID | |
| environment | string | The environment ID |
Other parameters are passed through a pointer to a apiUpdateEnvironmentRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
updateEnvironmentRequest | UpdateEnvironmentRequest | |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateEnvironmentState(ctx, organisation, application, environment).UpdateEnvironmentStateRequest(updateEnvironmentStateRequest).Execute()
Update the state of an environment
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organisation := "test-org" // string | The organisation ID
application := "test-app" // string | The application ID
environment := "test-env" // string | The environment ID
updateEnvironmentStateRequest := *openapiclient.NewUpdateEnvironmentStateRequest() // UpdateEnvironmentStateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.EnvironmentsAPI.UpdateEnvironmentState(context.Background(), organisation, application, environment).UpdateEnvironmentStateRequest(updateEnvironmentStateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsAPI.UpdateEnvironmentState``: %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. | |
| organisation | string | The organisation ID | |
| application | string | The application ID | |
| environment | string | The environment ID |
Other parameters are passed through a pointer to a apiUpdateEnvironmentStateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
updateEnvironmentStateRequest | UpdateEnvironmentStateRequest | |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]