BackupLocationsApi
Method
HTTP request
Description
BackuplocationsFindById
var result BackupLocationRead = BackuplocationsFindById(ctx, backupLocationId)
.Execute()Example
package main
import (
"context"
"fmt"
"os"
psql "github.com/ionos-cloud/sdk-go-bundle/products/psql"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
backupLocationId := "7fa1dd11-59dd-53a5-ab67-50f649c8e3eb" // string | The ID (UUID) of the BackupLocation.
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := psql.NewAPIClient(configuration)
resource, resp, err := apiClient.BackupLocationsApi.BackuplocationsFindById(context.Background(), backupLocationId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BackupLocationsApi.BackuplocationsFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `BackuplocationsFindById`: BackupLocationRead
fmt.Fprintf(os.Stdout, "Response from `BackupLocationsApi.BackuplocationsFindById`: %v\n", resource)
}Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
HTTP request headers
BackuplocationsGet
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
Last updated
Was this helpful?