ModifyDiskType

更新时间:
复制 MD 格式

Change the disk type for nodes in a compute group

Operation description

Before you call this operation, review the Serverless StarRocks billing model and billable items.

  • Only standard instances support disk scaling. Starter instances do not support disk scaling.

  • Only instances with a compute group specification type of Standard Edition support disk scaling.

  • The instance must be in the Running state.

After disk scaling, billing changes as follows:

  • Pay-as-you-go: You are billed based on the new disk size.

  • Subscription: During the billing cycle, the additional fee is calculated based on the price difference between the old and new configurations and the remaining days, from 00:00 the next day to the end of the validity period.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /webapi/resourceChange/modifyDiskType HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The ID of the instance.

c-b25e21e24388****

NodeGroupId

string

Yes

The ID of the compute group.

ng-3d5ce6454354****

TargetPerformanceLevel

string

Yes

The target disk performance level.

pl2

TargetDiskType

string

Yes

The target disk type.

essd

PromotionOptionNo

string

No

The ID of the coupon.

youhuiquan_promotion_option_id_for_blank

Response elements

Element

Type

Description

Example

object

HttpStatusCode

integer

The HTTP status code of the request.

200

RequestId

string

The ID of the request.

32A44F0D-BFF6-5664-999A-218BBDE74XXX

Success

boolean

Indicates whether the request succeeded.

True

ErrCode

string

The error code.

InvalidParams

ErrMessage

string

The error message.

Invalid params: [instance not exists].

Data

integer

The returned data.

true

AccessDeniedDetail

string

AccessDeniedDetail

{ "PolicyType": "AccountLevelIdentityBasedPolicy", "AuthPrincipalOwnerId": "xxx", "EncodedDiagnosticMessage": "xxx", "AuthPrincipalType": "xxx", "AuthPrincipalDisplayName": "xxx", "NoPermissionType": "ImplicitDeny", "AuthAction": "sr:xxx" }

Examples

Success response

JSON format

{
  "HttpStatusCode": 200,
  "RequestId": "32A44F0D-BFF6-5664-999A-218BBDE74XXX",
  "Success": true,
  "ErrCode": "InvalidParams\n",
  "ErrMessage": "Invalid params: [instance not exists].",
  "Data": 0,
  "AccessDeniedDetail": "{     \"PolicyType\": \"AccountLevelIdentityBasedPolicy\",     \"AuthPrincipalOwnerId\": \"xxx\",     \"EncodedDiagnosticMessage\": \"xxx\",     \"AuthPrincipalType\": \"xxx\",     \"AuthPrincipalDisplayName\": \"xxx\",     \"NoPermissionType\": \"ImplicitDeny\",     \"AuthAction\": \"sr:xxx\"   }"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.