All Products
Search
Document Center

Microservices Engine:QueryClusterDiskSpecification

Last Updated:Nov 13, 2024

Queries disk specifications that are supported by an instance.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ClusterTypestringYes

The type of the instance. Valid values: ZooKeeper, Nacos-Ans, and Eureka.

ZooKeeper
AcceptLanguagestringNo

The language of the response. Valid values:

  • zh: Chinese
  • en: English
zh

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

HttpStatusCodeinteger

The HTTP status code returned.

200
RequestIdstring

The ID of the request.

E13A3A34-7201-50C4-B2D0-0D7DB891811E
Successboolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
True
ErrorCodestring

The error code returned if the request failed.

mse-100-000
Codeinteger

The status code returned.

200
Messagestring

The message returned.

The request is successfully processed.
DynamicMessagestring

The dynamic part in the error message. This parameter is used to replace the **%s** variable in the ErrMessage parameter.

Note If the return value of the ErrMessage parameter is The Value of Input Parameter %s is not valid and the return value of the DynamicMessage parameter is DtsJobId, the specified DtsJobId parameter is invalid.
The specified parameter is invalid.
Dataobject

The details of the data.

Stepinteger

The step size of the disk capacity.

2
Maxinteger

The maximum disk capacity. Unit: GB.

500
Mininteger

The minimum disk capacity. Unit: GB.

1

Examples

Sample success responses

JSONformat

{
  "HttpStatusCode": 200,
  "RequestId": "E13A3A34-7201-50C4-B2D0-0D7DB891811E",
  "Success": true,
  "ErrorCode": "mse-100-000",
  "Code": 200,
  "Message": "The request is successfully processed.\n",
  "DynamicMessage": "The specified parameter is invalid.",
  "Data": {
    "Step": 2,
    "Max": 500,
    "Min": 1
  }
}

Error codes

HTTP status codeError codeError messageDescription
400IllegalRequestInvalid request:%sInvalid request: %s
400InvalidParameterParameter error:%sRequest parameter error: %s
403NoPermissionYou are not authorized to perform this operation.-
403NoPermissionYou are not authorized to perform this operation:%sYou do not have the permission to use this interface:%s
404NotFoundNot found:%sThe resource does not exist:%s
500InternalErrorAn error occurred while processing your request.-
500InternalErrorConsole error. Try again later:%sConsole error. Try again later: %s

For a list of error codes, visit the Service error codes.