All URIs are relative to https://api.ionos.com
Method
HTTP request
Description
Get the Service API Information
Get /certificatemanager/openapi.json
Get the Open API Documentation JSON
Get /certificatemanager/openapi.yaml
Get the Open API Documentation YAML
GetInfo
var result ApiInfoDto = GetInfo(ctx)
.Execute()
Get the Service API Information
Example
package main
import (
"context"
"fmt"
"os"
cert "github.com/ionos-cloud/sdk-go-bundle/products/cert"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := cert.NewAPIClient(configuration)
resource, resp, err := apiClient.InformationApi.GetInfo(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InformationApi.GetInfo``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `GetInfo`: ApiInfoDto
fmt.Fprintf(os.Stdout, "Response from `InformationApi.GetInfo`: %v\n", resource)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to an apiGetInfoRequest struct via the builder pattern
Return type
ApiInfoDto
Content-Type: Not defined
GetJsonOpenApiSpec
var result *os.File = GetJsonOpenApiSpec(ctx)
.Execute()
Get the Open API Documentation JSON
Example
package main
import (
"context"
"fmt"
"os"
cert "github.com/ionos-cloud/sdk-go-bundle/products/cert"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := cert.NewAPIClient(configuration)
resource, resp, err := apiClient.InformationApi.GetJsonOpenApiSpec(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InformationApi.GetJsonOpenApiSpec``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `GetJsonOpenApiSpec`: *os.File
fmt.Fprintf(os.Stdout, "Response from `InformationApi.GetJsonOpenApiSpec`: %v\n", resource)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to an apiGetJsonOpenApiSpecRequest struct via the builder pattern
Return type
*os.File
Content-Type: Not defined
GetYamlOpenApiSpec
var result *os.File = GetYamlOpenApiSpec(ctx)
.Execute()
Get the Open API Documentation YAML
Example
package main
import (
"context"
"fmt"
"os"
cert "github.com/ionos-cloud/sdk-go-bundle/products/cert"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := cert.NewAPIClient(configuration)
resource, resp, err := apiClient.InformationApi.GetYamlOpenApiSpec(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InformationApi.GetYamlOpenApiSpec``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `GetYamlOpenApiSpec`: *os.File
fmt.Fprintf(os.Stdout, "Response from `InformationApi.GetYamlOpenApiSpec`: %v\n", resource)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to an apiGetYamlOpenApiSpecRequest struct via the builder pattern
Return type
*os.File
Content-Type: Not defined