All Products
Search
Document Center

Enterprise Distributed Application Service:ListClusterMembers

Last Updated:Mar 01, 2024

Queries Elastic Compute Service (ECS) instances in a cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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
edas:ReadClusterRead
  • Cluster
    acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}
    none
none

Request syntax

GET /pop/v5/resource/cluster_member_list

Request parameters

ParameterTypeRequiredDescriptionExample
ClusterIdstringYes

The ID of the cluster. You can call the ListCluster operation to query the cluster ID. For more information, see ListCluster .

52984524-6d48-4bbd-85f2-a34b0e5b****
CurrentPageintegerNo

The number of the page to return. If you do not specify this parameter, the first page is returned.

1
PageSizeintegerNo

The number of ECS instances to return on each page. If you do not specify this parameter, all ECS instances in the specified cluster are returned on one page.

50
EcsListstringNo

The number of ECS instances.

1

Response parameters

ParameterTypeDescriptionExample
object

The content that is returned.

Codeinteger

The HTTP status code that is returned.

200
Messagestring

The message that is returned.

success
RequestIdstring

The ID of the request.

b197-40ab-9155-****
ClusterMemberPageobject

The information about the ECS instances in the cluster.

CurrentPageinteger

The page number of the returned page. If this parameter is not returned, the first page is returned.

1
PageSizeinteger

The number of ECS instances returned per page.

10
TotalSizeinteger

The total number of pages returned when all ECS instances are returned based on the specified PageSize parameter.

5
ClusterMemberListobject []

The list of ECS instances in the cluster.

Statusinteger

The state of the ECS instance. Valid values:

  • 1: The instance is running.
  • 0: The instance is being converted.
  • -1: The instance fails to be converted.
  • -2: The instance is offline.
1
UpdateTimelong

The timestamp when the ECS instance was updated. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1573281041113
EcuIdstring

The unique ID of the elastic compute unit (ECU). You can run the dmidecode command on the ECS instance to query the ECU ID.

70ed3f59-b476-49aa-be09-9e6c375d****
EcsIdstring

The ID of the ECS instance.

i-2zej4i2jdf3ntwhj****
CreateTimelong

The timestamp when the ECS instance was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.

1573281038175
ClusterMemberIdstring

The ID of the ECS instance in the cluster.

adb03eeb-3adf-4d7e-afe1-03d1ad45****
ClusterIdstring

The ID of the cluster.

52984524-6d48-4bbd-85f2-a34b0e5b****
PrivateIpstring

The private IP address for the ECS instance.

172.16.XX.XX

Examples

Sample success responses

JSONformat

{
  "Code": 200,
  "Message": "success",
  "RequestId": "b197-40ab-9155-****",
  "ClusterMemberPage": {
    "CurrentPage": 1,
    "PageSize": 10,
    "TotalSize": 5,
    "ClusterMemberList": {
      "ClusterMember": [
        {
          "Status": 1,
          "UpdateTime": 1573281041113,
          "EcuId": "70ed3f59-b476-49aa-be09-9e6c375d****",
          "EcsId": "i-2zej4i2jdf3ntwhj****",
          "CreateTime": 1573281038175,
          "ClusterMemberId": "adb03eeb-3adf-4d7e-afe1-03d1ad45****",
          "ClusterId": "52984524-6d48-4bbd-85f2-a34b0e5b****",
          "PrivateIp": "172.16.XX.XX"
        }
      ]
    }
  }
}

Error codes

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

Change history

Change timeSummary of changesOperation
2022-11-07The response structure of the API has changedsee changesets
Change itemChange content
Output ParametersThe response structure of the API has changed.