packagemainimport("context""fmt""os"ionoscloud"github.com/ionos-cloud/sdk-go-cert-manager")funcmain(){providerId:="74edc770-5cc6-5976-ac99-013ddb4af403"// string | The ID (UUID) of the Provider.configuration:=ionoscloud.NewConfiguration("USERNAME","PASSWORD","TOKEN","HOST_URL")apiClient:=ionoscloud.NewAPIClient(configuration)resp,err:=apiClient.ProviderApi.ProvidersDelete(context.Background(),providerId).Execute()iferr!=nil{fmt.Fprintf(os.Stderr,"Error when calling `ProviderApi.ProvidersDelete``: %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.
providerId
string
The ID (UUID) of the Provider.
Other Parameters
Other parameters are passed through a pointer to an apiProvidersDeleteRequest 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 "ProviderApiService.ProvidersDelete" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
ProvidersFindById
Retrieve Provider
Example
Path Parameters
Name
Type
Description
Notes
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
providerId
string
The ID (UUID) of the Provider.
Other Parameters
Other parameters are passed through a pointer to an apiProvidersFindByIdRequest 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 "ProviderApiService.ProvidersFindById" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
ProvidersGet
Retrieve all Provider
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to an apiProvidersGetRequest 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 "ProviderApiService.ProvidersGet" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
ProvidersPatch
Updates Provider
Example
Path Parameters
Name
Type
Description
Notes
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
providerId
string
The ID (UUID) of the Provider.
Other Parameters
Other parameters are passed through a pointer to an apiProvidersPatchRequest 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 "ProviderApiService.ProvidersPatch" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
ProvidersPost
Create Provider
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to an apiProvidersPostRequest 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 "ProviderApiService.ProvidersPost" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
var result ProviderReadList = ProvidersGet(ctx)
.Offset(offset)
.Limit(limit)
.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)
configuration := ionoscloud.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.ProviderApi.ProvidersGet(context.Background()).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ProviderApi.ProvidersGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `ProvidersGet`: ProviderReadList
fmt.Fprintf(os.Stdout, "Response from `ProviderApi.ProvidersGet`: %v\n", resource)
}