All URIs are relative to https://api.qovery.com
Method | HTTP request | Description |
---|---|---|
DeleteDatabase | Delete /database/{databaseId} | Delete a database |
EditDatabase | Put /database/{databaseId} | Edit a database |
EditDatabaseCredentials | Put /database/{databaseId}/masterCredentials | Edit database master credentials |
GetDatabase | Get /database/{databaseId} | Get database by ID |
GetDatabaseMasterCredentials | Get /database/{databaseId}/masterCredentials | Get master credentials of the database |
GetDatabaseStatus | Get /database/{databaseId}/status | Get database status |
ListDatabaseVersion | Get /database/{databaseId}/version | List eligible versions for the database |
DeleteDatabase(ctx, databaseId).Execute()
Delete a 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)
r, err := apiClient.DatabaseMainCallsAPI.DeleteDatabase(context.Background(), databaseId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DatabaseMainCallsAPI.DeleteDatabase``: %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. | |
databaseId | string | Database ID |
Other parameters are passed through a pointer to a apiDeleteDatabaseRequest 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]
Database EditDatabase(ctx, databaseId).DatabaseEditRequest(databaseEditRequest).Execute()
Edit a 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
databaseEditRequest := *openapiclient.NewDatabaseEditRequest() // DatabaseEditRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DatabaseMainCallsAPI.EditDatabase(context.Background(), databaseId).DatabaseEditRequest(databaseEditRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DatabaseMainCallsAPI.EditDatabase``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditDatabase`: Database
fmt.Fprintf(os.Stdout, "Response from `DatabaseMainCallsAPI.EditDatabase`: %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 apiEditDatabaseRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
databaseEditRequest | DatabaseEditRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Credentials EditDatabaseCredentials(ctx, databaseId).CredentialsRequest(credentialsRequest).Execute()
Edit database master credentials
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
databaseId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Database ID
credentialsRequest := *openapiclient.NewCredentialsRequest("Login_example", "Password_example") // CredentialsRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DatabaseMainCallsAPI.EditDatabaseCredentials(context.Background(), databaseId).CredentialsRequest(credentialsRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DatabaseMainCallsAPI.EditDatabaseCredentials``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditDatabaseCredentials`: Credentials
fmt.Fprintf(os.Stdout, "Response from `DatabaseMainCallsAPI.EditDatabaseCredentials`: %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 apiEditDatabaseCredentialsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
credentialsRequest | CredentialsRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Database GetDatabase(ctx, databaseId).Execute()
Get database by ID
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.DatabaseMainCallsAPI.GetDatabase(context.Background(), databaseId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DatabaseMainCallsAPI.GetDatabase``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetDatabase`: Database
fmt.Fprintf(os.Stdout, "Response from `DatabaseMainCallsAPI.GetDatabase`: %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 apiGetDatabaseRequest 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]
Credentials GetDatabaseMasterCredentials(ctx, databaseId).Execute()
Get master credentials of the 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.DatabaseMainCallsAPI.GetDatabaseMasterCredentials(context.Background(), databaseId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DatabaseMainCallsAPI.GetDatabaseMasterCredentials``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetDatabaseMasterCredentials`: Credentials
fmt.Fprintf(os.Stdout, "Response from `DatabaseMainCallsAPI.GetDatabaseMasterCredentials`: %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 apiGetDatabaseMasterCredentialsRequest 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 GetDatabaseStatus(ctx, databaseId).Execute()
Get database status
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.DatabaseMainCallsAPI.GetDatabaseStatus(context.Background(), databaseId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DatabaseMainCallsAPI.GetDatabaseStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetDatabaseStatus`: Status
fmt.Fprintf(os.Stdout, "Response from `DatabaseMainCallsAPI.GetDatabaseStatus`: %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 apiGetDatabaseStatusRequest 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]
VersionResponseList ListDatabaseVersion(ctx, databaseId).Execute()
List eligible versions for the 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.DatabaseMainCallsAPI.ListDatabaseVersion(context.Background(), databaseId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DatabaseMainCallsAPI.ListDatabaseVersion``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListDatabaseVersion`: VersionResponseList
fmt.Fprintf(os.Stdout, "Response from `DatabaseMainCallsAPI.ListDatabaseVersion`: %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 apiListDatabaseVersionRequest 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]