All Products
Search
Document Center

Microservices Engine:ListClusters

Last Updated:Nov 13, 2024

Queries Microservices Engine (MSE) instances.

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

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
mse:ListClustersget
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RequestParsstringNo

The extended request parameters in the JSON format.

{}
PageNumintegerYes

The number of the page to return.

1
PageSizeintegerYes

The number of entries to return on each page.

10
ClusterAliasNamestringNo

The alias of the instance. Fuzzy match is supported.

cluster
RegionIdstringYes

The ID of the region in which the instance resides. The region is supported by MSE.

cn-hangzhou
ResourceGroupIdstringNo

The ID of the resource group. For more information about resource groups, see the topic "View basic information of a resource group."

rg-acfmxbzafebvvfa
Tagarray<object>No

The list of tags. A maximum number of 20 tags are supported.

objectNo

The tags.

KeystringNo

The key of the tag.

env
ValuestringNo

The value of the tag.

prd
AcceptLanguagestringNo

The language of the response. Valid values:

  • zh: Chinese
  • en: English
zh

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

HttpCodestring

The HTTP status code returned.

202
TotalCountinteger

The total number of returned instances.

7
RequestIdstring

The ID of the request.

69AD2AA7-DB47-449B-941B-B14409DF****
Messagestring

The message returned.

The request was successfully processed.
PageSizeinteger

The number of entries returned per page.

10
PageNumberinteger

The page number of the returned page.

1
Dataarray<object>

The details of the data.

ClusterForListModelobject

The string object.

EndDatestring

The time when the cluster expires.

2021-08-01 00:00:00
IntranetDomainstring

The internal endpoint.

mse-7413****-eureka.mse.aliyuncs.com
InternetDomainstring

The public endpoint.

mse-7413****-p.eureka.mse.aliyuncs.com
CreateTimestring

The time when the cluster was created.

2020-07-31 11:36:08
ChargeTypestring

The billing method, such as subscription or pay-as-you-go.

Pay-as-you-go
IntranetAddressstring

The internal IP address.

192.168.XX.XX
InstanceIdstring

The instance ID.

mse-cn-st21ri2****
InternetAddressstring

The public IP address.

47.98.XX.XX
ClusterAliasNamestring

The alias of the cluster.

mse-7413****
ClusterTypestring

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

Eureka
InitStatusstring

The initialization status of the instance.

RESTART_SUCCESS
AppVersionstring

The application version.

1.9.3
CanUpdateboolean

Indicates whether the instance can be upgraded.

true
VersionCodestring

The version information.

EUREKA_1_9_3
InstanceCountlong

The number of clusters.

2
ClusterNamestring

The name of the cluster.

mse-cn-st21ri2****
MseVersionstring

The edition of the cluster.

mse_pro
Tagsobject

The tags that are attached to the instance.

ResourceGroupIdstring

The ID of the resource group to which the instance belongs.

rg-acfmv7jiavm4uxa
ErrorCodestring

The error code returned if the request failed.

mse-100-000
Successboolean

Indicates whether the request was successful. Valid values:

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

Examples

Sample success responses

JSONformat

{
  "HttpCode": "202",
  "TotalCount": 7,
  "RequestId": "69AD2AA7-DB47-449B-941B-B14409DF****",
  "Message": "The request was successfully processed.\n",
  "PageSize": 10,
  "PageNumber": 1,
  "Data": [
    {
      "EndDate": "2021-08-01 00:00:00",
      "IntranetDomain": "mse-7413****-eureka.mse.aliyuncs.com",
      "InternetDomain": "mse-7413****-p.eureka.mse.aliyuncs.com",
      "CreateTime": "2020-07-31 11:36:08",
      "ChargeType": "Pay-as-you-go\n",
      "IntranetAddress": "192.168.XX.XX",
      "InstanceId": "mse-cn-st21ri2****",
      "InternetAddress": "47.98.XX.XX",
      "ClusterAliasName": "mse-7413****",
      "ClusterType": "Eureka",
      "InitStatus": "RESTART_SUCCESS",
      "AppVersion": "1.9.3",
      "CanUpdate": true,
      "VersionCode": "EUREKA_1_9_3",
      "InstanceCount": 2,
      "ClusterName": "mse-cn-st21ri2****",
      "MseVersion": "mse_pro",
      "Tags": {
        "test": "test",
        "test2": 1
      },
      "ResourceGroupId": "rg-acfmv7jiavm4uxa",
      "VpcId": "vpc-bp1hcg467ekqsv0zr****"
    }
  ],
  "ErrorCode": "mse-100-000",
  "Success": true
}

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:%sYou do not have the permission to use this interface:%s
404NotFoundNot found:%sThe resource does not exist:%s
500InternalErrorConsole error. Try again later:%sConsole error. Try again later: %s

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

Change history

Change timeSummary of changesOperation
2023-10-19The response structure of the API has changedView Change Details
2023-08-09The response structure of the API has changedView Change Details
2023-04-25The internal configuration of the API is changed, but the call is not affectedView Change Details
2021-10-20The response structure of the API has changedView Change Details