All URIs are relative to https://api.beget.com
| Method | HTTP request | Description |
|---|---|---|
| MysqlBackupServiceGetList | Get /v1/cloud/mysql/backup | |
| MysqlBackupServiceGetOrders | Get /v1/cloud/mysql/backup/orders | |
| MysqlBackupServiceRestore | Post /v1/cloud/mysql/backup/{copy_id} |
MysqlBackupGetListResponse MysqlBackupServiceGetList(ctx).Filter(filter).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/LTD-Beget/openapi-cloud-go"
)
func main() {
filter := "filter_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MysqlBackupServiceApi.MysqlBackupServiceGetList(context.Background()).Filter(filter).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MysqlBackupServiceApi.MysqlBackupServiceGetList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MysqlBackupServiceGetList`: MysqlBackupGetListResponse
fmt.Fprintf(os.Stdout, "Response from `MysqlBackupServiceApi.MysqlBackupServiceGetList`: %v\n", resp)
}Other parameters are passed through a pointer to a apiMysqlBackupServiceGetListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| filter | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MysqlBackupGetOrdersResponse MysqlBackupServiceGetOrders(ctx).Limit(limit).Offset(offset).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/LTD-Beget/openapi-cloud-go"
)
func main() {
limit := int32(56) // int32 | (optional)
offset := int32(56) // int32 | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MysqlBackupServiceApi.MysqlBackupServiceGetOrders(context.Background()).Limit(limit).Offset(offset).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MysqlBackupServiceApi.MysqlBackupServiceGetOrders``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MysqlBackupServiceGetOrders`: MysqlBackupGetOrdersResponse
fmt.Fprintf(os.Stdout, "Response from `MysqlBackupServiceApi.MysqlBackupServiceGetOrders`: %v\n", resp)
}Other parameters are passed through a pointer to a apiMysqlBackupServiceGetOrdersRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| limit | int32 | ||
| offset | int32 |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MysqlBackupRestoreResponse MysqlBackupServiceRestore(ctx, copyId).MysqlBackupRestoreRequest(mysqlBackupRestoreRequest).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/LTD-Beget/openapi-cloud-go"
)
func main() {
copyId := "copyId_example" // string |
mysqlBackupRestoreRequest := *openapiclient.NewMysqlBackupRestoreRequest() // MysqlBackupRestoreRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MysqlBackupServiceApi.MysqlBackupServiceRestore(context.Background(), copyId).MysqlBackupRestoreRequest(mysqlBackupRestoreRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MysqlBackupServiceApi.MysqlBackupServiceRestore``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MysqlBackupServiceRestore`: MysqlBackupRestoreResponse
fmt.Fprintf(os.Stdout, "Response from `MysqlBackupServiceApi.MysqlBackupServiceRestore`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| copyId | string |
Other parameters are passed through a pointer to a apiMysqlBackupServiceRestoreRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
mysqlBackupRestoreRequest | MysqlBackupRestoreRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]