ModifySpecTypePreCheck

Updated at:

Runs a precheck to modify the node specification type for a 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/modifySpecTypePreCheck HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The instance ID.

c-b25e21e24388****

NodeGroupId

string

Yes

The compute group ID.

ng-3d5ce6454354****

TargetSpecType

string

No

The target specification type.

standard

Response elements

Element

Type

Description

Example

object

HttpStatusCode

integer

The HTTP status code of the request.

200

RequestId

string

The request ID.

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

Success

boolean

Indicates whether the request was successful.

false

ErrCode

string

The error code.

Success

ErrMessage

string

The error message.

Invalid params: [Region id should be select from set [cn-beijing, cn-hangzhou]]

Data

object

The returned data.

Allow

boolean

Indicates whether the number of CUs can be modified.

false

Reason

string

The reason why the number of CUs cannot be modified.

Failed to find node group[ng-3d5ce6454354****].

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": "Success",
  "ErrMessage": "Invalid params: [Region id should be select from set [cn-beijing, cn-hangzhou]]",
  "Data": {
    "Allow": false,
    "Reason": "Failed to find node group[ng-3d5ce6454354****]."
  },
  "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.