For the complete documentation index, see llms.txt. This page is also available as Markdown.

BackupLocationsApi

All URIs are relative to https://postgresql.de-txl.ionos.com

Method
HTTP request
Description

Get /backup-locations/{backupLocationId}

Retrieve BackupLocation

Get /backup-locations

Retrieve all BackupLocations

BackuplocationsFindById

var result BackupLocationRead = BackuplocationsFindById(ctx, backupLocationId)
                      .Execute()

Retrieve BackupLocation

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

ctx

context.Context

context for authentication, logging, cancellation, deadlines, tracing, etc.

backupLocationId

string

The ID (UUID) of the BackupLocation.

Other Parameters

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

Name

Type

Description

Notes

Return type

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

BackuplocationsGet

Retrieve all BackupLocations

Example

Path Parameters

Other Parameters

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

Name
Type
Description
Notes

offset

int32

The first element (of the total list of elements) to include in the response. Use this parameter together with the limit for pagination.

[default to 0]

limit

int32

The maximum number of elements to return. Use this parameter together with the offset for pagination.

[default to 100]

Return type

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

Last updated

Was this helpful?