packagemainimport("context""fmt""os"ionoscloud"github.com/ionos-cloud/sdk-go-cert-manager")funcmain(){certificateId:="cbee81a3-9389-57ba-bc50-393adcfca141"// string | The ID (UUID) of the Certificate.configuration:=ionoscloud.NewConfiguration("USERNAME","PASSWORD","TOKEN","HOST_URL")apiClient:=ionoscloud.NewAPIClient(configuration)resp,err:=apiClient.CertificateApi.CertificatesDelete(context.Background(),certificateId).Execute()iferr!=nil{fmt.Fprintf(os.Stderr,"Error when calling `CertificateApi.CertificatesDelete``: %v\n",err)fmt.Fprintf(os.Stderr,"Full HTTP response: %v\n",resp)}}
Path Parameters
Name
Type
Description
Notes
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
certificateId
string
The ID (UUID) of the Certificate.
Other Parameters
Other parameters are passed through a pointer to an apiCertificatesDeleteRequest struct via the builder pattern
Name
Type
Description
Notes
Return type
(empty response body)
HTTP request headers
Content-Type: Not defined
Accept: application/json
URLs Configuration per Operation
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "CertificateApiService.CertificatesDelete" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
CertificatesFindById
Retrieve Certificate
Example
Path Parameters
Name
Type
Description
Notes
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
certificateId
string
The ID (UUID) of the Certificate.
Other Parameters
Other parameters are passed through a pointer to an apiCertificatesFindByIdRequest struct via the builder pattern
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "CertificateApiService.CertificatesFindById" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
CertificatesGet
Retrieve all Certificate
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to an apiCertificatesGetRequest struct via the builder pattern
Name
Type
Description
Notes
offset
int32
The first element (of the total list of elements) to include in the response. Use together with limit for pagination.
[default to 0]
limit
int32
The maximum number of elements to return. Use together with offset for pagination.
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "CertificateApiService.CertificatesGet" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
CertificatesPatch
Updates Certificate
Example
Path Parameters
Name
Type
Description
Notes
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
certificateId
string
The ID (UUID) of the Certificate.
Other Parameters
Other parameters are passed through a pointer to an apiCertificatesPatchRequest struct via the builder pattern
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "CertificateApiService.CertificatesPatch" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
CertificatesPost
Create Certificate
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to an apiCertificatesPostRequest struct via the builder pattern
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "CertificateApiService.CertificatesPost" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
var result CertificateReadList = CertificatesGet(ctx)
.Offset(offset)
.Limit(limit)
.FilterCommonName(filterCommonName)
.FilterAutoCertificate(filterAutoCertificate)
.Execute()
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go-cert-manager"
)
func main() {
offset := int32(0) // int32 | The first element (of the total list of elements) to include in the response. Use together with limit for pagination. (optional) (default to 0)
limit := int32(100) // int32 | The maximum number of elements to return. Use together with offset for pagination. (optional) (default to 100)
filterCommonName := "www.example.com" // string | Filter by the common name (DNS). (optional)
filterAutoCertificate := "b471cd03-ef51-52c5-91a5-49195b0a04d4" // string | Filter by autoCertificateID. (optional)
configuration := ionoscloud.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.CertificateApi.CertificatesGet(context.Background()).Offset(offset).Limit(limit).FilterCommonName(filterCommonName).FilterAutoCertificate(filterAutoCertificate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificatesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `CertificatesGet`: CertificateReadList
fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CertificatesGet`: %v\n", resource)
}