Membuat wilayah akselerasi.
Deskripsi operasi
-
Operasi CreateIpSets bersifat asinkron. Setelah mengirim permintaan, sistem akan mengembalikan ID permintaan dan menjalankan tugas di latar belakang. Anda dapat memanggil operasi DescribeIpSet untuk mengecek status tugas tersebut.
Jika wilayah akselerasi berada dalam status init, artinya wilayah tersebut sedang dalam proses pembuatan. Dalam kondisi ini, Anda hanya dapat melakukan operasi kueri.
Jika wilayah akselerasi berada dalam status active, artinya wilayah tersebut telah berhasil dibuat.
-
Anda tidak dapat memanggil operasi CreateIpSets lagi pada instans GA yang sama sebelum operasi sebelumnya selesai.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ga:CreateIpSets |
create |
*IpSet
*Accelerator
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah dari instans GA. Tetapkan nilainya ke cn-hangzhou. |
cn-hangzhou |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menghasilkan token ini dari sisi klien, tetapi harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. Token hanya boleh berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan request ID sebagai client token. Request ID mungkin berbeda untuk setiap permintaan. |
1F4B6A4A-C89E-489E-BAF1-52777EE148EF |
| AcceleratorId |
string |
Yes |
ID instans GA. |
ga-bp1yeeq8yfoyszmqy**** |
| AccelerateRegion |
array<object> |
Yes |
Informasi mengenai wilayah akselerasi. |
|
|
object |
No |
Informasi mengenai wilayah akselerasi. |
||
| AccelerateRegionId |
string |
Yes |
ID wilayah akselerasi. Jumlah wilayah yang dapat Anda tambahkan bervariasi tergantung spesifikasi instans GA. Untuk informasi selengkapnya, lihat Overview. |
cn-huhehaote |
| IpVersion |
string |
No |
Versi IP yang digunakan untuk menghubungkan ke instans GA. Nilai yang valid:
Catatan
Hanya instans GA standar dengan model bayar sesuai penggunaan yang mendukung DUAL_STACK. |
IPv6 |
| Bandwidth |
integer |
No |
Bandwidth yang ingin Anda alokasikan ke wilayah akselerasi. Satuan: Mbit/s. Catatan
|
2 |
| IspType |
string |
No |
Jenis jalur alamat IP elastis (EIP) di wilayah akselerasi. Nilai yang valid:
Catatan
|
BGP |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| RequestId |
string |
ID permintaan. |
1F4B6A4A-C89E-489E-BAF1-52777EE148EF |
| IpSets |
array<object> |
Detail mengenai wilayah akselerasi. |
|
|
object |
Detail mengenai wilayah akselerasi. |
||
| AccelerateRegionId |
string |
ID wilayah akselerasi. |
cn-qingdao |
| Bandwidth |
integer |
Bandwidth yang dialokasikan ke wilayah akselerasi. Satuan: Mbit/s. |
2 |
| IpSetId |
string |
ID wilayah akselerasi. |
ips-bp11r5jb8ogp122xl**** |
| IspType |
string |
Jenis jalur EIP di wilayah akselerasi. |
BGP |
| AcceleratorId |
string |
ID instans GA. |
ga-bp1yeeq8yfoyszmq**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "1F4B6A4A-C89E-489E-BAF1-52777EE148EF",
"IpSets": [
{
"AccelerateRegionId": "cn-qingdao",
"Bandwidth": 2,
"IpSetId": "ips-bp11r5jb8ogp122xl****",
"IspType": "BGP"
}
],
"AcceleratorId": "ga-bp1yeeq8yfoyszmq****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Domain.NotFit | The domain is not fit the rule | The domain name does not have an ICP number. |
| 400 | Resource.QuotaFull | The resource quota is exceeded. | The number of resources has reached the upper limit. |
| 400 | StateError.Accelerator | accelerator state %s is illegal | The GA instance is in an invalid state %s. |
| 400 | RegionRepeat.IpSet | An accelerator can only have one IpSet in one region. accelerator = %s, region = %s | |
| 500 | UnknownError | An error occurred while processing your request. Please try again. If the error persists, please submit a ticket. | An error occurred while the request was being processed. Try again later. |
| 403 | Forbbiden.SubUser | You are not authorized to operate on the specified resource because your account was created by another user. | The current account is a RAM user and does not have permissions to manage the specified resources. |
| 403 | Forbidden | The user is not authorized to operate on the specified resource. | The current account does not have permissions to manage the specified resources. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.