Queries resource groups.
Try it now
Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ListResourceGroup |
list |
*All Resource
|
None | None |
Request syntax
POST /pop/v5/resource/reg_group_list HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
No request parameters.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| Code |
integer |
The HTTP status code. |
200 |
| Message |
string |
Additional information. |
success |
| RequestId |
string |
The ID of the request. |
b197-40ab-9155-**** |
| ResourceGroupList |
object |
||
| ResGroupEntity |
array<object> |
The resource group definitions. |
|
|
array<object> |
The resource group details. |
||
| UpdateTime |
integer |
The time when the resource group was last updated. UNIX timestamp, in milliseconds. |
1573281040827 |
| Description |
string |
The description of the resource group. |
QqLZDA3pBZ |
| AdminUserId |
string |
The UID of the Alibaba Cloud account. |
****@aliyun.com |
| CreateTime |
integer |
The time when the resource group was created. UNIX timestamp, in milliseconds. |
1557890594376 |
| Name |
string |
The name of the resource group. |
TIa2LGixyD |
| Id |
integer |
The ID of the resource group. |
8592 |
| RegionId |
string |
The region ID of the resource group. |
cn-qingdao |
| ecsList |
object |
||
| EcsEntity |
array<object> |
The ECS instances. |
|
|
array<object> |
The ECS instance details. |
||
| VpcId |
string |
The VPC ID. |
vpc-bp13evu4aayj2t1er**** |
| SgId |
string |
The ID of the security group. |
sg-m5eajgzn6b8sg9mv**** |
| Status |
string |
The status of the ECS instance. Valid values:
|
Running |
| PrivateIp |
string |
The private IP address of the ECS instance. |
192.168.xx.xxx |
| Expired |
boolean |
Whether the ECS instance has expired. Valid values:
|
true |
| UserId |
string |
The ID of the user account. |
****_common_****@aliyun.com |
| HostName |
string |
The hostname. |
iZm5e853hvvrodnvqus**** |
| InstanceId |
string |
The ID of the ECS instance. |
i-m5e853hvvrodnvqu**** |
| Mem |
integer |
The total size of memory. Unit: MB. |
1 |
| RegionId |
string |
The ID of the region. |
ch-hangzhou |
| Cpu |
integer |
The total number of CPU cores. |
2 |
| InnerIp |
string |
The private IP address. |
192.168.xx.xxx |
| GroupId |
string |
The EDAS resource group ID. |
64189**** |
| Eip |
string |
The EIP. |
192.168.xxx.xx |
| Description |
string |
The description of the ECS instance. |
test |
| InstanceName |
string |
The name of the ECS instance. |
betabjmixcoud_01 |
| ZoneId |
string |
The ID of the zone. |
cn-qingdao-h |
| SerialNum |
string |
The serial number of the ECS instance. |
98b480b8-458b-4ff3-84b9-cf7097c5**** |
| PublicIp |
string |
The public IP address. |
192.168.xx.xxx |
| EcuEntity |
object |
The ECU associated with the ECS instance. |
|
| VpcId |
string |
The ID of the VPC. |
vpc-2ze1ram356umxs598**** |
| UpdateTime |
integer |
The time when the ECU was last updated. UNIX timestamp, in milliseconds. |
1573281040827 |
| IpAddr |
string |
The private IP address of the ECU. |
192.168.xxx.xx |
| AvailableCpu |
integer |
The number of available CPUs. |
1 |
| CreateTime |
integer |
The time when the ECU was created. UNIX timestamp, in milliseconds. |
1557890594376 |
| UserId |
string |
The ID of the user associated with the ECU. |
edas_****_test@aliyun-****.com |
| InstanceId |
string |
The ID of the instance. |
i-2zej4i2jdf********* |
| Mem |
integer |
The total size of memory. Unit: MB. |
200 |
| RegionId |
string |
The ID of the region. |
cn-beijing |
| EcuId |
string |
The ECU ID. Run |
0de2ebdb-9490-4fc4-be41*************** |
| Cpu |
integer |
The total number of CPU cores. |
2 |
| DockerEnv |
boolean |
Whether Docker is installed. Valid values:
|
true |
| Online |
boolean |
Whether the ECU is online. Valid values:
|
true |
| AvailableMem |
integer |
The size of the available memory. |
200 |
| ZoneId |
string |
The ID of the zone. |
cn-beijing-b |
| Name |
string |
The name of the ECU. |
test |
| HeartbeatTime |
integer |
The time of the last heartbeat. UNIX timestamp, in milliseconds. |
1573281040819 |
| VpcEntity |
object |
The VPCs. |
|
| Status |
string |
The status of the VPC. |
Running |
| VpcName |
string |
The name of the VPC. |
test |
| VpcId |
string |
The VPC ID. |
vpc-bp13evu42t1er**** |
| Description |
string |
The description of the VPC. |
"" |
| Expired |
boolean |
Whether the VPC has expired. Valid values:
|
true |
| Cidrblock |
string |
The IPv4 CIDR block of the vSwitch. |
192.168.xx.xxx |
| UserId |
string |
The ID of the user. |
****_common_****@aliyun.com |
| EcsNum |
integer |
The number of ECS instances that run in the VPC. |
1 |
| RegionId |
string |
The ID of the region. |
cn-qingdao |
| SlbList |
object |
||
| SlbEntity |
array<object> |
The SLB instances. |
|
|
object |
The SLB instance details. |
||
| SlbId |
string |
The SLB instance ID. |
lb-2zebf1fpbpkc7dnro**** |
| VpcId |
string |
The ID of the VPC. |
vpc-m5e666n89m2bx8jar**** |
| VswitchId |
string |
The ID of the vSwitch. |
vsw-mktkxkhah14**** |
| Expired |
boolean |
Whether the SLB instance has expired. Valid values:
|
true |
| UserId |
string |
The UID of the Alibaba Cloud account. |
****@aliyun.com |
| AddressType |
string |
The SLB address type. Valid values:
|
Intranet |
| NetworkType |
string |
The SLB network type. Valid values:
|
vpc |
| RegionId |
string |
The ID of the region. |
cn-beijing |
| GroupId |
integer |
The resource group ID of the SLB instance. |
64189**** |
| Address |
string |
The IP address of the SLB instance. |
192.168.xxx.xx |
| SlbName |
string |
The name of the SLB instance. |
a9315af59b4cd11e9a18c00163e1**** |
| SlbStatus |
string |
The status of the SLB instance. |
active |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "success",
"RequestId": "b197-40ab-9155-****",
"ResourceGroupList": {
"ResGroupEntity": [
{
"UpdateTime": 1573281040827,
"Description": "QqLZDA3pBZ",
"AdminUserId": "****@aliyun.com",
"CreateTime": 1557890594376,
"Name": "TIa2LGixyD",
"Id": 8592,
"RegionId": "cn-qingdao",
"ecsList": {
"EcsEntity": [
{
"VpcId": "vpc-bp13evu4aayj2t1er****",
"SgId": "sg-m5eajgzn6b8sg9mv****",
"Status": "Running",
"PrivateIp": "192.168.xx.xxx",
"Expired": true,
"UserId": "****_common_****@aliyun.com",
"HostName": "iZm5e853hvvrodnvqus****",
"InstanceId": "i-m5e853hvvrodnvqu****",
"Mem": 1,
"RegionId": "ch-hangzhou",
"Cpu": 2,
"InnerIp": "192.168.xx.xxx",
"GroupId": "64189****",
"Eip": "192.168.xxx.xx",
"Description": "test",
"InstanceName": "betabjmixcoud_01",
"ZoneId": "cn-qingdao-h",
"SerialNum": "98b480b8-458b-4ff3-84b9-cf7097c5****",
"PublicIp": "192.168.xx.xxx",
"EcuEntity": {
"VpcId": "vpc-2ze1ram356umxs598****",
"UpdateTime": 1573281040827,
"IpAddr": "192.168.xxx.xx",
"AvailableCpu": 1,
"CreateTime": 1557890594376,
"UserId": "edas_****_test@aliyun-****.com",
"InstanceId": "i-2zej4i2jdf*********",
"Mem": 200,
"RegionId": "cn-beijing ",
"EcuId": "0de2ebdb-9490-4fc4-be41***************",
"Cpu": 2,
"DockerEnv": true,
"Online": true,
"AvailableMem": 200,
"ZoneId": "cn-beijing-b",
"Name": "test",
"HeartbeatTime": 1573281040819
},
"VpcEntity": {
"Status": "Running",
"VpcName": "test",
"VpcId": "vpc-bp13evu42t1er****",
"Description": "\"\"",
"Expired": true,
"Cidrblock": "192.168.xx.xxx",
"UserId": "****_common_****@aliyun.com",
"EcsNum": 1,
"RegionId": "cn-qingdao"
}
}
]
},
"SlbList": {
"SlbEntity": [
{
"SlbId": "lb-2zebf1fpbpkc7dnro****",
"VpcId": "vpc-m5e666n89m2bx8jar****",
"VswitchId": "vsw-mktkxkhah14****",
"Expired": true,
"UserId": "****@aliyun.com",
"AddressType": "Intranet",
"NetworkType": "vpc",
"RegionId": "cn-beijing",
"GroupId": 0,
"Address": "192.168.xxx.xx",
"SlbName": "a9315af59b4cd11e9a18c00163e1****",
"SlbStatus": "active"
}
]
}
}
]
}
}
Error codes
See Error CodesError Codes for a complete list.
Release notes
See Release NotesRelease Notes for a complete list.