ClustersApi
All URIs are relative to https://nfs.de-fra.ionos.com
ClustersDelete
var result = ClustersDelete(ctx, clusterId)
.Execute()Delete Cluster
Example
package main
import (
"context"
"fmt"
"os"
nfs "github.com/ionos-cloud/sdk-go-bundle/products/nfs"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
clusterId := "e69b22a5-8fee-56b1-b6fb-4a07e4205ead" // string | The identifier (UUID) of the cluster.
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := nfs.NewAPIClient(configuration)
resp, err := apiClient.ClustersApi.ClustersDelete(context.Background(), clusterId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ClustersApi.ClustersDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
}Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
clusterId
string
The identifier (UUID) of the cluster.
Other Parameters
Other parameters are passed through a pointer to an apiClustersDeleteRequest struct via the builder pattern
Name
Type
Description
Notes
Return type
(empty response body)
HTTP request headers
Content-Type: Not defined
Accept: application/json
ClustersFindById
Retrieve Cluster
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
clusterId
string
The identifier (UUID) of the cluster.
Other Parameters
Other parameters are passed through a pointer to an apiClustersFindByIdRequest struct via the builder pattern
Name
Type
Description
Notes
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
ClustersGet
Retrieve Clusters
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to an apiClustersGetRequest struct via the builder pattern
offset
int32
The first element from the total list of elements to include in the response. Use this parameter together with the limit for pagination.
[default to 0]
limit
int32
The maximum number of elements to return. Use this parameter together with the offset for pagination.
[default to 100]
filterDatacenterId
string
The datacenter identifier to filter by.
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
ClustersPost
Create Cluster
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to an apiClustersPostRequest struct via the builder pattern
Return type
HTTP request headers
Content-Type: application/json
Accept: application/json
ClustersPut
Ensure Cluster
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
clusterId
string
The ID (UUID) of the Cluster.
Other Parameters
Other parameters are passed through a pointer to an apiClustersPutRequest struct via the builder pattern
Return type
HTTP request headers
Content-Type: application/json
Accept: application/json
Last updated
