ModifySpecType

Updated at:

Modify the node specifications type of the compute group.

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/modifySpecType HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

Instance ID.

c-b25e21e24388****

NodeGroupId

string

Yes

Compute group ID.

ng-3d5ce6454354****

TargetSpecType

string

Yes

Target specifications type.

standard

FastMode

boolean

No

Restart in fast restart mode. Default is false.

  • true: Restarts compute nodes in fast restart mode. Nodes restart in parallel within a batch, and batches execute sequentially.

  • false: Restarts compute nodes in rolling restart mode.

true

PromotionOptionNo

string

No

Coupon ID.

youhuiquan_promotion_option_id_for_blank

Response elements

Element

Type

Description

Example

object

HttpStatusCode

integer

HTTP request status code.

200

RequestId

string

Request ID.

32A44F0D-BFF6-5664-999A-218BBDE7****

Success

boolean

Indicates whether the request was successful.

false

ErrCode

string

Error code.

InvalidParams

ErrMessage

string

Error message.

Invalid params: [instance not exists].

Data

integer

Order ID.

24151320976****

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-218BBDE7****",
  "Success": false,
  "ErrCode": "InvalidParams",
  "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.