Mengkueri VPC yang dibuat.
Deskripsi operasi
Operasi DescribeVpcs dapat mengembalikan kode kesalahan Throttling.DeepPageSkip selama halaman dalam atau pelewatan halaman yang sering dilakukan. Kurangi frekuensi kueri atau gunakan penomoran halaman berurutan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:DescribeVpcs |
list |
VPC.
VPC.
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| VpcId |
string |
No |
ID VPC. |
vpc-bp1b1xjllp3ve5yze**** |
| RegionId |
string |
Yes |
ID wilayah VPC. |
cn-hangzhou |
| VpcName |
string |
No |
Nama VPC. |
Vpc-1 |
| IsDefault |
boolean |
No |
Apakah akan mengkueri VPC default di wilayah yang ditentukan. Nilai valid: |
false |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run. Nilai valid: |
false |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya tempat VPC berada. |
rg-acfmxvfvazb4p**** |
| PageNumber |
integer |
No |
Nomor halaman. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman dalam kueri penomoran halaman. Nilai maksimum: 50. Nilai default: 10. |
10 |
| VpcOwnerId |
integer |
No |
ID akun Alibaba Cloud yang memiliki VPC. |
253460731706911258 |
| DhcpOptionsSetId |
string |
No |
ID set opsi DHCP. |
dopt-o6w0df4epg9zo8isy**** |
| EnableIpv6 |
boolean |
No |
Apakah akan mengkueri VPC yang memiliki Blok CIDR IPv6 diaktifkan di wilayah yang ditentukan. Nilai default kosong, yang berarti tidak ada pemfilteran berdasarkan pengaktifan IPv6. Nilai valid: |
false |
| Tag |
array<object> |
No |
Tag Sumber daya. |
|
|
object |
No |
Tag. |
||
| Key |
string |
No |
Kunci tag Sumber daya. Anda dapat menentukan hingga 20 kunci tag. Kunci tag tidak boleh berupa string kosong. |
FinanceDept |
| Value |
string |
No |
Nilai tag Sumber daya. Anda dapat menentukan hingga 20 nilai tag. Nilai tag dapat berupa string kosong. |
FinanceJoshua |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter tanggapan. |
||
| PageSize |
integer |
Jumlah entri per halaman dalam kueri penomoran halaman. |
10 |
| RequestId |
string |
ID permintaan. |
C6532AA8-D0F7-497F-A8EE-094126D441F5 |
| PageNumber |
integer |
Nomor halaman. |
1 |
| TotalCount |
integer |
Jumlah total entri yang dikembalikan. |
2 |
| Vpcs |
object |
||
| Vpc |
array<object> |
Detail VPC. |
|
|
array<object> |
Detail VPC. |
||
| CreationTime |
string |
Waktu saat VPC dibuat. |
2021-04-18T15:02:37Z |
| Status |
string |
Status VPC. Nilai valid: |
Available |
| VpcId |
string |
ID VPC. |
vpc-bp1qpo0kug3a20qqe**** |
| IsDefault |
boolean |
Apakah VPC adalah VPC default di wilayah tersebut. Nilai valid: |
false |
| OwnerId |
integer |
ID akun Alibaba Cloud yang memiliki VPC. |
253460731706911258 |
| RegionId |
string |
ID wilayah VPC. |
cn-hangzhou |
| VpcName |
string |
Nama VPC. |
vpc1 |
| VRouterId |
string |
ID vRouter di VPC. |
vrt-bp1jcg5cmxjbl9xgc**** |
| DhcpOptionsSetStatus |
string |
Status set opsi DHCP. Nilai valid: |
Available |
| CidrBlock |
string |
Blok CIDR IPv4 VPC. |
192.168.0.0/16 |
| Description |
string |
Deskripsi VPC. |
This is my VPC |
| ResourceGroupId |
string |
ID kelompok sumber daya tempat VPC berada. |
rg-acfmxazb4ph**** |
| DhcpOptionsSetId |
string |
ID set opsi DHCP. |
dopt-o6w0df4epg9zo8isy**** |
| Ipv6CidrBlock |
string |
Blok CIDR IPv6 VPC. |
2408:XXXX:0:a600::/56 |
| CenStatus |
string |
Status VPC yang dilampirkan ke instans Cloud Enterprise Network (CEN). Attached hanya dikembalikan ketika VPC dilampirkan ke instans CEN. |
Attached |
| Tags |
object |
||
| Tag |
array<object> |
Informasi tag VPC. |
|
|
object |
Informasi tag VPC. |
||
| Key |
string |
Kunci tag VPC. |
FinanceDept |
| Value |
string |
Nilai tag VPC. |
FinanceJoshua |
| Ipv6CidrBlocks |
object |
||
| Ipv6CidrBlock |
array<object> |
Informasi Blok CIDR IPv6 VPC. |
|
|
object |
Informasi Blok CIDR IPv6 VPC. |
||
| Ipv6Isp |
string |
Tipe Blok CIDR IPv6 VPC. Nilai valid: |
BGP |
| Ipv6CidrBlock |
string |
Blok CIDR IPv6 VPC. |
2408:XXXX:0:a600::/56 |
| VSwitchIds |
object |
||
| VSwitchId |
array |
Daftar vSwitch di VPC yang dikueri. |
|
|
string |
Daftar vSwitch di VPC yang dikueri. |
vsw-bp1nhbnpv2blyz8dl**** |
|
| SecondaryCidrBlocks |
object |
||
| SecondaryCidrBlock |
array |
Informasi Blok CIDR sekunder. |
|
|
string |
Blok CIDR sekunder VPC. |
192.168.20.0/24 |
|
| UserCidrs |
object |
||
| UserCidr |
array |
Daftar Blok CIDR sisi pengguna. |
|
|
string |
Daftar Blok CIDR sisi pengguna. |
10.0.0.0/8 |
|
| NatGatewayIds |
object |
||
| NatGatewayIds |
array |
ID gerbang NAT. |
|
|
string |
ID gerbang NAT. |
nat-245xxxftwt45bg**** |
|
| RouterTableIds |
object |
||
| RouterTableIds |
array |
Informasi tabel rute. |
|
|
string |
ID tabel rute. |
vtb-bp1krxxzp0c29fmon**** |
|
| EnabledIpv6 |
boolean |
Apakah IPv6 diaktifkan. Nilai valid: |
false |
| DnsHostnameStatus |
string |
Apakah hostname DNS diaktifkan. |
DISABLED |
Contoh
Respons sukses
JSONformat
{
"PageSize": 10,
"RequestId": "C6532AA8-D0F7-497F-A8EE-094126D441F5",
"PageNumber": 1,
"TotalCount": 2,
"Vpcs": {
"Vpc": [
{
"CreationTime": "2021-04-18T15:02:37Z",
"Status": "Available",
"VpcId": "vpc-bp1qpo0kug3a20qqe****",
"IsDefault": false,
"OwnerId": 253460731706911260,
"RegionId": "cn-hangzhou",
"VpcName": "vpc1",
"VRouterId": "vrt-bp1jcg5cmxjbl9xgc****",
"DhcpOptionsSetStatus": "Available",
"CidrBlock": "192.168.0.0/16",
"Description": "This is my VPC",
"ResourceGroupId": "rg-acfmxazb4ph****",
"DhcpOptionsSetId": "dopt-o6w0df4epg9zo8isy****",
"Ipv6CidrBlock": "2408:XXXX:0:a600::/56",
"CenStatus": "Attached",
"Tags": {
"Tag": [
{
"Key": "FinanceDept",
"Value": "FinanceJoshua"
}
]
},
"Ipv6CidrBlocks": {
"Ipv6CidrBlock": [
{
"Ipv6Isp": "BGP",
"Ipv6CidrBlock": "2408:XXXX:0:a600::/56"
}
]
},
"VSwitchIds": {
"VSwitchId": [
"vsw-bp1nhbnpv2blyz8dl****"
]
},
"SecondaryCidrBlocks": {
"SecondaryCidrBlock": [
"192.168.20.0/24"
]
},
"UserCidrs": {
"UserCidr": [
"10.0.0.0/8"
]
},
"NatGatewayIds": {
"NatGatewayIds": [
"nat-245xxxftwt45bg****"
]
},
"RouterTableIds": {
"RouterTableIds": [
"vtb-bp1krxxzp0c29fmon****"
]
},
"EnabledIpv6": false,
"DnsHostnameStatus": "DISABLED"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidVpcIdNumber.NotSupported | The number of vpcIds exceeds the limit. | Jumlah ID VPC melebihi batas. |
| 400 | InvalidAliuid | User Id is not valid. | |
| 400 | InvalidResourceGroupId | The specified ResourceGroupId does not exist. | ID kelompok sumber daya tidak ada. |
| 400 | InvalidTagKey | The tag keys are not valid. | Indeks tag tidak valid. |
| 400 | InvalidTagValue | The tag values are not valid. | Nilai tag tidak valid. |
| 400 | InvalidResourceGroupId.NotFound | The Specified ResourceGroupId not exists. | |
| 400 | OperationUnsupported.ResourceGroupId | %s | |
| 400 | IellgalParameter.OwnerAccount | The specified parameter OwnerAccount is not valid. | Parameter OwnerAccount yang ditentukan tidak valid. |
| 400 | IllegalParam.OwnerId | The specified parameter VpcOwnerId is not valid. | |
| 400 | InvalidAccount.NotFound | The account is invalid. | Operasi gagal karena menggunakan akun pemanggil yang tidak valid. |
| 400 | Throttling.DeepPageSkip | Deep page skip throttled. Please reduce the page skip frequency or use sequential pagination. | Batas laju untuk pelewatan halaman paginasi mendalam telah terpicu. Kurangi frekuensi pelewatan halaman paginasi mendalam, atau gunakan paginasi berurutan. |
| 400 | Duplicated.TagKey | The specified parameter TagKey is duplicated. | Parameter TagKey yang ditentukan duplikat. |
| 500 | InternalError | The request processing has failed due to some unknown error. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.