GetSubnet
Queries the details of a Lingjun subnet, including the subnet type, CIDR block, instance ID of the associated Lingjun VPD, instance status, and number of NCs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eflo:GetSubnet |
get |
*Subnet
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-wulanchabu |
| SubnetId |
string |
Yes |
The instance ID of the Lingjun subnet. |
subnet-2avf0itf |
| VpdId |
string |
No |
The ID of the associated Lingjun VPD. |
vpd-cxcmdk1m |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response information. |
||
| Code |
integer |
The business code. |
0 |
| Message |
string |
The error message. If the instance status is abnormal, this parameter indicates the cause of the exception. |
Success |
| RequestId |
string |
The ID of the request. |
0901F411-28FA-5B9C-BAEE-7776463FF0DC |
| Content |
object |
The response content. |
|
| CreateTime |
string |
The creation time. The value is a 13-digit UNIX timestamp in milliseconds. |
1648085472000 |
| 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 |
| SubnetId |
string |
The instance ID of the Lingjun subnet. |
subnet-aj93mko8 |
| SubnetName |
string |
The name of the Lingjun subnet instance. |
subnet-1 |
| Cidr |
string |
The CIDR block of the subnet.
|
10.10.10.0/24 |
| VpdId |
string |
The instance ID of the associated Lingjun CIDR block. |
vpd-ze3na0wf |
| Type |
string |
The usage type of the Lingjun subnet. This parameter is optional. Valid values:
|
OOB |
| Status |
string |
The instance status. |
Available |
| Message |
string |
The error message. If the instance status is abnormal, this parameter indicates the cause of the exception. |
Success |
| NcCount |
integer |
The number of NCs. |
16 |
| NetworkInterfaceCount |
integer |
The number of Lingjun network interfaces. |
4 |
| LbCount |
integer |
The number of load balancing instances. |
0 |
| VpdBaseInfo |
object |
The information about the associated Lingjun VPD. |
|
| VpdId |
string |
The instance ID of the Lingjun CIDR block. |
vpd-iv2zm1qf |
| VpdName |
string |
The name of the Lingjun VPD instance. |
vpd-1 |
| 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 |
| ResourceGroupId |
string |
The resource group ID. |
rg-aek2l4sq6l7unhi |
| Tags |
array<object> |
The tag information. You can specify up to 20 tags at a time. |
|
|
object |
The tag information of the resource. |
||
| 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 an empty string or a string of up to 128 characters. 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 |
| PrivateIpCount |
integer |
The total number of secondary private IP addresses. |
20 |
| AvailableIps |
integer |
The number of available IP addresses. |
1024 |
| AccessDeniedDetail |
string |
The details of the access denial. |
None |
Examples
Success response
JSON format
{
"Code": 0,
"Message": "Succeeded",
"RequestId": "0901F411-28FA-5B9C-BAEE-7776463FF0DC",
"Content": {
"CreateTime": "1648085472000",
"GmtModified": "1678273219000",
"TenantId": "1655449505171",
"RegionId": "cn-wulanchabu",
"ZoneId": "cn-wulanchabu-b",
"SubnetId": "subnet-aj93mko8",
"SubnetName": "subnet-1",
"Cidr": "10.10.10.0/24",
"VpdId": "vpd-ze3na0wf",
"Type": "OOB",
"Status": "Available",
"Message": "test example",
"NcCount": 16,
"NetworkInterfaceCount": 4,
"LbCount": 0,
"VpdBaseInfo": {
"VpdId": "vpd-iv2zm1qf",
"VpdName": "vpd-1",
"Cidr": "10.0.0.0/8",
"CreateTime": "1678273219000"
},
"ResourceGroupId": "rg-aek2l4sq6l7unhi",
"Tags": [
{
"TagKey": "tag-subnet",
"TagValue": "subnet-group-1"
}
],
"PrivateIpCount": 20,
"AvailableIps": 1024
},
"AccessDeniedDetail": "None"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.