All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| AdvancedRestorePreflight | Post /api/v1/customers/{cUUID}/restore/advanced_restore_preflight | Advanced Restore Preflight checks |
| CreateBackupSchedule | Post /api/v1/customers/{cUUID}/create_backup_schedule | Create Backup Schedule - deprecated |
| CreateBackupScheduleAsync | Post /api/v1/customers/{cUUID}/create_backup_schedule_async | Create Backup Schedule Async |
| CreateMultiTableBackup | Put /api/v1/customers/{cUUID}/universes/{uniUUID}/multi_table_backup | Create a multi-table backup - deprecated |
| CreateSingleTableBackup | Put /api/v1/customers/{cUUID}/universes/{uniUUID}/tables/{tableUUID}/create_backup | Create a single-table backup - deprecated |
| Createbackup | Post /api/v1/customers/{cUUID}/backups | Create a backup V2 |
| DeleteBackups | Delete /api/v1/customers/{cUUID}/backups | Delete Backups - deprecated |
| DeleteBackupsV2 | Post /api/v1/customers/{cUUID}/backups/delete | Delete backups V2 |
| EditBackupV2 | Put /api/v1/customers/{cUUID}/backups/{backupUUID} | Edit a backup V2 |
| FetchBackupsByTaskUUID | Get /api/v1/customers/{cUUID}/universes/{uniUUID}/backups/tasks/{tUUID} | List backups associated with a task |
| GetBackupV2 | Get /api/v1/customers/{cUUID}/backups/{backupUUID} | Get Backup V2 |
| GetThrottleParams | Get /api/v1/customers/{cUUID}/universes/{uniUUID}/ybc_throttle_params | Get throttle params from YB-Controller |
| ListBackupRestoresV2 | Post /api/v1/customers/{cUUID}/restore/page | List Backup Restores (paginated) |
| ListBackupsV2 | Post /api/v1/customers/{cUUID}/backups/page | List Backups (paginated) V2 |
| ListIncrementalBackups | Get /api/v1/customers/{cUUID}/backups/{backupUUID}/list_increments | List Incremental backups |
| ListOfBackups | Get /api/v1/customers/{cUUID}/universes/{uniUUID}/backups | List a customer's backups - deprecated |
| ListRestorableKeyspaceTables | Get /api/v1/customers/{cUUID}/backups/{baseBackupUUID}/restorable_keyspace_tables | List of all restorable entities in the incremental backup chain |
| Restore | Post /api/v1/customers/{cUUID}/universes/{uniUUID}/backups/restore | Restore from a backup - deprecated |
| RestoreBackupV2 | Post /api/v1/customers/{cUUID}/restore | Restore from a backup V2 |
| RestorePreflight | Post /api/v1/customers/{cUUID}/restore/preflight | Restore preflight checks |
| SetThrottleParams | Post /api/v1/customers/{cUUID}/universes/{uniUUID}/ybc_throttle_params | Set throttle params in YB-Controller - deprecated |
| SetUniverseBackupFlag | Put /api/v1/customers/{cUUID}/universes/{uniUUID}/update_backup_state | Set a universe's backup flag |
| StopBackup | Post /api/v1/customers/{cUUID}/backups/{backupUUID}/stop | Stop a backup |
| UniverseBackup | Post /api/v1/customers/{customerUUID}/universes/{universeUUID}/universe_backup | Create a Universe Backup |
| ValidateKeyspaceTablesToRestore | Post /api/v1/customers/{cUUID}/restore/validate_restorable_keyspace_tables | Validate keyspace and tables to Restore against Backup |
RestorePreflightResponse AdvancedRestorePreflight(ctx, cUUID).AdvancedRestorePreflightParams(advancedRestorePreflightParams).Request(request).Execute()
Advanced Restore Preflight checks
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
advancedRestorePreflightParams := *openapiclient.NewParametersForAdvancedRestorePreflightChecks([]string{"BackupLocations_example"}, "StorageConfigUUID_example", "UniverseUUID_example") // ParametersForAdvancedRestorePreflightChecks | Parameters for advanced restore preflight checks
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.AdvancedRestorePreflight(context.Background(), cUUID).AdvancedRestorePreflightParams(advancedRestorePreflightParams).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.AdvancedRestorePreflight``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdvancedRestorePreflight`: RestorePreflightResponse
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.AdvancedRestorePreflight`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string |
Other parameters are passed through a pointer to a apiAdvancedRestorePreflightRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
advancedRestorePreflightParams | ParametersForAdvancedRestorePreflightChecks | Parameters for advanced restore preflight checks | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Schedule CreateBackupSchedule(ctx, cUUID).Backup(backup).Request(request).Execute()
Create Backup Schedule - deprecated
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
backup := *openapiclient.NewBackupRequestParams("BackupUUID_example", *openapiclient.NewUsers("username1@example.com", []string{"GroupMemberships_example"}, false), "PlatformUrl_example", int32(123), int32(123), "StorageConfigUUID_example", "UniverseUUID_example") // BackupRequestParams | Parameters of the backup to be restored
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.CreateBackupSchedule(context.Background(), cUUID).Backup(backup).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.CreateBackupSchedule``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateBackupSchedule`: Schedule
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.CreateBackupSchedule`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string |
Other parameters are passed through a pointer to a apiCreateBackupScheduleRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
backup | BackupRequestParams | Parameters of the backup to be restored | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPTask CreateBackupScheduleAsync(ctx, cUUID).Backup(backup).Request(request).Execute()
Create Backup Schedule Async
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
backup := *openapiclient.NewBackupRequestParams("BackupUUID_example", *openapiclient.NewUsers("username1@example.com", []string{"GroupMemberships_example"}, false), "PlatformUrl_example", int32(123), int32(123), "StorageConfigUUID_example", "UniverseUUID_example") // BackupRequestParams | Parameters of the backup to be restored
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.CreateBackupScheduleAsync(context.Background(), cUUID).Backup(backup).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.CreateBackupScheduleAsync``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateBackupScheduleAsync`: YBPTask
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.CreateBackupScheduleAsync`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string |
Other parameters are passed through a pointer to a apiCreateBackupScheduleAsyncRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
backup | BackupRequestParams | Parameters of the backup to be restored | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Schedule CreateMultiTableBackup(ctx, cUUID, uniUUID).TableBackup(tableBackup).Request(request).Execute()
Create a multi-table backup - deprecated
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uniUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
tableBackup := *openapiclient.NewMultiTableBackupRequestParams(*openapiclient.NewUsers("username1@example.com", []string{"GroupMemberships_example"}, false), false, "PlatformUrl_example", int32(123), int32(123), "StorageConfigUUID_example", int64(123)) // MultiTableBackupRequestParams | Table backup data to be created
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.CreateMultiTableBackup(context.Background(), cUUID, uniUUID).TableBackup(tableBackup).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.CreateMultiTableBackup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateMultiTableBackup`: Schedule
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.CreateMultiTableBackup`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| uniUUID | string |
Other parameters are passed through a pointer to a apiCreateMultiTableBackupRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
tableBackup | MultiTableBackupRequestParams | Table backup data to be created | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPTask CreateSingleTableBackup(ctx, cUUID, uniUUID, tableUUID).Backup(backup).Request(request).Execute()
Create a single-table backup - deprecated
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uniUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
tableUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
backup := *openapiclient.NewBackupTableParams(*openapiclient.NewUsers("username1@example.com", []string{"GroupMemberships_example"}, false), false, "PlatformUrl_example", int32(123), int32(123), "StorageConfigUUID_example", int64(123)) // BackupTableParams | Backup data to be created
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.CreateSingleTableBackup(context.Background(), cUUID, uniUUID, tableUUID).Backup(backup).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.CreateSingleTableBackup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateSingleTableBackup`: YBPTask
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.CreateSingleTableBackup`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| uniUUID | string | ||
| tableUUID | string |
Other parameters are passed through a pointer to a apiCreateSingleTableBackupRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
backup | BackupTableParams | Backup data to be created | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPTask Createbackup(ctx, cUUID).Backup(backup).Request(request).Execute()
Create a backup V2
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
backup := *openapiclient.NewBackupRequestParams("BackupUUID_example", *openapiclient.NewUsers("username1@example.com", []string{"GroupMemberships_example"}, false), "PlatformUrl_example", int32(123), int32(123), "StorageConfigUUID_example", "UniverseUUID_example") // BackupRequestParams | Backup data to be created
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.Createbackup(context.Background(), cUUID).Backup(backup).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.Createbackup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Createbackup`: YBPTask
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.Createbackup`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string |
Other parameters are passed through a pointer to a apiCreatebackupRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
backup | BackupRequestParams | Backup data to be created | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} DeleteBackups(ctx, cUUID).Request(request).Execute()
Delete Backups - deprecated
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.DeleteBackups(context.Background(), cUUID).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.DeleteBackups``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteBackups`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.DeleteBackups`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string |
Other parameters are passed through a pointer to a apiDeleteBackupsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
request | interface{} | |
map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} DeleteBackupsV2(ctx, cUUID).DeleteBackup(deleteBackup).Request(request).Execute()
Delete backups V2
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
deleteBackup := *openapiclient.NewDeleteBackupParams([]openapiclient.DeleteBackupInfo{*openapiclient.NewDeleteBackupInfo("BackupUUID_example")}) // DeleteBackupParams | Parameters of the backup to be deleted
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.DeleteBackupsV2(context.Background(), cUUID).DeleteBackup(deleteBackup).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.DeleteBackupsV2``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteBackupsV2`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.DeleteBackupsV2`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string |
Other parameters are passed through a pointer to a apiDeleteBackupsV2Request struct via the builder pattern
| Name | Type | Description | Notes |
|---|
deleteBackup | DeleteBackupParams | Parameters of the backup to be deleted | request | interface{} | |
map[string]interface{}
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Backup EditBackupV2(ctx, cUUID, backupUUID).Backup(backup).Request(request).Execute()
Edit a backup V2
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
backupUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
backup := *openapiclient.NewEditBackupParams() // EditBackupParams | Parameters of the backup to be edited
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.EditBackupV2(context.Background(), cUUID, backupUUID).Backup(backup).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.EditBackupV2``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditBackupV2`: Backup
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.EditBackupV2`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| backupUUID | string |
Other parameters are passed through a pointer to a apiEditBackupV2Request struct via the builder pattern
| Name | Type | Description | Notes |
|---|
backup | EditBackupParams | Parameters of the backup to be edited | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Backup FetchBackupsByTaskUUID(ctx, cUUID, uniUUID, tUUID).Execute()
List backups associated with a task
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uniUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
tUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.FetchBackupsByTaskUUID(context.Background(), cUUID, uniUUID, tUUID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.FetchBackupsByTaskUUID``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `FetchBackupsByTaskUUID`: []Backup
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.FetchBackupsByTaskUUID`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| uniUUID | string | ||
| tUUID | string |
Other parameters are passed through a pointer to a apiFetchBackupsByTaskUUIDRequest 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]
Backup GetBackupV2(ctx, cUUID, backupUUID).Execute()
Get Backup V2
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
backupUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.GetBackupV2(context.Background(), cUUID, backupUUID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.GetBackupV2``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetBackupV2`: Backup
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.GetBackupV2`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| backupUUID | string |
Other parameters are passed through a pointer to a apiGetBackupV2Request 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]
YbcThrottleParametersResponse GetThrottleParams(ctx, cUUID, uniUUID).Execute()
Get throttle params from YB-Controller
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uniUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.GetThrottleParams(context.Background(), cUUID, uniUUID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.GetThrottleParams``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetThrottleParams`: YbcThrottleParametersResponse
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.GetThrottleParams`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| uniUUID | string |
Other parameters are passed through a pointer to a apiGetThrottleParamsRequest 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]
RestorePagedApiResponse ListBackupRestoresV2(ctx, cUUID).PageRestoresRequest(pageRestoresRequest).Request(request).Execute()
List Backup Restores (paginated)
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
pageRestoresRequest := *openapiclient.NewRestorePagedApiQuery("Direction_example", *openapiclient.NewRestoreApiFilter(false, []string{"RestoreUUIDList_example"}, false, []string{"SourceUniverseNameList_example"}, []string{"States_example"}, []string{"StorageConfigUUIDList_example"}, []string{"UniverseNameList_example"}, []string{"UniverseUUIDList_example"}), int32(123), false, int32(123), "SortBy_example") // RestorePagedApiQuery |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.ListBackupRestoresV2(context.Background(), cUUID).PageRestoresRequest(pageRestoresRequest).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.ListBackupRestoresV2``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListBackupRestoresV2`: RestorePagedApiResponse
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.ListBackupRestoresV2`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string |
Other parameters are passed through a pointer to a apiListBackupRestoresV2Request struct via the builder pattern
| Name | Type | Description | Notes |
|---|
pageRestoresRequest | RestorePagedApiQuery | | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BackupPagedApiResponse ListBackupsV2(ctx, cUUID).PageBackupsRequest(pageBackupsRequest).Request(request).Execute()
List Backups (paginated) V2
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
pageBackupsRequest := *openapiclient.NewBackupPagedApiQuery("Direction_example", *openapiclient.NewBackupApiFilter([]string{"BackupUUIDList_example"}, []string{"KeyspaceList_example"}, false, false, []string{"ScheduleUUIDList_example"}, false, []string{"States_example"}, []string{"StorageConfigUUIDList_example"}, []string{"UniverseNameList_example"}, []string{"UniverseUUIDList_example"}), int32(123), false, int32(123), "SortBy_example") // BackupPagedApiQuery |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.ListBackupsV2(context.Background(), cUUID).PageBackupsRequest(pageBackupsRequest).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.ListBackupsV2``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListBackupsV2`: BackupPagedApiResponse
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.ListBackupsV2`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string |
Other parameters are passed through a pointer to a apiListBackupsV2Request struct via the builder pattern
| Name | Type | Description | Notes |
|---|
pageBackupsRequest | BackupPagedApiQuery | | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]CommonBackupInfo ListIncrementalBackups(ctx, cUUID, backupUUID).Execute()
List Incremental backups
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
backupUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.ListIncrementalBackups(context.Background(), cUUID, backupUUID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.ListIncrementalBackups``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListIncrementalBackups`: []CommonBackupInfo
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.ListIncrementalBackups`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| backupUUID | string |
Other parameters are passed through a pointer to a apiListIncrementalBackupsRequest 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]
[]Backup ListOfBackups(ctx, cUUID, uniUUID).Execute()
List a customer's backups - deprecated
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uniUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.ListOfBackups(context.Background(), cUUID, uniUUID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.ListOfBackups``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListOfBackups`: []Backup
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.ListOfBackups`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| uniUUID | string |
Other parameters are passed through a pointer to a apiListOfBackupsRequest 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]
[]KeyspaceTables ListRestorableKeyspaceTables(ctx, cUUID, baseBackupUUID).Execute()
List of all restorable entities in the incremental backup chain
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
baseBackupUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.ListRestorableKeyspaceTables(context.Background(), cUUID, baseBackupUUID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.ListRestorableKeyspaceTables``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListRestorableKeyspaceTables`: []KeyspaceTables
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.ListRestorableKeyspaceTables`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| baseBackupUUID | string |
Other parameters are passed through a pointer to a apiListRestorableKeyspaceTablesRequest 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]
YBPTask Restore(ctx, cUUID, uniUUID).Backup(backup).Request(request).Execute()
Restore from a backup - deprecated
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uniUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
backup := *openapiclient.NewBackupTableParams(*openapiclient.NewUsers("username1@example.com", []string{"GroupMemberships_example"}, false), false, "PlatformUrl_example", int32(123), int32(123), "StorageConfigUUID_example", int64(123)) // BackupTableParams | Parameters of the backup to be restored
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.Restore(context.Background(), cUUID, uniUUID).Backup(backup).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.Restore``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Restore`: YBPTask
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.Restore`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| uniUUID | string |
Other parameters are passed through a pointer to a apiRestoreRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
backup | BackupTableParams | Parameters of the backup to be restored | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPTask RestoreBackupV2(ctx, cUUID).Backup(backup).Request(request).Execute()
Restore from a backup V2
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
backup := *openapiclient.NewRestoreBackupParams(*openapiclient.NewUsers("username1@example.com", []string{"GroupMemberships_example"}, false), "PlatformUrl_example", int32(123), int32(123), "UniverseUUID_example") // RestoreBackupParams | Parameters of the backup to be restored
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.RestoreBackupV2(context.Background(), cUUID).Backup(backup).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.RestoreBackupV2``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RestoreBackupV2`: YBPTask
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.RestoreBackupV2`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string |
Other parameters are passed through a pointer to a apiRestoreBackupV2Request struct via the builder pattern
| Name | Type | Description | Notes |
|---|
backup | RestoreBackupParams | Parameters of the backup to be restored | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RestorePreflightResponse RestorePreflight(ctx, cUUID).RestorePreflightParams(restorePreflightParams).Request(request).Execute()
Restore preflight checks
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
restorePreflightParams := *openapiclient.NewParametersForRestorePreflightChecks("BackupUUID_example", "UniverseUUID_example") // ParametersForRestorePreflightChecks | Parameters for restore preflight check
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.RestorePreflight(context.Background(), cUUID).RestorePreflightParams(restorePreflightParams).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.RestorePreflight``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RestorePreflight`: RestorePreflightResponse
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.RestorePreflight`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string |
Other parameters are passed through a pointer to a apiRestorePreflightRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
restorePreflightParams | ParametersForRestorePreflightChecks | Parameters for restore preflight check | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPSuccess SetThrottleParams(ctx, cUUID, uniUUID).ThrottleParams(throttleParams).Request(request).Execute()
Set throttle params in YB-Controller - deprecated
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uniUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
throttleParams := *openapiclient.NewYbcThrottleParameters() // YbcThrottleParameters | Parameters for YB-Controller throttling
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.SetThrottleParams(context.Background(), cUUID, uniUUID).ThrottleParams(throttleParams).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.SetThrottleParams``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SetThrottleParams`: YBPSuccess
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.SetThrottleParams`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| uniUUID | string |
Other parameters are passed through a pointer to a apiSetThrottleParamsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
throttleParams | YbcThrottleParameters | Parameters for YB-Controller throttling | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPSuccess SetUniverseBackupFlag(ctx, cUUID, uniUUID).MarkActive(markActive).Request(request).Execute()
Set a universe's backup flag
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uniUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
markActive := true // bool | (optional)
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.SetUniverseBackupFlag(context.Background(), cUUID, uniUUID).MarkActive(markActive).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.SetUniverseBackupFlag``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SetUniverseBackupFlag`: YBPSuccess
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.SetUniverseBackupFlag`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| uniUUID | string |
Other parameters are passed through a pointer to a apiSetUniverseBackupFlagRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
markActive | bool | | request | interface{} | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPSuccess StopBackup(ctx, cUUID, backupUUID).Request(request).Execute()
Stop a backup
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
backupUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.StopBackup(context.Background(), cUUID, backupUUID).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.StopBackup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StopBackup`: YBPSuccess
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.StopBackup`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| backupUUID | string |
Other parameters are passed through a pointer to a apiStopBackupRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
request | interface{} | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPTask UniverseBackup(ctx, customerUUID, universeUUID).BackupUniverse(backupUniverse).Request(request).Execute()
Create a Universe Backup
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
customerUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
universeUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
backupUniverse := *openapiclient.NewUniverseBackupRequestFormData("StorageConfigUUID_example") // UniverseBackupRequestFormData | Universe Backup data to be created
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.UniverseBackup(context.Background(), customerUUID, universeUUID).BackupUniverse(backupUniverse).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.UniverseBackup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UniverseBackup`: YBPTask
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.UniverseBackup`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| customerUUID | string | ||
| universeUUID | string |
Other parameters are passed through a pointer to a apiUniverseBackupRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
backupUniverse | UniverseBackupRequestFormData | Universe Backup data to be created | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPSuccess ValidateKeyspaceTablesToRestore(ctx, cUUID).RestoreItemsValidationParams(restoreItemsValidationParams).Request(request).Execute()
Validate keyspace and tables to Restore against Backup
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
restoreItemsValidationParams := *openapiclient.NewParametersForValidatingRestorableKeyspaceAndTablesInBackup("BackupUUID_example") // ParametersForValidatingRestorableKeyspaceAndTablesInBackup | Parameters for validating Restorable keyspace and tables
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BackupsAPI.ValidateKeyspaceTablesToRestore(context.Background(), cUUID).RestoreItemsValidationParams(restoreItemsValidationParams).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupsAPI.ValidateKeyspaceTablesToRestore``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ValidateKeyspaceTablesToRestore`: YBPSuccess
fmt.Fprintf(os.Stdout, "Response from `BackupsAPI.ValidateKeyspaceTablesToRestore`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string |
Other parameters are passed through a pointer to a apiValidateKeyspaceTablesToRestoreRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
restoreItemsValidationParams | ParametersForValidatingRestorableKeyspaceAndTablesInBackup | Parameters for validating Restorable keyspace and tables | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]