All URIs are relative to https://api.qovery.com
| Method | HTTP request | Description |
|---|---|---|
| DeleteEnvironment | Delete /environment/{environmentId} | Delete an environment |
| EditEnvironment | Put /environment/{environmentId} | Edit an environment |
| GetEnvironment | Get /environment/{environmentId} | Get environment by ID |
| GetEnvironmentStatus | Get /environment/{environmentId}/status | Get environment status |
| GetEnvironmentStatuses | Get /environment/{environmentId}/statuses | Get environment statuses with services status |
| GetEnvironmentStatusesWithStages | Get /environment/{environmentId}/statusesWithStages | Get environment statuses with stages |
| ListDeploymentRequestByEnvironmentId | Get /environment/{environmentId}/deploymentQueue | List Deployment Queue Request By EnvironmentId |
| ListDeploymentRequestByServiceId | Get /service/{serviceId}/deploymentQueue | List Deployment Queue Request By ServiceId |
| ListServicesByEnvironmentId | Get /environment/{environmentId}/services | List Services By EnvironmentId |
DeleteEnvironment(ctx, environmentId).SkipReconcile(skipReconcile).Execute()
Delete an environment
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Environment ID
skipReconcile := true // bool | When true, skip the pre-destroy apply/reconcile and tear down best-effort, tolerating already-absent resources. (optional) (default to false)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.EnvironmentMainCallsAPI.DeleteEnvironment(context.Background(), environmentId).SkipReconcile(skipReconcile).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentMainCallsAPI.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. | |
| environmentId | string | Environment ID |
Other parameters are passed through a pointer to a apiDeleteEnvironmentRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
skipReconcile | bool | When true, skip the pre-destroy apply/reconcile and tear down best-effort, tolerating already-absent resources. | [default to false]
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Environment EditEnvironment(ctx, environmentId).EnvironmentEditRequest(environmentEditRequest).Execute()
Edit an environment
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Environment ID
environmentEditRequest := *openapiclient.NewEnvironmentEditRequest() // EnvironmentEditRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnvironmentMainCallsAPI.EditEnvironment(context.Background(), environmentId).EnvironmentEditRequest(environmentEditRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentMainCallsAPI.EditEnvironment``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditEnvironment`: Environment
fmt.Fprintf(os.Stdout, "Response from `EnvironmentMainCallsAPI.EditEnvironment`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| environmentId | string | Environment ID |
Other parameters are passed through a pointer to a apiEditEnvironmentRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
environmentEditRequest | EnvironmentEditRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Environment GetEnvironment(ctx, environmentId).Execute()
Get environment by ID
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Environment ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnvironmentMainCallsAPI.GetEnvironment(context.Background(), environmentId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentMainCallsAPI.GetEnvironment``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEnvironment`: Environment
fmt.Fprintf(os.Stdout, "Response from `EnvironmentMainCallsAPI.GetEnvironment`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| environmentId | string | 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]
EnvironmentStatus GetEnvironmentStatus(ctx, environmentId).Execute()
Get environment status
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Environment ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnvironmentMainCallsAPI.GetEnvironmentStatus(context.Background(), environmentId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentMainCallsAPI.GetEnvironmentStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEnvironmentStatus`: EnvironmentStatus
fmt.Fprintf(os.Stdout, "Response from `EnvironmentMainCallsAPI.GetEnvironmentStatus`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| environmentId | string | Environment ID |
Other parameters are passed through a pointer to a apiGetEnvironmentStatusRequest 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]
EnvironmentStatuses GetEnvironmentStatuses(ctx, environmentId).Execute()
Get environment statuses with services status
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Environment ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnvironmentMainCallsAPI.GetEnvironmentStatuses(context.Background(), environmentId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentMainCallsAPI.GetEnvironmentStatuses``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEnvironmentStatuses`: EnvironmentStatuses
fmt.Fprintf(os.Stdout, "Response from `EnvironmentMainCallsAPI.GetEnvironmentStatuses`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| environmentId | string | Environment ID |
Other parameters are passed through a pointer to a apiGetEnvironmentStatusesRequest 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]
EnvironmentStatusesWithStages GetEnvironmentStatusesWithStages(ctx, environmentId).Execute()
Get environment statuses with stages
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Environment ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnvironmentMainCallsAPI.GetEnvironmentStatusesWithStages(context.Background(), environmentId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentMainCallsAPI.GetEnvironmentStatusesWithStages``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEnvironmentStatusesWithStages`: EnvironmentStatusesWithStages
fmt.Fprintf(os.Stdout, "Response from `EnvironmentMainCallsAPI.GetEnvironmentStatusesWithStages`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| environmentId | string | Environment ID |
Other parameters are passed through a pointer to a apiGetEnvironmentStatusesWithStagesRequest 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]
ListDeploymentRequestByEnvironmentId200Response ListDeploymentRequestByEnvironmentId(ctx, environmentId).Execute()
List Deployment Queue Request By EnvironmentId
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnvironmentMainCallsAPI.ListDeploymentRequestByEnvironmentId(context.Background(), environmentId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentMainCallsAPI.ListDeploymentRequestByEnvironmentId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListDeploymentRequestByEnvironmentId`: ListDeploymentRequestByEnvironmentId200Response
fmt.Fprintf(os.Stdout, "Response from `EnvironmentMainCallsAPI.ListDeploymentRequestByEnvironmentId`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| environmentId | string |
Other parameters are passed through a pointer to a apiListDeploymentRequestByEnvironmentIdRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
ListDeploymentRequestByEnvironmentId200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListDeploymentRequestByServiceId200Response ListDeploymentRequestByServiceId(ctx, serviceId).Execute()
List Deployment Queue Request By ServiceId
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
serviceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnvironmentMainCallsAPI.ListDeploymentRequestByServiceId(context.Background(), serviceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentMainCallsAPI.ListDeploymentRequestByServiceId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListDeploymentRequestByServiceId`: ListDeploymentRequestByServiceId200Response
fmt.Fprintf(os.Stdout, "Response from `EnvironmentMainCallsAPI.ListDeploymentRequestByServiceId`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| serviceId | string |
Other parameters are passed through a pointer to a apiListDeploymentRequestByServiceIdRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
ListDeploymentRequestByServiceId200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListServicesByEnvironmentId200Response ListServicesByEnvironmentId(ctx, environmentId).Execute()
List Services By EnvironmentId
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
environmentId := "environmentId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnvironmentMainCallsAPI.ListServicesByEnvironmentId(context.Background(), environmentId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentMainCallsAPI.ListServicesByEnvironmentId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListServicesByEnvironmentId`: ListServicesByEnvironmentId200Response
fmt.Fprintf(os.Stdout, "Response from `EnvironmentMainCallsAPI.ListServicesByEnvironmentId`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| environmentId | string |
Other parameters are passed through a pointer to a apiListServicesByEnvironmentIdRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
ListServicesByEnvironmentId200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]