Memodifikasi konfigurasi VPC tertentu.
Deskripsi operasi
Operasi ModifyVpcAttribute tidak mendukung modifikasi konfigurasi secara konkuren pada VPC yang sama.
Operasi ModifyVpcAttribute dapat mengaktifkan IPv6 untuk VPC, tetapi tidak dapat memodifikasi blok CIDR IPv6 atau jenis segmen alamat IPv6 untuk VPC yang sudah memiliki IPv6 yang diaktifkan.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| VpcId |
string |
Yes |
ID VPC yang informasinya ingin Anda modifikasi. |
vpc-bp1qtbach57ywecf**** |
| Description |
string |
No |
Deskripsi baru dari VPC. Deskripsi harus terdiri dari 1 hingga 256 karakter dan tidak boleh diawali dengan |
This is my VPC. |
| VpcName |
string |
No |
Nama baru dari VPC. Nama harus terdiri dari 1 hingga 128 karakter dan tidak boleh diawali dengan |
Vpc-1 |
| CidrBlock |
string |
No |
Blok CIDR IPv4 baru dari VPC. Anda dapat memperluas atau memperkecil blok CIDR di dalam blok CIDR IPv4 asli dari VPC. Kami menyarankan Anda menggunakan subnet mask 16 hingga 28 bit. Saat Anda memperkecil blok CIDR IPv4 dari VPC, jika ada alamat IP yang sedang digunakan berada di luar blok CIDR target, modifikasi akan gagal. Catatan
Memodifikasi blok CIDR IPv4 dari VPC tidak memengaruhi layanan Anda yang sudah ada. |
192.168.0.0/24 |
| RegionId |
string |
No |
ID region tempat VPC berada. Anda dapat memanggil operasi DescribeRegions untuk memperoleh ID region. |
cn-hangzhou |
| EnableIPv6 |
boolean |
No |
Menentukan apakah akan mengaktifkan IPv6. Nilai yang valid:
|
false |
| Ipv6CidrBlock |
string |
No |
Blok CIDR IPv6 dari VPC. Ketika IPv6 diaktifkan untuk VPC, sistem akan menetapkan blok CIDR IPv6. Untuk menentukan blok CIDR IPv6, Anda harus terlebih dahulu memanggil operasi AllocateVpcIpv6Cidr untuk memesan segmen alamat IPv6 yang ditentukan, lalu meneruskannya. Catatan
Untuk VPC yang sudah memiliki IPv6 yang diaktifkan, Anda tidak dapat memodifikasi blok CIDR IPv6 dengan meneruskan parameter ini. |
2408:XXXX:0:6a::/56 |
| Ipv6Isp |
string |
No |
Jenis segmen alamat IPv6 dari VPC. Nilai yang valid:
Catatan
Jika Anda adalah pengguna yang akunnya ditambahkan ke whitelist bandwidth jalur tunggal, Anda dapat mengatur parameter ini ke ChinaTelecom, ChinaUnicom, atau ChinaMobile. |
BGP |
| EnableDnsHostname |
boolean |
No |
Menentukan apakah akan mengaktifkan fitur DNS hostname. Nilai yang 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. | |
| 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. | |
| 400 | OperationFailed.QueryCenIpv6Status | Failed to query the IPv6 status of the specified VPC in CEN. | |
| 400 | OperationUnsupported.CenIpv6Enabled | The IPv6 feature is enabled in CEN. | |
| 400 | UnsupportedFeature.Ipv6Isp | The Ipv6Isp feature is not supported. | |
| 400 | ResourceNotEnough.Ipv6Cidr | The specified resource ipv6 cidr is not enough. | |
| 400 | OperationFailed.IPv6CidrNotReserved | The IPv6 CIDR block is not reserved. | |
| 400 | IllegalParam.Ipv6Cidr | The specified Ipv6CidrBlock is invalid. | |
| 400 | InvalidIpv6Instance.NotFound | The specified resource of InvalidIpv6Instance is not found. | |
| 400 | ExclusiveParam.EnableIpv6AndCidrBlock | The param of EnableIpv6 and CidrBlock are mutually exclusive. | |
| 400 | UnsupportedFeature.VpcDnsHostname | The feature of vpc dns hostname is unsupported. | |
| 400 | OperationFailed.Ipv6RouteEntryUsing | VPC exist IPv6 Route Entry, cannot disable IPv6. | |
| 400 | OperationFailed.ModifyVpcDnsHostname | Operation failed because DnsHostName resource is in transient state, please try again later. | |
| 400 | IncorrectStatus.VpcDnsHostnameStatus | The DnsHostname status of vpc does not support this operation. | |
| 400 | OperationFailed.ConflictWithSecondaryCidr | The modified cidr is conflict with the secondary cidr. | |
| 404 | InvalidVpcId.NotFound | Specified VPC does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.