# \ClusterServiceAPI

All URIs are relative to *https://dedicated.tidbapi.com/api/v2023//dedicated/v1beta1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**ClusterServiceCreateCluster**](ClusterServiceAPI.md#ClusterServiceCreateCluster) | **Post** /api/v2023/dedicated/v1beta1/clusters | Create a cluster
[**ClusterServiceDeleteCluster**](ClusterServiceAPI.md#ClusterServiceDeleteCluster) | **Delete** /api/v2023/dedicated/v1beta1/clusters/{clusterId} | Delete a cluster
[**ClusterServiceGetCluster**](ClusterServiceAPI.md#ClusterServiceGetCluster) | **Get** /api/v2023/dedicated/v1beta1/clusters/{clusterId} | Get a cluster
[**ClusterServiceGetNodeInstance**](ClusterServiceAPI.md#ClusterServiceGetNodeInstance) | **Get** /api/v2023/dedicated/v1beta1/clusters/{clusterId}/nodeInstances/{instanceId} | Get a node instance
[**ClusterServiceListClusters**](ClusterServiceAPI.md#ClusterServiceListClusters) | **Get** /api/v2023/dedicated/v1beta1/clusters | List clusters
[**ClusterServiceListNodeInstances**](ClusterServiceAPI.md#ClusterServiceListNodeInstances) | **Get** /api/v2023/dedicated/v1beta1/clusters/{clusterId}/nodeInstances | List node instances
[**ClusterServicePauseCluster**](ClusterServiceAPI.md#ClusterServicePauseCluster) | **Post** /api/v2023/dedicated/v1beta1/clusters/{clusterId}:pauseCluster | Pause a cluster
[**ClusterServiceResetRootPassword**](ClusterServiceAPI.md#ClusterServiceResetRootPassword) | **Post** /api/v2023/dedicated/v1beta1/clusters/{clusterId}:resetRootPassword | Reset the root password of a cluster
[**ClusterServiceResumeCluster**](ClusterServiceAPI.md#ClusterServiceResumeCluster) | **Post** /api/v2023/dedicated/v1beta1/clusters/{clusterId}:resumeCluster | Resume a cluster
[**ClusterServiceShowNodeQuota**](ClusterServiceAPI.md#ClusterServiceShowNodeQuota) | **Get** /api/v2023/dedicated/v1beta1/clusters:showNodeQuota | Show node quota across the caller&#39;s organization
[**ClusterServiceUpdateCluster**](ClusterServiceAPI.md#ClusterServiceUpdateCluster) | **Patch** /api/v2023/dedicated/v1beta1/clusters/{clusterId} | Update a cluster



## ClusterServiceCreateCluster

> TidbCloudOpenApidedicatedv1beta1Cluster ClusterServiceCreateCluster(ctx).OrgId(orgId).ProjectId(projectId).Cluster(cluster).ValidateOnly(validateOnly).Execute()

Create a cluster

### Example

```go
package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {
	orgId := "orgId_example" // string | Organization id
	projectId := "projectId_example" // string | Project id
	cluster := *openapiclient.NewTidbCloudOpenApidedicatedv1beta1Cluster("foo-bar", int32(123), "RegionId_example", *openapiclient.NewV1beta1ClusterTidbNodeSetting("NodeSpecKey_example"), *openapiclient.NewV1beta1ClusterStorageNodeSetting(int32(123), "NodeSpecKey_example", int32(123), openapiclient.ClusterStorageNodeSettingStorageType("BASIC"))) // TidbCloudOpenApidedicatedv1beta1Cluster | 
	validateOnly := true // bool | if validate_only is true, the request will be validated but not executed. (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ClusterServiceAPI.ClusterServiceCreateCluster(context.Background()).OrgId(orgId).ProjectId(projectId).Cluster(cluster).ValidateOnly(validateOnly).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ClusterServiceAPI.ClusterServiceCreateCluster``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ClusterServiceCreateCluster`: TidbCloudOpenApidedicatedv1beta1Cluster
	fmt.Fprintf(os.Stdout, "Response from `ClusterServiceAPI.ClusterServiceCreateCluster`: %v\n", resp)
}
```

### Path Parameters



### Other Parameters

Other parameters are passed through a pointer to a apiClusterServiceCreateClusterRequest struct via the builder pattern


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **orgId** | **string** | Organization id | 
 **projectId** | **string** | Project id | 
 **cluster** | [**TidbCloudOpenApidedicatedv1beta1Cluster**](TidbCloudOpenApidedicatedv1beta1Cluster.md) |  | 
 **validateOnly** | **bool** | if validate_only is true, the request will be validated but not executed. | 

### Return type

[**TidbCloudOpenApidedicatedv1beta1Cluster**](TidbCloudOpenApidedicatedv1beta1Cluster.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)


## ClusterServiceDeleteCluster

> TidbCloudOpenApidedicatedv1beta1Cluster ClusterServiceDeleteCluster(ctx, clusterId).OrgId(orgId).ProjectId(projectId).ValidateOnly(validateOnly).Execute()

Delete a cluster

### Example

```go
package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {
	clusterId := "clusterId_example" // string | 
	orgId := "orgId_example" // string | Organization id
	projectId := "projectId_example" // string | Project id
	validateOnly := true // bool | if validate_only is true, the request will be validated but not executed. (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ClusterServiceAPI.ClusterServiceDeleteCluster(context.Background(), clusterId).OrgId(orgId).ProjectId(projectId).ValidateOnly(validateOnly).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ClusterServiceAPI.ClusterServiceDeleteCluster``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ClusterServiceDeleteCluster`: TidbCloudOpenApidedicatedv1beta1Cluster
	fmt.Fprintf(os.Stdout, "Response from `ClusterServiceAPI.ClusterServiceDeleteCluster`: %v\n", resp)
}
```

### Path Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**clusterId** | **string** |  | 

### Other Parameters

Other parameters are passed through a pointer to a apiClusterServiceDeleteClusterRequest struct via the builder pattern


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------

 **orgId** | **string** | Organization id | 
 **projectId** | **string** | Project id | 
 **validateOnly** | **bool** | if validate_only is true, the request will be validated but not executed. | 

### Return type

[**TidbCloudOpenApidedicatedv1beta1Cluster**](TidbCloudOpenApidedicatedv1beta1Cluster.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)


## ClusterServiceGetCluster

> TidbCloudOpenApidedicatedv1beta1Cluster ClusterServiceGetCluster(ctx, clusterId).OrgId(orgId).ProjectId(projectId).Execute()

Get a cluster

### Example

```go
package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {
	clusterId := "clusterId_example" // string | 
	orgId := "orgId_example" // string | Organization id
	projectId := "projectId_example" // string | Project id

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ClusterServiceAPI.ClusterServiceGetCluster(context.Background(), clusterId).OrgId(orgId).ProjectId(projectId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ClusterServiceAPI.ClusterServiceGetCluster``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ClusterServiceGetCluster`: TidbCloudOpenApidedicatedv1beta1Cluster
	fmt.Fprintf(os.Stdout, "Response from `ClusterServiceAPI.ClusterServiceGetCluster`: %v\n", resp)
}
```

### Path Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**clusterId** | **string** |  | 

### Other Parameters

Other parameters are passed through a pointer to a apiClusterServiceGetClusterRequest struct via the builder pattern


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------

 **orgId** | **string** | Organization id | 
 **projectId** | **string** | Project id | 

### Return type

[**TidbCloudOpenApidedicatedv1beta1Cluster**](TidbCloudOpenApidedicatedv1beta1Cluster.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)


## ClusterServiceGetNodeInstance

> V1beta1NodeInstance ClusterServiceGetNodeInstance(ctx, clusterId, instanceId).OrgId(orgId).ProjectId(projectId).Execute()

Get a node instance

### Example

```go
package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {
	clusterId := "clusterId_example" // string | 
	instanceId := "instanceId_example" // string | 
	orgId := "orgId_example" // string | Organization id
	projectId := "projectId_example" // string | Project id

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ClusterServiceAPI.ClusterServiceGetNodeInstance(context.Background(), clusterId, instanceId).OrgId(orgId).ProjectId(projectId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ClusterServiceAPI.ClusterServiceGetNodeInstance``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ClusterServiceGetNodeInstance`: V1beta1NodeInstance
	fmt.Fprintf(os.Stdout, "Response from `ClusterServiceAPI.ClusterServiceGetNodeInstance`: %v\n", resp)
}
```

### Path Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**clusterId** | **string** |  | 
**instanceId** | **string** |  | 

### Other Parameters

Other parameters are passed through a pointer to a apiClusterServiceGetNodeInstanceRequest struct via the builder pattern


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------


 **orgId** | **string** | Organization id | 
 **projectId** | **string** | Project id | 

### Return type

[**V1beta1NodeInstance**](V1beta1NodeInstance.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)


## ClusterServiceListClusters

> TidbCloudOpenApidedicatedv1beta1ListClustersResponse ClusterServiceListClusters(ctx).OrgId(orgId).ProjectId(projectId).RegionIds(regionIds).ClusterStates(clusterStates).PageSize(pageSize).PageToken(pageToken).Skip(skip).Execute()

List clusters

### Example

```go
package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {
	orgId := "orgId_example" // string | Organization id
	projectId := "projectId_example" // string | Project id
	regionIds := []string{"Inner_example"} // []string | If specified, only clusters in the specified regions will be returned. (optional)
	clusterStates := []string{"Inner_example"} // []string | If specified, only clusters in the specified states will be returned.   - CREATING: Cluster is being created.  - DELETING: Cluster is being deleted.  - ACTIVE: Cluster is active for use.  - RESTORING: Cluster data is being restored.  - MAINTENANCE: Cluster is under maintenance.  - DELETED: Cluster has been deleted.  - INACTIVE: Cluster is not active, but not being deleted.  - UPGRADING: Cluster is being updated. Only for Dedicated Cluster.  - IMPORTING: Cluster is being imported. Only for Dedicated Cluster.  - MODIFYING: Cluster is being modified. Only for Dedicated Cluster.  - PAUSING: Cluster is being paused. Only for Dedicated Cluster.  - PAUSED: Cluster is paused. Only for Dedicated Cluster.  - RESUMING: Cluster is resuming. Only for Dedicated Cluster. (optional)
	pageSize := int32(56) // int32 | The maximum number of clusters to return. The service may return fewer than this value. If unspecified, at most X clusters will be returned. The maximum value is X; values above X will be coerced to X. (optional)
	pageToken := "pageToken_example" // string | A page token, received from a previous `ListClusters` call. Provide this to retrieve the subsequent page.  When paginating, all other parameters provided to `ListClusters` must match the call that provided the page token. (optional)
	skip := int32(56) // int32 | The number of individual resources to skip before starting to return results. If the skip value causes the cursor to move past the end of the collection, the response will be 200 OK with an empty result set and no next_page_token. (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ClusterServiceAPI.ClusterServiceListClusters(context.Background()).OrgId(orgId).ProjectId(projectId).RegionIds(regionIds).ClusterStates(clusterStates).PageSize(pageSize).PageToken(pageToken).Skip(skip).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ClusterServiceAPI.ClusterServiceListClusters``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ClusterServiceListClusters`: TidbCloudOpenApidedicatedv1beta1ListClustersResponse
	fmt.Fprintf(os.Stdout, "Response from `ClusterServiceAPI.ClusterServiceListClusters`: %v\n", resp)
}
```

### Path Parameters



### Other Parameters

Other parameters are passed through a pointer to a apiClusterServiceListClustersRequest struct via the builder pattern


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **orgId** | **string** | Organization id | 
 **projectId** | **string** | Project id | 
 **regionIds** | **[]string** | If specified, only clusters in the specified regions will be returned. | 
 **clusterStates** | **[]string** | If specified, only clusters in the specified states will be returned.   - CREATING: Cluster is being created.  - DELETING: Cluster is being deleted.  - ACTIVE: Cluster is active for use.  - RESTORING: Cluster data is being restored.  - MAINTENANCE: Cluster is under maintenance.  - DELETED: Cluster has been deleted.  - INACTIVE: Cluster is not active, but not being deleted.  - UPGRADING: Cluster is being updated. Only for Dedicated Cluster.  - IMPORTING: Cluster is being imported. Only for Dedicated Cluster.  - MODIFYING: Cluster is being modified. Only for Dedicated Cluster.  - PAUSING: Cluster is being paused. Only for Dedicated Cluster.  - PAUSED: Cluster is paused. Only for Dedicated Cluster.  - RESUMING: Cluster is resuming. Only for Dedicated Cluster. | 
 **pageSize** | **int32** | The maximum number of clusters to return. The service may return fewer than this value. If unspecified, at most X clusters will be returned. The maximum value is X; values above X will be coerced to X. | 
 **pageToken** | **string** | A page token, received from a previous &#x60;ListClusters&#x60; call. Provide this to retrieve the subsequent page.  When paginating, all other parameters provided to &#x60;ListClusters&#x60; must match the call that provided the page token. | 
 **skip** | **int32** | The number of individual resources to skip before starting to return results. If the skip value causes the cursor to move past the end of the collection, the response will be 200 OK with an empty result set and no next_page_token. | 

### Return type

[**TidbCloudOpenApidedicatedv1beta1ListClustersResponse**](TidbCloudOpenApidedicatedv1beta1ListClustersResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)


## ClusterServiceListNodeInstances

> V1beta1ListNodeInstancesResponse ClusterServiceListNodeInstances(ctx, clusterId).OrgId(orgId).ProjectId(projectId).ComponentType(componentType).PageSize(pageSize).PageToken(pageToken).Skip(skip).Execute()

List node instances

### Example

```go
package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {
	clusterId := "clusterId_example" // string | 
	orgId := "orgId_example" // string | Organization id
	projectId := "projectId_example" // string | Project id
	componentType := "componentType_example" // string | If specified, only node instances of the specified component type will be returned. (optional)
	pageSize := int32(56) // int32 | The maximum number of node instances to return. The service may return fewer than this value. If unspecified, at most X node instances will be returned. The maximum value is X; values above X will be coerced to X. (optional)
	pageToken := "pageToken_example" // string | A page token, received from a previous `ListNodeInstances` call. Provide this to retrieve the subsequent page.  When paginating, all other parameters provided to `ListNodeInstances` must match the call that provided the page token. (optional)
	skip := int32(56) // int32 | The number of individual resources to skip before starting to return results. If the skip value causes the cursor to move past the end of the collection, the response will be 200 OK with an empty result set and no next_page_token. (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ClusterServiceAPI.ClusterServiceListNodeInstances(context.Background(), clusterId).OrgId(orgId).ProjectId(projectId).ComponentType(componentType).PageSize(pageSize).PageToken(pageToken).Skip(skip).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ClusterServiceAPI.ClusterServiceListNodeInstances``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ClusterServiceListNodeInstances`: V1beta1ListNodeInstancesResponse
	fmt.Fprintf(os.Stdout, "Response from `ClusterServiceAPI.ClusterServiceListNodeInstances`: %v\n", resp)
}
```

### Path Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**clusterId** | **string** |  | 

### Other Parameters

Other parameters are passed through a pointer to a apiClusterServiceListNodeInstancesRequest struct via the builder pattern


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------

 **orgId** | **string** | Organization id | 
 **projectId** | **string** | Project id | 
 **componentType** | **string** | If specified, only node instances of the specified component type will be returned. | 
 **pageSize** | **int32** | The maximum number of node instances to return. The service may return fewer than this value. If unspecified, at most X node instances will be returned. The maximum value is X; values above X will be coerced to X. | 
 **pageToken** | **string** | A page token, received from a previous &#x60;ListNodeInstances&#x60; call. Provide this to retrieve the subsequent page.  When paginating, all other parameters provided to &#x60;ListNodeInstances&#x60; must match the call that provided the page token. | 
 **skip** | **int32** | The number of individual resources to skip before starting to return results. If the skip value causes the cursor to move past the end of the collection, the response will be 200 OK with an empty result set and no next_page_token. | 

### Return type

[**V1beta1ListNodeInstancesResponse**](V1beta1ListNodeInstancesResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)


## ClusterServicePauseCluster

> map[string]interface{} ClusterServicePauseCluster(ctx, clusterId).OrgId(orgId).ProjectId(projectId).Execute()

Pause a cluster

### Example

```go
package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {
	clusterId := "clusterId_example" // string | 
	orgId := "orgId_example" // string | Organization id
	projectId := "projectId_example" // string | Project id

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ClusterServiceAPI.ClusterServicePauseCluster(context.Background(), clusterId).OrgId(orgId).ProjectId(projectId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ClusterServiceAPI.ClusterServicePauseCluster``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ClusterServicePauseCluster`: map[string]interface{}
	fmt.Fprintf(os.Stdout, "Response from `ClusterServiceAPI.ClusterServicePauseCluster`: %v\n", resp)
}
```

### Path Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**clusterId** | **string** |  | 

### Other Parameters

Other parameters are passed through a pointer to a apiClusterServicePauseClusterRequest struct via the builder pattern


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------

 **orgId** | **string** | Organization id | 
 **projectId** | **string** | Project id | 

### Return type

**map[string]interface{}**

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)


## ClusterServiceResetRootPassword

> map[string]interface{} ClusterServiceResetRootPassword(ctx, clusterId).OrgId(orgId).ProjectId(projectId).Body(body).Execute()

Reset the root password of a cluster

### Example

```go
package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {
	clusterId := "clusterId_example" // string | 
	orgId := "orgId_example" // string | Organization id
	projectId := "projectId_example" // string | Project id
	body := *openapiclient.NewClusterServiceResetRootPasswordBody("RootPassword_example") // ClusterServiceResetRootPasswordBody | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ClusterServiceAPI.ClusterServiceResetRootPassword(context.Background(), clusterId).OrgId(orgId).ProjectId(projectId).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ClusterServiceAPI.ClusterServiceResetRootPassword``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ClusterServiceResetRootPassword`: map[string]interface{}
	fmt.Fprintf(os.Stdout, "Response from `ClusterServiceAPI.ClusterServiceResetRootPassword`: %v\n", resp)
}
```

### Path Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**clusterId** | **string** |  | 

### Other Parameters

Other parameters are passed through a pointer to a apiClusterServiceResetRootPasswordRequest struct via the builder pattern


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------

 **orgId** | **string** | Organization id | 
 **projectId** | **string** | Project id | 
 **body** | [**ClusterServiceResetRootPasswordBody**](ClusterServiceResetRootPasswordBody.md) |  | 

### Return type

**map[string]interface{}**

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)


## ClusterServiceResumeCluster

> map[string]interface{} ClusterServiceResumeCluster(ctx, clusterId).OrgId(orgId).ProjectId(projectId).Execute()

Resume a cluster

### Example

```go
package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {
	clusterId := "clusterId_example" // string | 
	orgId := "orgId_example" // string | Organization id
	projectId := "projectId_example" // string | Project id

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ClusterServiceAPI.ClusterServiceResumeCluster(context.Background(), clusterId).OrgId(orgId).ProjectId(projectId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ClusterServiceAPI.ClusterServiceResumeCluster``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ClusterServiceResumeCluster`: map[string]interface{}
	fmt.Fprintf(os.Stdout, "Response from `ClusterServiceAPI.ClusterServiceResumeCluster`: %v\n", resp)
}
```

### Path Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**clusterId** | **string** |  | 

### Other Parameters

Other parameters are passed through a pointer to a apiClusterServiceResumeClusterRequest struct via the builder pattern


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------

 **orgId** | **string** | Organization id | 
 **projectId** | **string** | Project id | 

### Return type

**map[string]interface{}**

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)


## ClusterServiceShowNodeQuota

> V1beta1ShowNodeQuotaResponse ClusterServiceShowNodeQuota(ctx).OrgId(orgId).ProjectId(projectId).Execute()

Show node quota across the caller's organization

### Example

```go
package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {
	orgId := "orgId_example" // string | Organization id
	projectId := "projectId_example" // string | Project id

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ClusterServiceAPI.ClusterServiceShowNodeQuota(context.Background()).OrgId(orgId).ProjectId(projectId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ClusterServiceAPI.ClusterServiceShowNodeQuota``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ClusterServiceShowNodeQuota`: V1beta1ShowNodeQuotaResponse
	fmt.Fprintf(os.Stdout, "Response from `ClusterServiceAPI.ClusterServiceShowNodeQuota`: %v\n", resp)
}
```

### Path Parameters



### Other Parameters

Other parameters are passed through a pointer to a apiClusterServiceShowNodeQuotaRequest struct via the builder pattern


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **orgId** | **string** | Organization id | 
 **projectId** | **string** | Project id | 

### Return type

[**V1beta1ShowNodeQuotaResponse**](V1beta1ShowNodeQuotaResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)


## ClusterServiceUpdateCluster

> TidbCloudOpenApidedicatedv1beta1Cluster ClusterServiceUpdateCluster(ctx, clusterId).OrgId(orgId).ProjectId(projectId).Cluster(cluster).ValidateOnly(validateOnly).Execute()

Update a cluster

### Example

```go
package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {
	clusterId := "clusterId_example" // string | 
	orgId := "orgId_example" // string | Organization id
	projectId := "projectId_example" // string | Project id
	cluster := *openapiclient.NewClusterServiceUpdateClusterRequest() // ClusterServiceUpdateClusterRequest | 
	validateOnly := true // bool | if validate_only is true, the request will be validated but not executed. (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ClusterServiceAPI.ClusterServiceUpdateCluster(context.Background(), clusterId).OrgId(orgId).ProjectId(projectId).Cluster(cluster).ValidateOnly(validateOnly).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ClusterServiceAPI.ClusterServiceUpdateCluster``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ClusterServiceUpdateCluster`: TidbCloudOpenApidedicatedv1beta1Cluster
	fmt.Fprintf(os.Stdout, "Response from `ClusterServiceAPI.ClusterServiceUpdateCluster`: %v\n", resp)
}
```

### Path Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**clusterId** | **string** |  | 

### Other Parameters

Other parameters are passed through a pointer to a apiClusterServiceUpdateClusterRequest struct via the builder pattern


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------

 **orgId** | **string** | Organization id | 
 **projectId** | **string** | Project id | 
 **cluster** | [**ClusterServiceUpdateClusterRequest**](ClusterServiceUpdateClusterRequest.md) |  | 
 **validateOnly** | **bool** | if validate_only is true, the request will be validated but not executed. | 

### Return type

[**TidbCloudOpenApidedicatedv1beta1Cluster**](TidbCloudOpenApidedicatedv1beta1Cluster.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)

