Create a DataPlatformNodePool for a distinct DataPlatformCluster
ClustersNodepoolsDelete
var result NodePoolResponseData = ClustersNodepoolsDelete(ctx, clusterId, nodepoolId)
.Execute()
Remove a DataPlatformNodePool from a DataPlatformCluster
Example
package main
import (
"context"
"fmt"
"os"
dataplatform "github.com/ionos-cloud/sdk-go-bundle/products/dataplatform"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
clusterId := TODO // string | The unique ID of the cluster. Must conform to the UUID format.
nodepoolId := TODO // string | The unique ID of the node pool. Must conform to the UUID format.
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := dataplatform.NewAPIClient(configuration)
resource, resp, err := apiClient.DataPlatformNodePoolApi.ClustersNodepoolsDelete(context.Background(), clusterId, nodepoolId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DataPlatformNodePoolApi.ClustersNodepoolsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `ClustersNodepoolsDelete`: NodePoolResponseData
fmt.Fprintf(os.Stdout, "Response from `DataPlatformNodePoolApi.ClustersNodepoolsDelete`: %v\n", resource)
}
Path Parameters
Name
Type
Description
Notes
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
var result NodePoolResponseData = ClustersNodepoolsFindById(ctx, clusterId, nodepoolId)
.Execute()
Retrieve a DataPlatformNodePool
Example
package main
import (
"context"
"fmt"
"os"
dataplatform "github.com/ionos-cloud/sdk-go-bundle/products/dataplatform"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
clusterId := TODO // string | The unique ID of the cluster. Must conform to the UUID format.
nodepoolId := TODO // string | The unique ID of the node pool. Must conform to the UUID format.
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := dataplatform.NewAPIClient(configuration)
resource, resp, err := apiClient.DataPlatformNodePoolApi.ClustersNodepoolsFindById(context.Background(), clusterId, nodepoolId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DataPlatformNodePoolApi.ClustersNodepoolsFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `ClustersNodepoolsFindById`: NodePoolResponseData
fmt.Fprintf(os.Stdout, "Response from `DataPlatformNodePoolApi.ClustersNodepoolsFindById`: %v\n", resource)
}
Path Parameters
Name
Type
Description
Notes
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
var result NodePoolResponseData = ClustersNodepoolsPatch(ctx, clusterId, nodepoolId)
.PatchNodePoolRequest(patchNodePoolRequest)
.Execute()
Partially Modify a DataPlatformNodePool
Example
package main
import (
"context"
"fmt"
"os"
dataplatform "github.com/ionos-cloud/sdk-go-bundle/products/dataplatform"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
clusterId := TODO // string | The unique ID of the cluster. Must conform to the UUID format.
nodepoolId := TODO // string | The unique ID of the node pool. Must conform to the UUID format.
patchNodePoolRequest := *openapiclient.NewPatchNodePoolRequest(*openapiclient.NewPatchNodePoolProperties()) // PatchNodePoolRequest | Request payload with the properties that shall be applied to an existing DataPlatformNodePool.
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := dataplatform.NewAPIClient(configuration)
resource, resp, err := apiClient.DataPlatformNodePoolApi.ClustersNodepoolsPatch(context.Background(), clusterId, nodepoolId).PatchNodePoolRequest(patchNodePoolRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DataPlatformNodePoolApi.ClustersNodepoolsPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `ClustersNodepoolsPatch`: NodePoolResponseData
fmt.Fprintf(os.Stdout, "Response from `DataPlatformNodePoolApi.ClustersNodepoolsPatch`: %v\n", resource)
}
Path Parameters
Name
Type
Description
Notes
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.