DataPlatformNodePoolApi
All URIs are relative to https://api.ionos.com/dataplatform
Delete /clusters/{clusterId}/nodepools/{nodepoolId}
Remove a DataPlatformNodePool from a DataPlatformCluster
Get /clusters/{clusterId}/nodepools/{nodepoolId}
Retrieve a DataPlatformNodePool
Get /clusters/{clusterId}/nodepools
List the DataPlatformNodePools of a DataPlatformCluster
Patch /clusters/{clusterId}/nodepools/{nodepoolId}
Partially Modify a DataPlatformNodePool
Post /clusters/{clusterId}/nodepools
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
Other Parameters
Other parameters are passed through a pointer to an apiClustersNodepoolsDeleteRequest struct via the builder pattern
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
ClustersNodepoolsFindById
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
Other Parameters
Other parameters are passed through a pointer to an apiClustersNodepoolsFindByIdRequest struct via the builder pattern
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
ClustersNodepoolsGet
var result NodePoolListResponseData = ClustersNodepoolsGet(ctx, clusterId)
.Execute()
List the DataPlatformNodePools of 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.
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := dataplatform.NewAPIClient(configuration)
resource, resp, err := apiClient.DataPlatformNodePoolApi.ClustersNodepoolsGet(context.Background(), clusterId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DataPlatformNodePoolApi.ClustersNodepoolsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `ClustersNodepoolsGet`: NodePoolListResponseData
fmt.Fprintf(os.Stdout, "Response from `DataPlatformNodePoolApi.ClustersNodepoolsGet`: %v\n", resource)
}
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
Other Parameters
Other parameters are passed through a pointer to an apiClustersNodepoolsGetRequest struct via the builder pattern
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
ClustersNodepoolsPatch
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
Other Parameters
Other parameters are passed through a pointer to an apiClustersNodepoolsPatchRequest struct via the builder pattern
patchNodePoolRequest
Request payload with the properties that shall be applied to an existing DataPlatformNodePool.
Return type
HTTP request headers
Content-Type: application/json
Accept: application/json
ClustersNodepoolsPost
var result NodePoolResponseData = ClustersNodepoolsPost(ctx, clusterId)
.CreateNodePoolRequest(createNodePoolRequest)
.Execute()
Create a DataPlatformNodePool for a distinct 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.
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
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
Other Parameters
Other parameters are passed through a pointer to an apiClustersNodepoolsPostRequest struct via the builder pattern
createNodePoolRequest
Request payload with the properties that defines a DataPlatformNodePool.
Return type
HTTP request headers
Content-Type: application/json
Accept: application/json
Last updated