Bir VSwitch oluşturur.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:CreateVSwitch |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| EnsRegionId |
string |
Yes |
ENS düğümünün kimliği. |
cn-xian-unicom |
| CidrBlock |
string |
Yes |
VSwitch'in CIDR bloğu. Aşağıdaki gereksinimler geçerlidir:
|
172.16.0.0/24 |
| VSwitchName |
string |
No |
VSwitch'in adı. Aşağıdaki gereksinimler geçerlidir:
Varsayılan değer: boş dize. |
Test vSwitch |
| Description |
string |
No |
VSwitch'in açıklaması. Açıklama 2 ila 256 karakter uzunluğunda olmalıdır. Bir harf veya Çince karakterle başlamalıdır ve |
This is my vswitch. |
| NetworkId |
string |
No |
VSwitch'in ait olduğu ağın kimliği. |
n-257gqcdfvx6n**** |
| Tag |
array<object> |
No |
Kaynağın etiketleri. En fazla 20 etiket belirtebilirsiniz. |
|
|
object |
No |
Bir kaynak etiketi. |
||
| Key |
string |
No |
Etiketin anahtarı.
|
team |
| Value |
string |
No |
Etiketin değeri. En fazla 128 karakter uzunluğunda olabilir, boş dize olabilir ve |
Deep |
| Ipv6CidrBlock |
string |
No |
2408:XXXX:0:a600::/110 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Yanıt parametreleri. |
||
| VSwitchId |
string |
VSwitch'in kimliği. |
vsw-5**** |
| RequestId |
string |
İstek kimliği. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
Examples
Success response
JSON format
{
"VSwitchId": "vsw-5****",
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | Permission denied. | |
| 400 | CallInterface | Call Interface Happen Error. | An error occurred when you call the operation. |
| 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. | Network not found, please check network id. |
| 400 | IncorrectStatus.Network | The status of the network is incorrect. | The status of the network is incorrect. |
| 400 | QuotaExceeded | The number of resources has reached the quota limit. | 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.