All URIs are relative to https://api.ionos.com/dataplatform
Method
HTTP request
Description
ClustersNodepoolsDelete
var result NodePoolResponseData=ClustersNodepoolsDelete(ctx, clusterId, nodepoolId) .Execute()
Remove a DataPlatformNodePool from a DataPlatformCluster
Example
packagemainimport ("context""fmt""os" ionoscloud "github.com/ionos-cloud/sdk-go-dataplatform")funcmain() { clusterId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The unique ID of the cluster. Must conform to the UUID format.
nodepoolId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The unique ID of the node pool. Must conform to the UUID format.
configuration := ionoscloud.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") apiClient := ionoscloud.NewAPIClient(configuration) 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
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "DataPlatformNodePoolApiService.ClustersNodepoolsDelete" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
var result NodePoolResponseData=ClustersNodepoolsFindById(ctx, clusterId, nodepoolId) .Execute()
Retrieve a DataPlatformNodePool
Example
packagemainimport ("context""fmt""os" ionoscloud "github.com/ionos-cloud/sdk-go-dataplatform")funcmain() { clusterId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The unique ID of the cluster. Must conform to the UUID format.
nodepoolId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The unique ID of the node pool. Must conform to the UUID format.
configuration := ionoscloud.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") apiClient := ionoscloud.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
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "DataPlatformNodePoolApiService.ClustersNodepoolsFindById" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "DataPlatformNodePoolApiService.ClustersNodepoolsGet" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
var result NodePoolResponseData=ClustersNodepoolsPatch(ctx, clusterId, nodepoolId) .PatchNodePoolRequest(patchNodePoolRequest) .Execute()
Partially Modify a DataPlatformNodePool
Example
packagemainimport ("context""fmt""os" ionoscloud "github.com/ionos-cloud/sdk-go-dataplatform")funcmain() { clusterId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The unique ID of the cluster. Must conform to the UUID format.
nodepoolId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // 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 := ionoscloud.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") apiClient := ionoscloud.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
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "DataPlatformNodePoolApiService.ClustersNodepoolsPatch" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "DataPlatformNodePoolApiService.ClustersNodepoolsPost" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.