BackupsApi
Method
HTTP request
Description
BackupsFindById
var result BackupRead = BackupsFindById(ctx, backupId)
.Execute()Example
package main
import (
"context"
"fmt"
"os"
mariadb "github.com/ionos-cloud/sdk-go-bundle/products/mariadb"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
backupId := "45ca67fb-8b07-5783-9c97-2d35acceb084" // string | The ID (UUID) of the Backup.
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := mariadb.NewAPIClient(configuration)
resource, resp, err := apiClient.BackupsApi.BackupsFindById(context.Background(), backupId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsApi.BackupsFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `BackupsFindById`: BackupRead
fmt.Fprintf(os.Stdout, "Response from `BackupsApi.BackupsFindById`: %v\n", resource)
}Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
HTTP request headers
BackupsGet
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
Last updated
Was this helpful?