Memesan Blok CIDR IPv6 tertentu.
Deskripsi operasi
Untuk menetapkan Blok CIDR IPv6 tertentu ke VPC, ikuti langkah-langkah berikut:
Panggil operasi ini untuk memesan Blok CIDR IPv6 tertentu.
Untuk menetapkan Blok CIDR IPv6 tertentu ke VPC yang sudah ada, panggil operasi AssociateVpcCidrBlock dengan RegionId, VpcId, IPv6CidrBlock diatur ke Blok CIDR IPv6 tertentu, dan IpVersion diatur ke ipv6. Untuk menetapkan Blok CIDR IPv6 tertentu ke VPC baru, panggil operasi CreateVpc dengan RegionId, Ipv6CidrBlock diatur ke Blok CIDR IPv6 tertentu, dan EnableIpv6 diatur ke true.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah tempat VPC berada. Anda dapat memperoleh ID wilayah dengan memanggil operasi DescribeRegions. |
cn-hangzhou |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan token, tetapi Anda harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. Nilai ClientToken hanya dapat berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem menggunakan RequestId dari permintaan API sebagai ClientToken. RequestId dapat berbeda untuk setiap permintaan API. |
123e4567-e89b-12d3-a456-426655440000 |
| Ipv6Isp |
string |
No |
Tipe Blok CIDR IPv6 VPC. Nilai valid:
Catatan
|
BGP |
| RegionId |
string |
Yes |
VPC 所在的地域 ID。 您可以通过调用 DescribeRegions 接口获取地域 ID。 |
cn-hangzhou |
| AddressPoolType |
string |
No |
Tipe kolam alamat IPv6. Nilai valid:
|
custom |
| Ipv6CidrBlock |
string |
No |
Blok CIDR IPv6 yang akan dipesan. |
2408:XXXX:0:a600::/56 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter tanggapan. |
||
| Ipv6CidrBlock |
string |
Blok CIDR IPv6 yang dipesan. |
2408:XXXX:0:a600::/56 |
| RequestId |
string |
ID permintaan. |
D20C13EA-2584-53BC-8393-69DE6D98EFF1 |
Contoh
Respons sukses
JSONformat
{
"Ipv6CidrBlock": "2408:XXXX:0:a600::/56",
"RequestId": "D20C13EA-2584-53BC-8393-69DE6D98EFF1"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | OperationUnsupported.Ipv6Feature | The IPv6 feature is not supported in the region. | |
| 400 | UnsupportedFeature.Ipv6Isp | The Ipv6Isp feature is not supported. | |
| 400 | IllegalParam.AddressPoolType | The specified addressPoolType is invalid. | |
| 400 | ResourceNotEnough.Ipv6Cidr | The specified resource ipv6 cidr is not enough. | |
| 400 | IllegalParam.Ipv6Cidr | The specified Ipv6CidrBlock is invalid. | |
| 400 | Unavailable.Ipv6Cidr | The specified resource ipv6 cidr is not available. | |
| 400 | IllegalParam.CidrBlock | The param of cidrBlock is illegal. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.