Membuat alamat IP virtual ketersediaan tinggi (HAVIP).
Deskripsi operasi
CreateHaVip adalah operasi asinkron. Setelah Anda memanggil operasi ini, sistem akan mengembalikan ID HAVIP, tetapi HAVIP belum dibuat. Node pembuatan masih berjalan di latar belakang. Anda dapat memanggil DescribeHaVips untuk mengkueri status pembuatan HAVIP:
Jika HAVIP berada dalam status Creating, HAVIP sedang dibuat.
Jika HAVIP berada dalam status Available, HAVIP telah dibuat.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:CreateHaVip |
create |
*HaVip
*VSwitch
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
No |
Nama HAVIP. Nama harus memiliki panjang 1 hingga 128 karakter dan tidak boleh diawali dengan |
test |
| 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 RequestId sebagai ClientToken. RequestId mungkin berbeda untuk setiap permintaan API. |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
| RegionId |
string |
Yes |
ID wilayah HAVIP. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| VSwitchId |
string |
Yes |
ID vSwitch tempat HAVIP berada. |
vsw-asdfjlnaue4g**** |
| IpAddress |
string |
No |
Alamat IP HAVIP. Alamat IP yang ditentukan harus berupa alamat IP yang tidak digunakan dalam Blok CIDR vSwitch. Jika Anda tidak menentukan parameter ini, alamat IP yang tidak digunakan akan ditetapkan secara acak dari Blok CIDR vSwitch yang ditentukan. |
192.XX.XX.10 |
| Description |
string |
No |
Deskripsi HAVIP. Deskripsi harus memiliki panjang 1 hingga 255 karakter dan tidak boleh diawali dengan |
This is my HaVip. |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya tempat HAVIP berada. |
rg-acfmxazb4ph6aiy**** |
| Tag |
array<object> |
No |
Tag Sumber daya. |
|
|
object |
No |
Tag. |
||
| Key |
string |
No |
Kunci tag Sumber daya. Anda dapat menentukan hingga 20 kunci tag. Kunci tag tidak boleh berupa string kosong. Kunci tag dapat memiliki panjang hingga 128 karakter dan tidak boleh diawali dengan |
FinanceDept |
| Value |
string |
No |
Nilai tag Sumber daya. Anda dapat menentukan hingga 20 nilai tag. Nilai tag dapat berupa string kosong. Nilai tag dapat memiliki panjang hingga 128 karakter dan tidak boleh diawali dengan |
FinanceJoshua |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter tanggapan. |
||
| RequestId |
string |
ID permintaan. |
C44F62BE-9CE7-4277-B117-69243F3988BF |
| IpAddress |
string |
Alamat IP HAVIP. |
192.XX.XX.10 |
| HaVipId |
string |
ID HAVIP. |
havip-2zeo05qre24nhrqpy**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "C44F62BE-9CE7-4277-B117-69243F3988BF",
"IpAddress": "192.XX.XX.10",
"HaVipId": "havip-2zeo05qre24nhrqpy****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidDescription.Malformed | The specified Description is wrongly formed. | The Description parameter is invalid. |
| 400 | InvalidIPAddress.OutOfRange | The specified IPAddress is out of VSwitch CIDR. | |
| 400 | InvalidIPAddress.NotAvailable | The specified IPAddress is not available because it is a system reserved IPAddress. | |
| 400 | InvalidIPAddress.AlreadyUsed | The specified IPAddress is already used by other resource. | |
| 400 | InvalidIPAddress.Malformed | The specified IPAddress is not a valid or strict address. | The specified IP address is invalid. |
| 400 | Abs.Vpc.InvalidName.Malformed | The specified Name is not valid. | The specified Name is invalid. |
| 400 | InvalidIPAddress.OutOfVswCIDR | The specified IPAddress is out of VSwitch CIDR. | The specified IP address is outside the CIDR block of the vSwitch. |
| 400 | InvalidIPAddress.AlreadyInUse | The specified IPAddress is already used by other resource. | The specified IP address is already used by another resource. |
| 400 | UnsupportedFeature.CloudBoxHaVip | The HAVIP feature is not supported in cloud box. | Cloud Box does not support creating HAVIP. |
| 400 | CountLimitExceed.HaVipInVpc | Specified Vpc exceeds the quota of max number of ha-vip count. | |
| 400 | Forbidden.HaVip | No permissions to perform operations on HAVIPs. Please apply for privilege--vpc_privilege_allow_buy_havip_instance. | You do not have permission to operate on HAVIP. Please apply for permission in the Quota Center. |
| 400 | OperationDenied.InvalidIpReservedByVSwitch | The specified ip address is the reserved address of the switch. | |
| 400 | InvalidRegionId.NotFound | Specified value of "regionId" is not supported. | |
| 400 | IllegalParam.ResourceGroupId | Invalid ResourceGroupld value. | The specified resource group is invalid or does not exist. |
| 400 | IncorrectStatus.VSwitch | The specified vSwitch status is invalid. | The vSwitch is in an invalid state. |
| 403 | CountLimitExceed.HaVipInVpc | Specified Vpc exceeds the quota of max number of ha-vip count. | |
| 403 | QuotaExceeded.HaVip | Living HaVip quota exceeded. | |
| 404 | InvalidVSwitchId.NotFound | The specified VSwitch does not exist in the specified region. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.