Cria um VSwitch.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
ens:CreateVSwitch |
create |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| EnsRegionId |
string |
Sim |
O ID do nó ENS. |
cn-xian-unicom |
| CidrBlock |
string |
Sim |
O bloco CIDR do VSwitch. Os seguintes requisitos se aplicam:
|
172.16.0.0/24 |
| VSwitchName |
string |
Não |
O nome do VSwitch. Os seguintes requisitos se aplicam:
Valor padrão: uma string vazia. |
Test vSwitch |
| Description |
string |
Não |
A descrição do VSwitch. A descrição deve ter de 2 a 256 caracteres. Deve começar com uma letra ou um caractere chinês e não pode começar com |
This is my vswitch. |
| NetworkId |
string |
Não |
O ID da rede à qual o VSwitch pertence. |
n-257gqcdfvx6n**** |
| Tag |
array<object> |
Não |
As tags do recurso. Você pode especificar até 20 tags. |
|
|
object |
Não |
Uma tag de recurso. |
||
| Key |
string |
Não |
A chave da tag.
|
team |
| Value |
string |
Não |
O valor da tag. Pode ter até 128 caracteres, pode ser uma string vazia e não pode começar com |
Deep |
| Ipv6CidrBlock |
string |
Não |
2408:XXXX:0:a600::/110 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os parâmetros de resposta. |
||
| VSwitchId |
string |
O ID do VSwitch. |
vsw-5**** |
| RequestId |
string |
O ID da solicitação. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
Exemplos
Resposta de sucesso
JSON formato
{
"VSwitchId": "vsw-5****",
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 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. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.