Mengkueri konfigurasi VPC tertentu.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| VpcId |
string |
Yes |
ID VPC yang ingin Anda kueri. |
vpc-bp18sth14qii3pnv**** |
| RegionId |
string |
Yes |
ID wilayah tempat VPC berada. Anda dapat memanggil operasi DescribeRegions untuk mengkueri ID wilayah. |
cn-hangzhou |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run saja, tanpa menjalankan permintaan aktual. Nilai valid:
|
false |
| IsDefault |
boolean |
No |
Apakah akan mengkueri VPC default. Nilai valid:
|
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Pengatur waktu pembuatan VPC. |
||
| CreationTime |
string |
Pengatur waktu pembuatan VPC. |
2021-10-16T07:31:09Z |
| Status |
string |
Status VPC. Nilai valid:
|
Available |
| VpcId |
string |
ID VPC. |
vpc-bp18sth14qii3pnvo**** |
| IsDefault |
boolean |
Apakah VPC merupakan VPC default. Nilai valid:
|
false |
ClassicLinkEnabled
deprecated
|
boolean |
Apakah ClassicLink diaktifkan. Nilai valid:
|
false |
| OwnerId |
integer |
ID akun Alibaba Cloud tempat VPC berada. |
28311773240248**** |
| RegionId |
string |
ID wilayah tempat VPC berada. |
cn-hangzhou |
| VpcName |
string |
Nama VPC. |
doctest2 |
| VRouterId |
string |
ID vRouter VPC. |
vrt-bp1jso6ng1at0ajsc**** |
| DhcpOptionsSetStatus |
string |
Status set opsi DHCP. Nilai valid:
|
Available |
| CidrBlock |
string |
Blok CIDR IPv4 VPC. |
192.168.0.0/16 |
| RequestId |
string |
ID permintaan. |
7486AE4A-129D-43DB-A714-2432C074BA04 |
| Description |
string |
Deskripsi VPC. |
VPC |
| ResourceGroupId |
string |
ID kelompok sumber daya. |
rg-acfmxazbvgb4ph**** |
| DhcpOptionsSetId |
string |
ID set opsi DHCP. |
dopt-o6w0df4epg9zo8isy**** |
| Ipv6CidrBlock |
string |
Blok CIDR IPv6 VPC. |
2408:XXXX:0:a600::/56 |
| VSwitchIds |
object |
||
| VSwitchId |
array |
Daftar vSwitch di VPC. |
|
|
string |
Daftar vSwitch di VPC. |
{"VSwitchId": [ "vsw-bp14cagpfysr29feg****" ]} |
|
| UserCidrs |
object |
||
| UserCidr |
array |
Blok CIDR pengguna. Hingga tiga blok CIDR pengguna didukung. Beberapa blok CIDR pengguna dipisahkan dengan koma (,). |
|
|
string |
Blok CIDR pengguna. Hingga tiga blok CIDR pengguna didukung. Beberapa blok CIDR pengguna dipisahkan dengan koma (,). |
172.16.0.1/24 |
|
| SecondaryCidrBlocks |
object |
||
| SecondaryCidrBlock |
array |
Blok CIDR IPv4 sekunder VPC. |
|
|
string |
Blok CIDR IPv4 sekunder VPC. |
192.168.0.0/16 |
|
| AssociatedCens |
object |
||
| AssociatedCen |
array<object> |
Daftar instans Cloud Enterprise Network (CEN) tempat VPC dilampirkan. Jika VPC tidak dilampirkan ke instans CEN, parameter ini tidak dikembalikan. |
|
|
object |
ID akun Alibaba Cloud tempat instans CEN berada. |
||
| CenOwnerId |
integer |
The ID of the account to which the CEN instance belongs. |
28311773240248**** |
| CenId |
string |
The ID of the CEN instance to which the VPC is attached. |
cen-7qthudw0ll6jmc**** |
| CenStatus |
string |
The status of the CEN instance. Attached is returned only when the VPC is attached to a CEN instance. |
Attached |
| CloudResources |
object |
||
| CloudResourceSetType |
array<object> |
Daftar Sumber daya di VPC. |
|
|
object |
Jumlah Sumber daya di VPC. |
||
| ResourceCount |
integer |
The number of resources in the VPC. |
1 |
| ResourceType |
string |
The type of resource deployed in the VPC. Valid values: Valid values:
|
VSwitch |
| Ipv6CidrBlocks |
object |
||
| Ipv6CidrBlock |
array<object> |
Informasi blok CIDR IPv6 VPC. |
|
|
object |
Informasi blok CIDR IPv6 VPC. |
||
| Ipv6Isp |
string |
The IPv6 CIDR block type of the VPC. Valid values:
Catatan
If you are allowed to use single-ISP bandwidth, valid values are ChinaTelecom, ChinaUnicom, and ChinaMobile |
BGP |
| Ipv6CidrBlock |
string |
The IPv6 CIDR block of the VPC. |
2408:XXXX:0:6a::/56 |
| SupportIpv4Gateway |
boolean |
Apakah VPC beroperasi dalam mode kontrol terpusat gerbang IPv4.
Catatan
Untuk informasi lebih lanjut, lihat topik gerbang IPv4. |
true |
| Ipv4GatewayId |
string |
ID instans gerbang IPv4. |
ipv4gw-5tsnc6s4ogsedtp3k**** |
| Tags |
object |
||
| Tag |
array<object> |
Informasi daftar tag. |
|
|
object |
Informasi daftar tag. |
||
| Key |
string |
The key of tag N. |
FinanceDept |
| Value |
string |
The value of tag N. |
FinanceJoshua |
| AssociatedPropagationSources |
object |
||
| AssociatedPropagationSources |
array<object> |
Sumber propagasi entri rute yang terkait dengan VPC. |
|
|
object |
|||
| SourceType |
string |
The source type.
|
CEN |
| SourceOwnerId |
integer |
The account ID of the source. |
153980532164**** |
| SourceInstanceId |
string |
The instance ID of the source. |
cen-dc4vwznpwbobrl**** |
| Status |
string |
The binding status.
|
Attaching |
| RoutePropagated |
boolean |
Indicates whether routes are advertised to the VPC. |
true |
| EnabledIpv6 |
boolean |
Apakah IPv6 diaktifkan. Valid values:
|
false |
| DnsHostnameStatus |
string |
Apakah fitur hostname DNS diaktifkan. |
DISABLED |
Contoh
Respons sukses
JSONformat
{
"CreationTime": "2021-10-16T07:31:09Z",
"Status": "Available",
"VpcId": "vpc-bp18sth14qii3pnvo****",
"IsDefault": false,
"ClassicLinkEnabled": false,
"OwnerId": 0,
"RegionId": "cn-hangzhou",
"VpcName": "doctest2",
"VRouterId": "vrt-bp1jso6ng1at0ajsc****",
"DhcpOptionsSetStatus": "Available",
"CidrBlock": "192.168.0.0/16",
"RequestId": "7486AE4A-129D-43DB-A714-2432C074BA04",
"Description": "VPC",
"ResourceGroupId": "rg-acfmxazbvgb4ph****",
"DhcpOptionsSetId": "dopt-o6w0df4epg9zo8isy****",
"Ipv6CidrBlock": "2408:XXXX:0:a600::/56",
"VSwitchIds": {
"VSwitchId": [
"{\"VSwitchId\": [ \"vsw-bp14cagpfysr29feg****\" ]}"
]
},
"UserCidrs": {
"UserCidr": [
"172.16.0.1/24"
]
},
"SecondaryCidrBlocks": {
"SecondaryCidrBlock": [
"192.168.0.0/16"
]
},
"AssociatedCens": {
"AssociatedCen": [
{
"CenOwnerId": 0,
"CenId": "cen-7qthudw0ll6jmc****",
"CenStatus": "Attached"
}
]
},
"CloudResources": {
"CloudResourceSetType": [
{
"ResourceCount": 1,
"ResourceType": "VSwitch"
}
]
},
"Ipv6CidrBlocks": {
"Ipv6CidrBlock": [
{
"Ipv6Isp": "BGP",
"Ipv6CidrBlock": "2408:XXXX:0:6a::/56"
}
]
},
"SupportIpv4Gateway": true,
"Ipv4GatewayId": "ipv4gw-5tsnc6s4ogsedtp3k****",
"Tags": {
"Tag": [
{
"Key": "FinanceDept",
"Value": "FinanceJoshua"
}
]
},
"AssociatedPropagationSources": {
"AssociatedPropagationSources": [
{
"SourceType": "CEN",
"SourceOwnerId": 0,
"SourceInstanceId": "cen-dc4vwznpwbobrl****",
"Status": "Attaching",
"RoutePropagated": true
}
]
},
"EnabledIpv6": false,
"DnsHostnameStatus": "DISABLED"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectVpcStatus | Current VPC status does not support this operation. | |
| 400 | Forbidden.VpcNotFound | Specified VPC does not exist. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 404 | InvalidVpcId.NotFound | Specified VPC does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.