Memanggil DescribeNetworks untuk mengkueri daftar jaringan.
Deskripsi operasi
Frekuensi panggilan API: 100 kali per detik.
Frekuensi panggilan per pengguna: 10 kali per detik.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DescribeNetworks |
list |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| NetworkId |
string |
No |
ID jaringan. |
n-5*** |
| EnsRegionId |
string |
No |
ID node ENS. |
cn-beijing-telecom |
| NetworkName |
string |
No |
Nama jaringan. |
example |
| PageNumber |
integer |
No |
Nomor halaman daftar. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman dalam kueri terpaginasi. Nilai maksimum: 50. Nilai default: 10. |
10 |
| EnsRegionIds |
array |
No |
Array ID node ENS. Panjang array: 1 hingga 100. |
|
|
string |
No |
ID node ENS. |
cn-chengdu-telecom-4 |
|
| NetworkIds |
array |
No |
Array ID jaringan. Panjang array: 1 hingga 100. |
|
|
string |
No |
ID jaringan. |
n-5***9iu |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons. |
||
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| TotalCount |
integer |
Jumlah total entri dalam daftar. |
3 |
| PageSize |
integer |
Jumlah entri per halaman dalam kueri saat ini. |
2 |
| PageNumber |
integer |
Nomor halaman saat ini. |
1 |
| Networks |
object |
||
| Network |
array<object> |
Daftar jaringan. |
|
|
array<object> |
Daftar jaringan. |
||
| EnsRegionId |
string |
The ID of the edge node. |
cn-beijing |
| NetworkId |
string |
The ID of the network. |
n-5*** |
| NetworkName |
string |
The name of the network. |
example |
| CidrBlock |
string |
The IPv4 CIDR block of the network. |
10.0.xx.xx/24 |
| Status |
string |
The status of the network. Valid values:
|
Available |
| Description |
string |
The description of the network. |
exampleDescription |
| CreatedTime |
string |
The timestamp when the instance was created. Unit: milliseconds. |
1653620630000 |
| VSwitchIds |
object |
||
| VSwitchId |
array |
The list of vSwitches in the network. |
|
|
string |
The list of vSwitches in the network. |
vsw-bp1nhbnpv2blyz8dl**** |
|
| RouterTableId |
string |
The route table ID. |
rtb-5** |
| NetworkAclId |
string |
The ID of the network access control list (ACL). |
nacl-a2do9e413e0spxscd**** |
| RouteTableIds |
object |
||
| RouteTableId |
array |
The IDs of the route tables. |
|
|
string |
The ID of the route table. |
rt-5*****pks |
|
| RouteTableId |
string |
The ID of the route table. |
rt-5*****pks |
| GatewayRouteTableId |
string |
The ID of the gateway route table. |
rt-5*****tbs |
| Tags |
object |
||
| Tag |
array<object> |
Collection of tags. |
|
|
object |
Collection of tags. |
||
| Value |
string |
The bandwidth. |
TestValue |
| Key |
string |
The key of the tag. |
TestKey |
TagValue
deprecated
|
string |
Tag value. |
TestValue |
TagKey
deprecated
|
string |
Tag key. |
TestKey |
| SecondaryCidrBlocks |
object |
||
| SecondaryCidrBlock |
array |
Information about secondary CIDR blocks. |
|
|
string |
Secondary CIDR blocks. |
172.XX.XX.0/12 |
|
| Ipv6CidrBlocks |
object |
||
| Ipv6CidrBlock |
array<object> |
||
|
object |
|||
| Ipv6Isp |
string |
telecom |
|
| Ipv6CidrBlock |
string |
2408:XXXX:0:a600::/110 |
|
| Type |
string |
system |
Contoh
Respons sukses
JSONformat
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"TotalCount": 3,
"PageSize": 2,
"PageNumber": 1,
"Networks": {
"Network": [
{
"EnsRegionId": "cn-beijing",
"NetworkId": "n-5***",
"NetworkName": "example",
"CidrBlock": "10.0.xx.xx/24",
"Status": "Available",
"Description": "exampleDescription",
"CreatedTime": "1653620630000",
"VSwitchIds": {
"VSwitchId": [
"vsw-bp1nhbnpv2blyz8dl****"
]
},
"RouterTableId": "rtb-5**",
"NetworkAclId": "nacl-a2do9e413e0spxscd****",
"RouteTableIds": {
"RouteTableId": [
"rt-5*****pks"
]
},
"RouteTableId": "rt-5*****pks",
"GatewayRouteTableId": "rt-5*****tbs",
"Tags": {
"Tag": [
{
"Value": "TestValue",
"Key": "TestKey",
"TagValue": "TestValue",
"TagKey": "TestKey"
}
]
},
"SecondaryCidrBlocks": {
"SecondaryCidrBlock": [
"172.XX.XX.0/12"
]
},
"Ipv6CidrBlocks": {
"Ipv6CidrBlock": [
{
"Ipv6Isp": "telecom",
"Ipv6CidrBlock": "2408:XXXX:0:a600::/110",
"Type": "system"
}
]
}
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ens.interface.error | Failed to call API. | |
| 400 | NoPermission | Permission denied. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.