Links

InformationApi

All URIs are relative to https://api.ionos.com
Method
HTTP request
Description
GetInfo
Get /certificatemanager
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"
ionoscloud "github.com/ionos-cloud/sdk-go-cert-manager"
)
func main() {
configuration := ionoscloud.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := ionoscloud.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

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

GetJsonOpenApiSpec

var result *os.File = GetJsonOpenApiSpec(ctx)
.Execute()
Get the Open API Documentation JSON

Example

package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go-cert-manager"
)
func main() {
configuration := ionoscloud.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := ionoscloud.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

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

GetYamlOpenApiSpec

var result *os.File = GetYamlOpenApiSpec(ctx)
.Execute()
Get the Open API Documentation YAML

Example

package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go-cert-manager"
)
func main() {
configuration := ionoscloud.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := ionoscloud.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

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/yaml