Create a DataPlatformNodePool for a distinct DataPlatformCluster
ClustersNodepoolsDelete
var result NodePoolResponseData=ClustersNodepoolsDelete(ctx, clusterId, nodepoolId) .Execute()
Remove a DataPlatformNodePool from a DataPlatformCluster
Example
packagemainimport ("context""fmt""os" dataplatform "github.com/ionos-cloud/sdk-go-bundle/products/dataplatform""github.com/ionos-cloud/sdk-go-bundle/shared")funcmain() { 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.
clusterId
The unique ID of the cluster. Must conform to the UUID format.
nodepoolId
The unique ID of the node pool. Must conform to the UUID format.
Other Parameters
Other parameters are passed through a pointer to an apiClustersNodepoolsDeleteRequest struct via the builder pattern
var result NodePoolResponseData=ClustersNodepoolsFindById(ctx, clusterId, nodepoolId) .Execute()
Retrieve a DataPlatformNodePool
Example
packagemainimport ("context""fmt""os" dataplatform "github.com/ionos-cloud/sdk-go-bundle/products/dataplatform""github.com/ionos-cloud/sdk-go-bundle/shared")funcmain() { 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.
clusterId
The unique ID of the cluster. Must conform to the UUID format.
nodepoolId
The unique ID of the node pool. Must conform to the UUID format.
Other Parameters
Other parameters are passed through a pointer to an apiClustersNodepoolsFindByIdRequest struct via the builder pattern
var result NodePoolResponseData=ClustersNodepoolsPatch(ctx, clusterId, nodepoolId) .PatchNodePoolRequest(patchNodePoolRequest) .Execute()
Partially Modify a DataPlatformNodePool
Example
packagemainimport ("context""fmt""os" dataplatform "github.com/ionos-cloud/sdk-go-bundle/products/dataplatform""github.com/ionos-cloud/sdk-go-bundle/shared")funcmain() { 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.
clusterId
The unique ID of the cluster. Must conform to the UUID format.
nodepoolId
The unique ID of the node pool. Must conform to the UUID format.
Other Parameters
Other parameters are passed through a pointer to an apiClustersNodepoolsPatchRequest struct via the builder pattern
Name
Type
Description
Notes
patchNodePoolRequest
Request payload with the properties that shall be applied to an existing DataPlatformNodePool.
var result NodePoolResponseData=ClustersNodepoolsPost(ctx, clusterId) .CreateNodePoolRequest(createNodePoolRequest) .Execute()
Create a DataPlatformNodePool for a distinct DataPlatformCluster
Example
packagemainimport ("context""fmt""os" dataplatform "github.com/ionos-cloud/sdk-go-bundle/products/dataplatform""github.com/ionos-cloud/sdk-go-bundle/shared")funcmain() { clusterId := TODO // string | The unique ID of the cluster. Must conform to the UUID format. createNodePoolRequest :=*openapiclient.NewCreateNodePoolRequest(*openapiclient.NewCreateNodePoolProperties("my-node-pool", int32(2))) // CreateNodePoolRequest | Request payload with the properties that defines a DataPlatformNodePool. configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") apiClient := dataplatform.NewAPIClient(configuration) resource, resp, err := apiClient.DataPlatformNodePoolApi.ClustersNodepoolsPost(context.Background(), clusterId).CreateNodePoolRequest(createNodePoolRequest).Execute()if err !=nil { fmt.Fprintf(os.Stderr, "Error when calling `DataPlatformNodePoolApi.ClustersNodepoolsPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) }// response from `ClustersNodepoolsPost`: NodePoolResponseData fmt.Fprintf(os.Stdout, "Response from `DataPlatformNodePoolApi.ClustersNodepoolsPost`: %v\n", resource)}
Path Parameters
Name
Type
Description
Notes
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
clusterId
The unique ID of the cluster. Must conform to the UUID format.
Other Parameters
Other parameters are passed through a pointer to an apiClustersNodepoolsPostRequest struct via the builder pattern
Name
Type
Description
Notes
createNodePoolRequest
Request payload with the properties that defines a DataPlatformNodePool.