var result APIVersion = InfosVersionGet(ctx)
.Execute()
package main
import (
"context"
"fmt"
"os"
mongo "github.com/ionos-cloud/sdk-go-bundle/products/dbaas/mongo"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := mongo.NewAPIClient(configuration)
resource, resp, err := apiClient.MetadataApi.InfosVersionGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MetadataApi.InfosVersionGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `InfosVersionGet`: APIVersion
fmt.Fprintf(os.Stdout, "Response from `MetadataApi.InfosVersionGet`: %v\n", resource)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to an apiInfosVersionGetRequest struct via the builder pattern
var result []APIVersion = InfosVersionsGet(ctx)
.Execute()
package main
import (
"context"
"fmt"
"os"
mongo "github.com/ionos-cloud/sdk-go-bundle/products/dbaas/mongo"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := mongo.NewAPIClient(configuration)
resource, resp, err := apiClient.MetadataApi.InfosVersionsGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MetadataApi.InfosVersionsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `InfosVersionsGet`: []APIVersion
fmt.Fprintf(os.Stdout, "Response from `MetadataApi.InfosVersionsGet`: %v\n", resource)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to an apiInfosVersionsGetRequest struct via the builder pattern