Membuat vSwitch.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:CreateVSwitch |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| EnsRegionId |
string |
Yes |
ID node ENS. |
cn-xian-unicom |
| CidrBlock |
string |
Yes |
Blok CIDR vSwitch. Blok CIDR vSwitch harus memenuhi persyaratan berikut:
|
172.16.0.0/24 |
| VSwitchName |
string |
No |
Nama vSwitch. Ketentuan penamaan adalah sebagai berikut:
Nilai default: kosong. |
Test vSwitch |
| Description |
string |
No |
Deskripsi vSwitch. Deskripsi harus terdiri dari 2 hingga 256 karakter dan harus diawali dengan huruf atau karakter Mandarin. Tidak boleh diawali dengan http:// atau https://. |
This is my vswitch. |
| NetworkId |
string |
No |
ID jaringan tempat vSwitch yang akan dibuat berada. |
n-257gqcdfvx6n**** |
| Tag |
array<object> |
No |
Tag sumber daya. |
|
|
object |
No |
Tag dari sumber daya. |
||
| Key |
string |
No |
Kunci tag dari instance. Nilai valid N: 1 hingga 20.
|
team |
| Value |
string |
No |
Nilai tag dari sumber daya. Nilai valid N: 1 hingga 20. Nilai dapat berupa string kosong setelah diteruskan. Nilai dapat memiliki panjang hingga 128 karakter, tidak boleh diawali dengan acs:, dan tidak boleh berisi http:// atau https://. |
Deep |
| Ipv6CidrBlock |
string |
No |
2408:XXXX:0:a600::/110 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| VSwitchId |
string |
ID vSwitch. |
vsw-5**** |
| RequestId |
string |
ID permintaan. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
Contoh
Respons sukses
JSONformat
{
"VSwitchId": "vsw-5****",
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | Permission denied. | |
| 400 | CallInterface | Call Interface Happen Error. | |
| 400 | Invalid%s | The specified parameter %s is invalid. | |
| 400 | Missing%s | You must specify the parameter %s. | |
| 400 | NetworkNotFound | The specified network is not found. | |
| 400 | IncorrectStatus.Network | The status of the network is incorrect. | |
| 400 | QuotaExceeded | The number of resources has reached the quota limit. | |
| 400 | Network.SecondaryCidrNotFound | The network secondary CIDR is not found. | |
| 400 | VSwitch.Ipv6CidrBlockOverlapped | The specified IPv6 CIDR block overlaps with existing vSwitches. | |
| 400 | VSwitch.CidrBlockOverlapped | The specified CIDR block overlaps with existing vswitches. | |
| 400 | VSwitch.InvalidIpv6CidrBlock | Invalid IPv6 CIDR value. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.