All Products
Search
Document Center

Microservices Engine:ListEurekaServices

Last Updated:Jul 31, 2026

Queries Eureka services registered in a Microservices Engine (MSE) instance and returns paginated results.

Request syntax

{
    "RegionId": "string",
    "ClusterId": "string",
    "PageNum": integer,
    "PageSize": integer,
    "RequestPars": "string",
    "AcceptLanguage": "string"
}

Request parameters

All parameters are passed as query parameters.

ParameterTypeRequiredDescriptionExample
RegionIdstringYesThe ID of the region where the MSE instance resides.cn-hangzhou
ClusterIdstringYesThe ID of the MSE instance.mse-09k1q11\*\*\*\*
PageNumintegerYesThe page number to return. Pages start from 1.1
PageSizeintegerYesThe number of entries per page.10
RequestParsstringNoExtended request parameters in JSON format.{}
AcceptLanguagestringNoThe language of the response. Valid values: zh (Chinese), en (English).zh

Response syntax

{
    "HttpCode": "string",
    "TotalCount": integer,
    "RequestId": "string",
    "Message": "string",
    "PageSize": integer,
    "PageNumber": integer,
    "Data": [
        {
            "Name": "string",
            "InstancesId": ["string"],
            "UpStatus": "string"
        }
    ],
    "ErrorCode": "string",
    "Success": boolean
}

Response elements

ParameterTypeDescriptionExample
HttpCodestringThe HTTP status code.202
TotalCountintegerThe total number of entries returned.7
RequestIdstringThe request ID. Use this ID when you open a support ticket.316F5F64-F73D-42DC-8632-01E308B6\*\*\*\*
MessagestringThe response message.The request is successfully processed.
PageSizeintegerThe number of entries per page.10
PageNumberintegerThe current page number.1
Dataarray of objectsThe list of Eureka services. See the Data object table.-
ErrorCodestringThe error code. Returned only when the request fails.mse-100-000
SuccessbooleanWhether the request succeeded. Valid values: true, false.true

Data object

ParameterTypeDescriptionExample
NamestringThe name of the Eureka service.CONTACTINFO
InstancesIdarray of stringsThe IDs of the instances where the service is registered.mse-cn-st21ri2\*\*\*\*
UpStatusstringThe ratio of healthy instances to total instances, in the format healthy/total.1/1

RAM authorization

To call this API operation, make sure the RAM user or RAM role has the following permission in a RAM policy.

ActionAccess levelResource
mse:ListEurekaServicesReadMSEacs:mse:{#regionId}:{#accountId}:instance/*

Examples

Request parameters

RegionId=cn-hangzhou
ClusterId=mse-09k1q11****
PageNum=1
PageSize=10

Response (JSON)

{
    "HttpCode": "202",
    "TotalCount": 7,
    "RequestId": "316F5F64-F73D-42DC-8632-01E308B6****",
    "Message": "The request is successfully processed.\n",
    "PageSize": 10,
    "PageNumber": 1,
    "Data": [
        {
            "InstancesId": [
                "mse-cn-st21ri2****"
            ],
            "Name": "CONTACTINFO",
            "UpStatus": "1/1"
        }
    ],
    "ErrorCode": "mse-100-000",
    "Success": true
}

Error codes

HTTP status codeError codeError messageDescription
400duplicatedClusterAliasNameduplicated cluster alias nameThe instance name already exists. Use a different name.
400illegalRequestillegal request:%sThe request is invalid. Check the request format and parameters.
400invalidParameterparameter error:%sA request parameter is invalid. Check the parameter values.
403NoPermissionYou are not authorized to perform this operation.The RAM user or role lacks the required permission. Grant the mse:ListEurekaServices permission.
404clusterNotFoundcluster not foundThe specified MSE instance does not exist. Verify the ClusterId value.
500systemErrorsystem errorAn internal error occurred. Try again later.
500regcenterErrorregister center error:%sThe service registry returned an error. Check the instance status and try again.

For the complete list of error codes, see API error center.