Mengambil data VPC pengguna di wilayah tertentu dengan menggunakan fitur integrasi repository image pihak ketiga dari Aset Kontainer di Pusat Keamanan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ListUserVpc |
list |
*All resources
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| K8sRegionId |
string |
Yes |
Wilayah. |
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Tanggapan. |
||
| RequestId |
string |
ID permintaan. Ini adalah pengidentifikasi unik yang dibuat oleh Alibaba Cloud untuk permintaan ini dan dapat digunakan untuk pemecahan masalah. |
A3D7C47D-3F11-57BB-90E8-E5C20C619F37 |
| UserVpcInfos |
array<object> |
Daftar informasi VPC. |
|
|
object |
Informasi VPC. |
||
| CreationTime |
string |
Pengatur waktu pembuatan. |
2023-03-30T07:16:02Z |
| VpcName |
string |
Nama VPC. |
Vpc-1 |
| Status |
string |
Status VPC. Nilai valid:
|
Available |
| VpcId |
string |
ID VPC. |
vpc-bp1qpo0kug3a20qqe**** |
| VRouterId |
string |
ID vRouter. |
vrt-bp1jcg5cmxjbl9xgc**** |
| CidrBlock |
string |
Blok CIDR IPv4 VPC. |
192.168.XXX.XXX/16 |
| Description |
string |
Deskripsi VPC. |
This is my VPC. |
| Default |
boolean |
Apakah VPC merupakan VPC default di wilayah tersebut. Nilai valid:
|
true |
| ModifyTime |
string |
Pengatur waktu modifikasi. |
2023-03-30T07:16:02Z |
| RegionId |
string |
Wilayah. |
cn-hangzhou |
Contoh
Respons sukses
JSONformat
{
"RequestId": "A3D7C47D-3F11-57BB-90E8-E5C20C619F37",
"UserVpcInfos": [
{
"CreationTime": "2023-03-30T07:16:02Z",
"VpcName": "Vpc-1",
"Status": "Available",
"VpcId": "vpc-bp1qpo0kug3a20qqe****",
"VRouterId": "vrt-bp1jcg5cmxjbl9xgc****",
"CidrBlock": "192.168.XXX.XXX/16",
"Description": "This is my VPC.",
"Default": true,
"ModifyTime": "2023-03-30T07:16:02Z",
"RegionId": "cn-hangzhou"
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | Service failure. Please try again later. |
| 403 | NoPermission | caller has no permission | The current operation is not authorized. Contact the Alibaba Cloud account to grant the permission in the RAM console and then perform the operation. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.