Skip to content

Latest commit

 

History

History
211 lines (134 loc) · 6 KB

File metadata and controls

211 lines (134 loc) · 6 KB

\MysqlBackupServiceApi

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}

MysqlBackupServiceGetList

MysqlBackupGetListResponse MysqlBackupServiceGetList(ctx).Filter(filter).Execute()

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiMysqlBackupServiceGetListRequest struct via the builder pattern

Name Type Description Notes
filter string

Return type

MysqlBackupGetListResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

MysqlBackupServiceGetOrders

MysqlBackupGetOrdersResponse MysqlBackupServiceGetOrders(ctx).Limit(limit).Offset(offset).Execute()

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiMysqlBackupServiceGetOrdersRequest struct via the builder pattern

Name Type Description Notes
limit int32
offset int32

Return type

MysqlBackupGetOrdersResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

MysqlBackupServiceRestore

MysqlBackupRestoreResponse MysqlBackupServiceRestore(ctx, copyId).MysqlBackupRestoreRequest(mysqlBackupRestoreRequest).Execute()

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
copyId string

Other Parameters

Other parameters are passed through a pointer to a apiMysqlBackupServiceRestoreRequest struct via the builder pattern

Name Type Description Notes

mysqlBackupRestoreRequest | MysqlBackupRestoreRequest | |

Return type

MysqlBackupRestoreResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]