ListSubnets
Queries the details of one or more Lingjun subnets, including the subnet type, network CIDR block, and the instance ID of the Lingjun CIDR block to which the subnet belongs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eflo:ListSubnets |
get |
*Subnet
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-wulanchabu |
| ZoneId |
string |
No |
The zone ID. |
cn-wulanchabu-a |
| SubnetId |
string |
No |
The instance ID of the Lingjun subnet. |
subnet-anhtskts |
| SubnetName |
string |
No |
The name of the Lingjun subnet. |
subnet-1 |
| VpdId |
string |
No |
The instance ID of the Lingjun CIDR block to which the subnet belongs. |
vpd-fuliephf |
| Status |
string |
No |
The instance status. Valid values:
|
Available |
| Type |
string |
No |
The usage type of the Lingjun subnet. This parameter is optional. Valid values:
|
Null |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-aeky5f3qx6ceapq |
| Tag |
array<object> |
No |
The tags. You can specify up to 20 tags at a time. |
|
|
object |
No |
The tag information. |
||
| Key |
string |
No |
The tag key of the resource. The tag key cannot be an empty string. It can be up to 64 characters in length, and cannot start with aliyun or acs:, or contain http:// or https://. You can specify up to 20 tag keys at a time. |
rg-subnet |
| Value |
string |
No |
The tag value of the resource. The tag value can be empty or a string of up to 128 characters in length. It cannot start with aliyun or acs:, or contain http:// or https://. Each tag key corresponds to a tag value. You can specify up to 20 tag values at a time. |
subnet-group-1 |
| PageNumber |
integer |
No |
The page number. Valid values: integers greater than 0. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. Valid values: 1 to 100. Default value: 20. |
20 |
| EnablePage |
boolean |
No |
Specifies whether to enable paging for the paged query. Valid values:
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response information. |
||
| Code |
integer |
The response code. |
0 |
| Message |
string |
The response message. |
SUCCESS |
| RequestId |
string |
The ID of the request. |
7F9082CC-3D94-560F-A575-8E8EF6CE2CB8 |
| Content |
object |
The response content. |
|
| Total |
integer |
The total number of entries. |
10 |
| Data |
array<object> |
The list of Lingjun subnets. |
|
|
array<object> |
The Lingjun subnet information. |
||
| CreateTime |
string |
The creation time. The value is a 13-digit UNIX timestamp in milliseconds. |
1678273219000 |
| GmtModified |
string |
The update time. |
1678273219000 |
| TenantId |
string |
The tenant ID. |
1655449505171 |
| RegionId |
string |
The region ID. |
cn-wulanchabu |
| ZoneId |
string |
The zone ID. |
cn-wulanchabu-b |
| Type |
string |
The usage type of the Lingjun subnet. This parameter is optional. Valid values:
|
OOB |
| SubnetId |
string |
The Lingjun subnet instance ID. |
subnet-c6wci55i |
| SubnetName |
string |
The name of the Lingjun subnet. |
yzp-rg-test3 |
| Cidr |
string |
The CIDR block of the subnet.
|
172.18.0.0/24 |
| VpdId |
string |
The instance ID of the parent Lingjun CIDR block. |
vpd-ze3na0wf |
| Status |
string |
The instance status. Valid values:
|
Available |
| Message |
string |
The error message. If the instance status is abnormal, this parameter indicates the cause of the exception. |
Success |
| VpdBaseInfo |
object |
The basic information of the VPD. |
|
| VpdId |
string |
The instance ID of the Lingjun CIDR block. |
vpd-d3isyds4 |
| VpdName |
string |
The name of the Lingjun VPD instance. |
yzp-rg-test3 |
| Cidr |
string |
The CIDR block of the VPD.
|
10.0.0.0/8 |
| CreateTime |
string |
The creation time. The value is a 13-digit UNIX timestamp in milliseconds. |
1678273219000 |
| NcCount |
integer |
The number of hosts. |
16 |
| NetworkInterfaceCount |
integer |
The number of Lingjun network interfaces. |
1 |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-aek2l4sq6l7unhi |
| Tags |
array<object> |
The tags. You can specify up to 20 tags at a time. |
|
|
object |
The tag information. |
||
| TagKey |
string |
The tag key of the resource. The tag key cannot be an empty string. It can be up to 64 characters in length, and cannot start with aliyun or acs:, or contain http:// or https://. You can specify up to 20 tag keys at a time. |
tag-subnet |
| TagValue |
string |
The tag value of the resource. The tag value can be empty or a string of up to 128 characters in length. It cannot start with aliyun or acs:, or contain http:// or https://. Each tag key corresponds to a tag value. You can specify up to 20 tag values at a time. |
subnet-group-1 |
| AccessDeniedDetail |
string |
The details of the access denial. |
None |
Examples
Success response
JSON format
{
"Code": 0,
"Message": "Succeeded",
"RequestId": "7F9082CC-3D94-560F-A575-8E8EF6CE2CB8",
"Content": {
"Total": 10,
"Data": [
{
"CreateTime": "1678273219000",
"GmtModified": "1678273219000",
"TenantId": "1655449505171",
"RegionId": "cn-wulanchabu",
"ZoneId": "cn-wulanchabu-b",
"Type": "OOB",
"SubnetId": "subnet-c6wci55i",
"SubnetName": "yzp-rg-test3",
"Cidr": "172.18.0.0/24",
"VpdId": "vpd-ze3na0wf",
"Status": "Available",
"Message": "SUCCESS",
"VpdBaseInfo": {
"VpdId": "vpd-d3isyds4",
"VpdName": "yzp-rg-test3",
"Cidr": "10.0.0.0/8",
"CreateTime": "1678273219000"
},
"NcCount": 16,
"NetworkInterfaceCount": 1,
"ResourceGroupId": "rg-aek2l4sq6l7unhi",
"Tags": [
{
"TagKey": "tag-subnet",
"TagValue": "subnet-group-1"
}
]
}
]
},
"AccessDeniedDetail": "None"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.