Membuat region akselerasi.
Deskripsi operasi
-
CreateIpSets adalah operasi asinkron. Setelah Anda mengirim permintaan, sistem mengembalikan ID permintaan dan menjalankan tugas di latar belakang. Anda dapat memanggil operasi DescribeIpSet untuk menanyakan status tugas.
Jika region akselerasi berada dalam status init, ini menunjukkan bahwa region akselerasi sedang dibuat. Dalam hal ini, Anda hanya dapat melakukan operasi kueri.
Jika region akselerasi berada dalam status active, ini menunjukkan bahwa region akselerasi telah 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 region instans GA. Tetapkan nilainya ke cn-hangzhou. |
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. Token hanya dapat 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 tentang region akselerasi. |
|
|
object |
No |
Informasi tentang region akselerasi. |
||
| AccelerateRegionId |
string |
Yes |
ID region akselerasi. Jumlah region yang dapat Anda tambahkan bervariasi berdasarkan spesifikasi instans GA. Untuk informasi lebih lanjut, lihat Ikhtisar. |
cn-huhehaote |
| IpVersion |
string |
No |
Versi IP yang digunakan untuk terhubung ke instans GA. Nilai yang valid:
Catatan
Hanya instans GA standar pay-as-you-go yang mendukung DUAL_STACK. |
IPv6 |
| Bandwidth |
integer |
No |
Bandwidth yang ingin Anda alokasikan ke region akselerasi. Unit: Mbit/s. Catatan
|
2 |
| IspType |
string |
No |
Tipe line dari elastic IP address (EIP) di region 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 tentang region akselerasi. |
|
|
object |
Detail tentang region akselerasi. |
||
| AccelerateRegionId |
string |
ID region akselerasi. |
cn-qingdao |
| Bandwidth |
integer |
Bandwidth yang dialokasikan untuk region akselerasi. Unit: Mbit/s. |
2 |
| IpSetId |
string |
ID region akselerasi. |
ips-bp11r5jb8ogp122xl**** |
| IspType |
string |
Tipe line EIP di region 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.