ListSubnets
You can call this operation to query the details of one or more Lingjun subnets, including the Lingjun subnet type, network address segment, and instance ID of the Lingjun CIDR block.
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 of the disk. |
cn-wulanchabu |
| ZoneId |
string |
No |
The zone ID of the disk. |
cn-wulanchabu-a |
| SubnetId |
string |
No |
Lingjun subnet instance ID |
subnet-anhtskts |
| SubnetName |
string |
No |
Lingjun subnet instance name |
subnet-1 |
| VpdId |
string |
No |
The ID of the Lingjun CIDR block. |
vpd-fuliephf |
| Status |
string |
No |
The status of the CLB instance. Valid values:
|
Available |
| Type |
string |
No |
Lingjun Subnet Usage Type; optional; optional. Valid values:
|
Null |
| ResourceGroupId |
string |
No |
The resource group ID. For more information about resource groups, see Resource groups. |
rg-aeky5f3qx6ceapq |
| Tag |
array<object> |
No |
The tag information. You can specify up to 20 tags. |
|
|
object |
No |
The tag. |
||
| Key |
string |
No |
The tag key of the VPN attachment. You cannot specify an empty string as a tag key. It can be up to 64 characters in length and cannot start with aliyun or acs:. It cannot contain http:// or https://. You can specify at most 20 tag keys in each call. |
rg-subnet |
| Value |
string |
No |
The tag value of the VPN connection. The tag value can be empty or a string of up to 128 characters. It cannot start with aliyun or acs:, and cannot contain http:// or https://. Each key-value pair must be unique. You can specify values for at most 20 tag keys in each call. |
subnet-group-1 |
| PageNumber |
integer |
No |
The number of the page to return. The value must be greater than 0. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Valid values: 1 to 100. Default value: 20. |
20 |
| EnablePage |
boolean |
No |
Specifies whether to query by page. Optional values:
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
AjaxResult<PageResult> |
||
| Code |
integer |
The response status code. |
0 |
| Message |
string |
The returned message. |
SUCCESS |
| RequestId |
string |
Request ID of the current request |
7F9082CC-3D94-560F-A575-8E8EF6CE2CB8 |
| Content |
object |
The response parameters. |
|
| Total |
integer |
The total number of entries returned. |
10 |
| Data |
array<object> |
Lingjun subnet information list |
|
|
array<object> |
Lingjun subnet information |
||
| CreateTime |
string |
The time when the data address was created. |
1678273219000 |
| GmtModified |
string |
The time when the agent was last modified. |
1678273219000 |
| TenantId |
string |
The ID of the tenant. |
1655449505171 |
| RegionId |
string |
The region ID. |
cn-wulanchabu |
| ZoneId |
string |
The zone ID. |
cn-wulanchabu-b |
| Type |
string |
Lingjun Subnet Usage Type; optional; optional. Valid values:
|
OOB |
| SubnetId |
string |
Lingjun subnet instance ID |
subnet-c6wci55i |
| SubnetName |
string |
Lingjun subnet instance name |
yzp-rg-test3 |
| Cidr |
string |
The CIDR block of the Subnet.
|
172.18.0.0/24 |
| VpdId |
string |
The ID of the Lingjun CIDR block. |
vpd-ze3na0wf |
| Status |
string |
The status of the cache reserve instance. Valid values:
|
Available |
| Message |
string |
The error message. (If the instance is in the Exception state, the exception cause is prompted.) |
成功 |
| VpdBaseInfo |
object |
vpd basic information |
|
| VpdId |
string |
Lingjun CIDR block instance ID |
vpd-d3isyds4 |
| VpdName |
string |
Lingjun CIDR block instance name |
yzp-rg-test3 |
| Cidr |
string |
The CIDR block of the VPD.
|
10.0.0.0/8 |
| CreateTime |
string |
The time when the data address was created. |
1678273219000 |
| NcCount |
integer |
Number of NCs |
16 |
| NetworkInterfaceCount |
integer |
Number of Lingjun network interface controller |
1 |
| ResourceGroupId |
string |
The ID of your Alibaba Cloud resource group. For more information about resource groups, see Resource groups. |
rg-aek2l4sq6l7unhi |
| Tags |
array<object> |
The tag information. You can specify up to 20 tags. |
|
|
object |
The information about the image tag. |
||
| TagKey |
string |
The tag key. You cannot specify an empty string as a tag key. It can be up to 64 characters in length and cannot start with aliyun or acs:. It cannot contain http:// or https://. You can specify at most 20 tag keys in each call. |
tag-subnet |
| TagValue |
string |
The value of the tag that is added to the resource. The tag value can be empty or a string of up to 128 characters. It cannot start with aliyun or acs:, and cannot contain http:// or https://. Each key-value pair must be unique. You can specify values for at most 20 tag keys in each call. |
subnet-group-1 |
| AccessDeniedDetail |
string |
The details about the access denial. |
None |
Examples
Success response
JSON format
{
"Code": 0,
"Message": "SUCCESS",
"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": "成功",
"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.