VersionsApi
Method
HTTP request
Description
VersionsFindById
var result PostgresVersionRead = VersionsFindById(ctx, versionId)
.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() {
versionId := "2edb9507-fb0e-5f58-a65b-952b43ff3549" // string | The ID (UUID) of the PostgresVersion.
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := psql.NewAPIClient(configuration)
resource, resp, err := apiClient.VersionsApi.VersionsFindById(context.Background(), versionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.VersionsFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `VersionsFindById`: PostgresVersionRead
fmt.Fprintf(os.Stdout, "Response from `VersionsApi.VersionsFindById`: %v\n", resource)
}Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
HTTP request headers
VersionsGet
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
Last updated
Was this helpful?