ClustersApi
Method
HTTP request
Description
ClusterPostgresVersionsGet
var result PostgresVersionList = ClusterPostgresVersionsGet(ctx, clusterId)
.Execute()Example
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go-dbaas-postgres"
)
func main() {
clusterId := "498ae72f-411f-11eb-9d07-046c59cc737e" // string | The unique ID of the cluster.
configuration := ionoscloud.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ClustersApi.ClusterPostgresVersionsGet(context.Background(), clusterId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClustersApi.ClusterPostgresVersionsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `ClusterPostgresVersionsGet`: PostgresVersionList
fmt.Fprintf(os.Stdout, "Response from `ClustersApi.ClusterPostgresVersionsGet`: %v\n", resource)
}Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
HTTP request headers
ClustersDelete
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
HTTP request headers
ClustersFindById
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
HTTP request headers
ClustersGet
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
ClustersPatch
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
ClustersPost
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
PostgresVersionsGet
Example
Path Parameters
Other Parameters
Return type
HTTP request headers
Last updated
