All URIs are relative to https://api.qovery.com
| Method | HTTP request | Description |
|---|---|---|
| DeployDatabase | Post /database/{databaseId}/deploy | Deploy database |
| RebootDatabase | Post /database/{databaseId}/restart-service | Retart database |
| RedeployDatabase | Post /database/{databaseId}/redeploy | Redeploy database |
| StopDatabase | Post /database/{databaseId}/stop | Stop database |
| UninstallDatabase | Post /database/{databaseId}/uninstall | Uninstall database |
Status DeployDatabase(ctx, databaseId).ApplyImmediately(applyImmediately).Execute()
Deploy database
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
databaseId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Database ID
applyImmediately := true // bool | Apply immediately regardless of the maintenance window (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DatabaseActionsAPI.DeployDatabase(context.Background(), databaseId).ApplyImmediately(applyImmediately).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DatabaseActionsAPI.DeployDatabase``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeployDatabase`: Status
fmt.Fprintf(os.Stdout, "Response from `DatabaseActionsAPI.DeployDatabase`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| databaseId | string | Database ID |
Other parameters are passed through a pointer to a apiDeployDatabaseRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
applyImmediately | bool | Apply immediately regardless of the maintenance window |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Status RebootDatabase(ctx, databaseId).Execute()
Retart database
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
databaseId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Database ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DatabaseActionsAPI.RebootDatabase(context.Background(), databaseId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DatabaseActionsAPI.RebootDatabase``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RebootDatabase`: Status
fmt.Fprintf(os.Stdout, "Response from `DatabaseActionsAPI.RebootDatabase`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| databaseId | string | Database ID |
Other parameters are passed through a pointer to a apiRebootDatabaseRequest 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]
Status RedeployDatabase(ctx, databaseId).ApplyImmediately(applyImmediately).Execute()
Redeploy database
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
databaseId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Database ID
applyImmediately := true // bool | Apply immediately regardless of the maintenance window (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DatabaseActionsAPI.RedeployDatabase(context.Background(), databaseId).ApplyImmediately(applyImmediately).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DatabaseActionsAPI.RedeployDatabase``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RedeployDatabase`: Status
fmt.Fprintf(os.Stdout, "Response from `DatabaseActionsAPI.RedeployDatabase`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| databaseId | string | Database ID |
Other parameters are passed through a pointer to a apiRedeployDatabaseRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
applyImmediately | bool | Apply immediately regardless of the maintenance window |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Status StopDatabase(ctx, databaseId).Execute()
Stop database
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
databaseId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Database ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DatabaseActionsAPI.StopDatabase(context.Background(), databaseId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DatabaseActionsAPI.StopDatabase``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StopDatabase`: Status
fmt.Fprintf(os.Stdout, "Response from `DatabaseActionsAPI.StopDatabase`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| databaseId | string | Database ID |
Other parameters are passed through a pointer to a apiStopDatabaseRequest 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]
Status UninstallDatabase(ctx, databaseId).Body(body).Execute()
Uninstall database
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
databaseId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Database ID
body := map[string]interface{}{ ... } // map[string]interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DatabaseActionsAPI.UninstallDatabase(context.Background(), databaseId).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DatabaseActionsAPI.UninstallDatabase``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UninstallDatabase`: Status
fmt.Fprintf(os.Stdout, "Response from `DatabaseActionsAPI.UninstallDatabase`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| databaseId | string | Database ID |
Other parameters are passed through a pointer to a apiUninstallDatabaseRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
body | map[string]interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]