Queries resource groups.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation only uses the common request header. For more information, see Common request parameters.

Request syntax

POST /pop/v5/resource/reg_group_list HTTPS|HTTP

Request parameters

Response parameters

Parameter Type Example Description
Code Integer 200

The returned code.

Message String success

The returned message.

RequestId String b197-40ab-9155-7ca7

The ID of the request.

ResourceGroupList Array

For more information about how to define a resource group, see ResGroupEntity.

ResGroupEntity
AdminUserId String 1172745866080237

The unique ID of the user.

CreateTime Long 1557890594376

The timestamp for the time when the resource group was created.

Description String QqLZDA3pBZ

The description of the resource group.

Id Long 8592

The ID of the resource group.

Name String TIa2LGixyD

The name of the resource group.

RegionId String cn-qingdao

The ID of the region where the resource group is deployed.

SlbList Array

The returned Server Load Balancer (SLB) instances.

SlbEntity
Address String b197-40ab-9155-7ca7

The IP address.

AddressType String ipv4

The type of the IP address.

Expired Boolean true

Indicates whether the SLB instance has expired.

GroupId Integer 641897243

The ID of the instance group that was created.

NetworkType String 2

The type of the network.

RegionId String cn-beijing

The ID of the region.

SlbId String SlbId

The unique ID of the SLB instance.

SlbName String slbname

The name of the SLB instance.

SlbStatus String status

The status of the SLB instance.

UserId String 641897243

The ID of the user.

VpcId String 641897243

The ID of the virtual private cloud (VPC).

VswitchId String 641897243

The ID of the vSwitch.

UpdateTime Long 641897243

The timestamp for the time when the task was updated.

ecsList Array

The returned Elastic Compute Service (ECS) instances.

EcsEntity
Cpu Integer 2

The total number of CPUs.

Description String ""

The description of the ECS instance.

EcuEntity Struct

The elastic compute unit (ECU) that corresponds to the ECS instance.

AvailableCpu Integer 1

The number of available CPUs.

AvailableMem Integer 200

The amount of available memory.

Cpu Integer 2

The total number of CPUs.

CreateTime Long 641897243

The time when the ECU was created.

DockerEnv Boolean true

Indicates whether Docker was installed.

EcuId String 641897243

The unique ID of the ECU, which can be obtained by running dmidecode on the ECS instance.

HeartbeatTime Long 641897243

The heartbeat time of the ECU.

InstanceId String 641897243

The ID of the instance.

IpAddr String 641897243

The private IP address of the ECU.

Mem Integer 200

The total memory.

Name String name

The name of the ECU.

Online Boolean true

Indicates whether the ECU is running.

RegionId String cn-beijing

The ID of the region.

UpdateTime Long 641897243

The timestamp for the time when the ECU was reconfigured.

UserId String 641897243

The ID of the user associated with the ECU.

VpcId String 641897243

The ID of the VPC.

ZoneId String 641897243

The ID of the zone.

Eip String 641897243

The elastic IP address.

Expired Boolean true

Indicates whether the ECU has expired.

GroupId String ""

The ID of the Enterprise Distributed Application Service (EDAS) resource group.

HostName String ""

The name of the host.

InnerIp String ""

The private IP address.

InstanceId String ""

The ID of the instance.

InstanceId String ""

InstanceName String ""

The name of the instance.

Mem Integer 1

The total memory. Unit: MB.

PrivateIp String ""

The private IP address.

PublicIp String ""

The public IP address.

RegionId String ""

The ID of the region.

SerialNum String ""

The serial number.

SgId String ""

The ID of the security group.

Status String ""

Indicates the status of the instance.

UserId String ""

The ID of the user.

VpcEntity Struct

The VPC that is connected to the ECS instance.

Cidrblock String ""

The IPv4 CIDR block of the vSwitch.

Description String ""

The description of the VPC-connected instance.

EcsNum Integer 1

The name of the instance.

Expired Boolean true

Indicates whether the VPC connected to the ECS instance has expired.

RegionId String ""

The ID of the region.

Status String ""

The status of the instance.

UserId String ""

The ID of the user.

VpcId String ""

The unique ID of the VPC.

VpcName String ""

The name of the VPC.

VpcId String ""

The unique ID of the VPC.

ZoneId String ""

The ID of the zone where the instance was deployed.

Examples

Sample requests

POST /pop/v5/resource/reg_group_list HTTP/1.1
Common request parameters

Sample success responses

XML format

<Message>success</Message>
<ResourceGroupList>
    <ResGroupEntity>
        <Name>TIa2LGixyD</Name>
        <AdminUserId>1172745866080237</AdminUserId>
        <Description>QqLZDA3pBZ</Description>
        <ecsList>
        </ecsList>
        <RegionId>cn-qingdao</RegionId>
        <CreateTime>1557890594376</CreateTime>
        <UpdateTime>1557890594376</UpdateTime>
        <Id>8592</Id>
        <SlbList>
        </SlbList>
    </ResGroupEntity>
    <ResGroupEntity>
        <Name>qingdaoTestR2019070410584956</Name>
        <AdminUserId>1172745866080237</AdminUserId>
        <Description>qingdaoTestR2019070410584956</Description>
        <ecsList>
        </ecsList>
        <RegionId>cn-qingdao</RegionId>
        <CreateTime>1562209129522</CreateTime>
        <UpdateTime>1562209129522</UpdateTime>
        <Id>8965</Id>
        <SlbList>
        </SlbList>
    </ResGroupEntity>
    <ResGroupEntity>
        <Name>luybtest</Name>
        <AdminUserId>edas_common_test@aliyun-inner.com</AdminUserId>
        <Description>1234</Description>
        <ecsList>
        </ecsList>
        <RegionId>cn-hangzhou</RegionId>
        <CreateTime>1566182756912</CreateTime>
        <UpdateTime>1566182756912</UpdateTime>
        <Id>10171</Id>
        <SlbList>
        </SlbList>
    </ResGroupEntity>
    <ResGroupEntity>
        <Name>aaa</Name>
        <AdminUserId>edas_common_test@aliyun-inner.com</AdminUserId>
        <Description>bbbb</Description>
        <ecsList>
        </ecsList>
        <RegionId>cn-hangzhou</RegionId>
        <CreateTime>1567476421973</CreateTime>
        <UpdateTime>1567476421973</UpdateTime>
        <Id>10551</Id>
        <SlbList>
        </SlbList>
    </ResGroupEntity>
    <ResGroupEntity>
        <Name>dankun</Name>
        <AdminUserId>edas_common_test@aliyun-inner.com</AdminUserId>
        <Description>1233434</Description>
        <ecsList>
        </ecsList>
        <RegionId>cn-qingdao</RegionId>
        <CreateTime>1567476519506</CreateTime>
        <UpdateTime>1567476519506</UpdateTime>
        <Id>10552</Id>
        <SlbList>
        </SlbList>
    </ResGroupEntity>
</ResourceGroupList>
<Code>200</Code>

JSON format

{
    "Message": "success",
    "ResourceGroupList": {
        "ResGroupEntity": [
            {
                "Name": "TIa2LGixyD",
                "AdminUserId": "1172745866080237",
                "Description": "QqLZDA3pBZ",
                "ecsList": {
                    "EcsEntity": []
                },
                "RegionId": "cn-qingdao",
                "CreateTime": 1557890594376,
                "UpdateTime": 1557890594376,
                "Id": 8592,
                "SlbList": {
                    "SlbEntity": []
                }
            },
            {
                "Name": "qingdaoTestR2019070410584956",
                "AdminUserId": "1172745866080237",
                "Description": "qingdaoTestR2019070410584956",
                "ecsList": {
                    "EcsEntity": []
                },
                "RegionId": "cn-qingdao",
                "CreateTime": 1562209129522,
                "UpdateTime": 1562209129522,
                "Id": 8965,
                "SlbList": {
                    "SlbEntity": []
                }
            },
            {
                "Name": "luybtest",
                "AdminUserId": "edas_common_test@aliyun-inner.com",
                "Description": "1234",
                "ecsList": {
                    "EcsEntity": []
                },
                "RegionId": "cn-hangzhou",
                "CreateTime": 1566182756912,
                "UpdateTime": 1566182756912,
                "Id": 10171,
                "SlbList": {
                    "SlbEntity": []
                }
            },
            {
                "Name": "aaa",
                "AdminUserId": "edas_common_test@aliyun-inner.com",
                "Description": "bbbb",
                "ecsList": {
                    "EcsEntity": []
                },
                "RegionId": "cn-hangzhou",
                "CreateTime": 1567476421973,
                "UpdateTime": 1567476421973,
                "Id": 10551,
                "SlbList": {
                    "SlbEntity": []
                }
            },
            {
                "Name": "dankun",
                "AdminUserId": "edas_common_test@aliyun-inner.com",
                "Description": "1233434",
                "ecsList": {
                    "EcsEntity": []
                },
                "RegionId": "cn-qingdao",
                "CreateTime": 1567476519506,
                "UpdateTime": 1567476519506,
                "Id": 10552,
                "SlbList": {
                    "SlbEntity": []
                }
            }
        ]
    },
    "Code": 200
}

Error codes

For a list of error codes, visit the API Error Center.