Mengubah konfigurasi VPC tertentu.
Deskripsi operasi
Operasi ModifyVpcAttribute tidak mendukung modifikasi konkuren pada konfigurasi VPC yang sama.
Operasi ModifyVpcAttribute dapat mengaktifkan IPv6 untuk VPC. Namun, Anda tidak dapat mengubah blok CIDR IPv6 atau tipe blok CIDR IPv6 untuk VPC yang sudah memiliki IPv6 diaktifkan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:ModifyVpcAttribute |
update |
*VPC
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| VpcId |
string |
Yes |
ID VPC yang ingin Anda ubah. |
vpc-bp1qtbach57ywecf**** |
| Description |
string |
No |
Deskripsi baru VPC. Panjang deskripsi harus 1 hingga 256 karakter dan tidak boleh dimulai dengan |
This is my VPC. |
| VpcName |
string |
No |
Nama baru VPC. Panjang nama harus 1 hingga 128 karakter dan tidak boleh dimulai dengan |
Vpc-1 |
| CidrBlock |
string |
No |
Blok CIDR IPv4 baru VPC. Anda dapat memperluas atau mengecilkan blok CIDR dalam blok CIDR IPv4 asli VPC. Masker subnet yang direkomendasikan adalah 16 hingga 28 bit. Jika Anda mengecilkan blok CIDR IPv4 VPC dan alamat IP yang sudah digunakan berada di luar blok CIDR target, modifikasi akan gagal. Catatan
Mengubah blok CIDR IPv4 VPC tidak memengaruhi layanan yang ada. |
192.168.0.0/24 |
| RegionId |
string |
No |
ID wilayah VPC. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| EnableIPv6 |
boolean |
No |
Apakah akan mengaktifkan IPv6. Nilai valid:
|
false |
| Ipv6CidrBlock |
string |
No |
Blok CIDR IPv6 VPC. Saat Anda mengaktifkan IPv6 untuk VPC, sistem akan menetapkan blok CIDR IPv6. Untuk menentukan blok CIDR IPv6, panggil terlebih dahulu operasi AllocateVpcIpv6Cidr untuk memesan blok CIDR IPv6 tertentu, lalu masukkan nilainya. Catatan
Untuk VPC yang sudah memiliki IPv6 diaktifkan, Anda tidak dapat mengubah blok CIDR IPv6 dengan memasukkan parameter ini. |
2408:XXXX:0:6a::/56 |
| Ipv6Isp |
string |
No |
Tipe blok CIDR IPv6 VPC. Nilai valid:
Catatan
Jika Anda adalah pengguna yang memiliki daftar putih bandwidth single-ISP diaktifkan, Anda dapat mengatur parameter ini ke ChinaTelecom (China Telecom), ChinaUnicom (China Unicom), atau ChinaMobile (China Mobile). |
BGP |
| EnableDnsHostname |
boolean |
No |
Apakah akan mengaktifkan fitur hostname DNS. Nilai valid:
|
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
ID permintaan. |
||
| RequestId |
string |
ID permintaan. |
43B72D30-25E1-4FA3-96A8-89374A521D1A |
Contoh
Respons sukses
JSONformat
{
"RequestId": "43B72D30-25E1-4FA3-96A8-89374A521D1A"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Forbidden.VpcNotFound | Specified VPC does not exist. | |
| 400 | InvalidDescription.Malformed | description not valid.. | |
| 400 | InvalidVpcName.Malformed | Specified VPC name is not valid. | |
| 400 | InvalidVpcDiscription.Malformed | Specified VPC description is not valid. | |
| 400 | InvalidParameter | Specified UserCidr invalid format. | |
| 400 | InvalidUserCidr.Quota | Specified UserCidr number is greater than 3. | |
| 400 | InvalidUserCidr.Malformed | Specified UserCidr overlapping in of 100.64.0.0/10. | UserCidr tumpang tindih dengan 100.64.0.0/10. |
| 400 | InvalidVpcId.NotFound | Specified VPC name is not valid. | |
| 400 | IncorrectVpcStatus | Current VPC status does not support this operation. | |
| 400 | IllegalCidrBlock | Some subnet cidrBlock is not in the cidrBlock. | |
| 400 | InvalidRegion.Malformed | Specified RegionId is not vaild. | |
| 400 | InvalidCidrBlock.Malformed | Specified CIDR block is not valid. | |
| 400 | OperationUnsupported.DisableIpv6 | %s | |
| 400 | OperationUnsupported.Ipv6Feature | %s | |
| 400 | ParamExclusive.EnableIpv6AndCidrBlock | EnableIpv6 and CidrBlock is mutually exclusive. | |
| 400 | OperationFailed.ClassicLinkEnabled | Operation failed because classicLink is enabled. | |
| 400 | OperationFailed.IpV6VSwitchInuse | %s | |
| 400 | OperationFailed.Ipv6GatewayInUse | The IPv6 gateway is in use. | Atribut VPC tidak dapat dimodifikasi karena gerbang IPv6 masih digunakan. |
| 400 | OperationFailed.QueryCenIpv6Status | Failed to query the IPv6 status of the specified VPC in CEN. | Gagal mengkueri status IPv6 VPC dalam instans Cloud Enterprise Network (CEN). |
| 400 | OperationUnsupported.CenIpv6Enabled | The IPv6 feature is enabled in CEN. | Fitur IPv6 sudah diaktifkan di CEN. |
| 400 | UnsupportedFeature.Ipv6Isp | The Ipv6Isp feature is not supported. | Fitur Ipv6Isp yang ditentukan tidak didukung. |
| 400 | ResourceNotEnough.Ipv6Cidr | The specified resource ipv6 cidr is not enough. | Sumber daya untuk blok CIDR IPv6 yang ditentukan tidak mencukupi. |
| 400 | OperationFailed.IPv6CidrNotReserved | The IPv6 CIDR block is not reserved. | Operasi gagal karena blok CIDR IPv6 yang ditentukan tidak dicadangkan. |
| 400 | IllegalParam.Ipv6Cidr | The specified Ipv6CidrBlock is invalid. | Ipv6CidrBlock yang ditentukan tidak valid. |
| 400 | InvalidIpv6Instance.NotFound | The specified resource of InvalidIpv6Instance is not found. | Instans IPv6 yang ditentukan tidak ditemukan. |
| 400 | ExclusiveParam.EnableIpv6AndCidrBlock | The param of EnableIpv6 and CidrBlock are mutually exclusive. | Parameter EnableIpv6 dan CidrBlock saling eksklusif. |
| 400 | UnsupportedFeature.VpcDnsHostname | The feature of vpc dns hostname is unsupported. | Fitur resolusi domain privat VPC tidak efektif di wilayah saat ini. |
| 400 | OperationFailed.Ipv6RouteEntryUsing | VPC exist IPv6 Route Entry, cannot disable IPv6. | Entri perutean IPv6 ada di VPC. Penonaktifan IPv6 dilarang. |
| 400 | OperationFailed.ModifyVpcDnsHostname | Operation failed because DnsHostName resource is in transient state, please try again later. | Sumber daya nama domain DNS berada dalam keadaan sementara. Coba lagi nanti. |
| 400 | IncorrectStatus.VpcDnsHostnameStatus | The DnsHostname status of vpc does not support this operation. | Status nama domain privat VPC saat ini tidak mendukung operasi ini. |
| 400 | OperationFailed.ConflictWithSecondaryCidr | The modified cidr is conflict with the secondary cidr. | |
| 400 | IllegalParam.CidrBlock | The param of CidrBlock [%s] is illegal. | Parameter CidrBlock tidak valid. |
| 404 | InvalidVpcId.NotFound | Specified VPC does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.