Modifica o status de um firewall de VPC que protege o tráfego entre instâncias de rede em uma Cloud Enterprise Network (CEN) e uma VPC especificada.
Descrição da operação
Esta operação modifica o status de um firewall de VPC. O firewall protege o tráfego entre instâncias de rede em uma Cloud Enterprise Network (CEN) e uma Virtual Private Cloud (VPC) especificada. As instâncias de rede incluem VPCs, Virtual Border Routers (VBRs) e instâncias Cloud Connect Network (CCN). Se o firewall estiver ativado, ele protege o tráfego entre as instâncias de rede na CEN e a VPC especificada. Se o firewall estiver desativado, ele não protege mais esse tráfego.
Antes de chamar esta operação, você deve criar um firewall de VPC chamando a operação CreateVpcFirewallCenConfigure.
Limites
Esta operação é limitada a 10 consultas por segundo (QPS) por usuário. Se você exceder esse limite, as chamadas de API serão limitadas. A limitação pode afetar seus negócios. Planeje suas chamadas adequadamente.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
yundun-cloudfirewall:ModifyVpcFirewallCenSwitchStatus |
update |
*VpcFirewallCen
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| Lang |
string |
Não |
O idioma da solicitação e da resposta. Valores válidos:
|
zh |
| VpcFirewallId |
string |
Sim |
O ID da instância do firewall de VPC. Nota
Você pode chamar a operação DescribeVpcFirewallCenList para consultar o ID da instância do firewall de VPC. |
vfw-m5e7dbc4y**** |
| FirewallSwitch |
string |
Sim |
O status do firewall de VPC. Valores válidos:
|
open |
| MemberUid |
string |
Não |
O UID da conta de membro. |
258039427902**** |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RequestId |
string |
O ID da solicitação. |
850A84D6-0DE4-4797-A1E8-00090125afj2 |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "850A84D6-0DE4-4797-A1E8-00090125afj2"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | ErrorVpcFirewallId | The VPC firewall ID is invalid. | The VPC firewall ID is invalid. |
| 400 | ErrorFirewallSwitch | The firewall enabling parameter is incorrect. Please select again. | The specified switch of the firewall is invalid. Enter another value. |
| 400 | ErrorDBTxError | A database transaction error occurred. | The error message returned because an internal error has occurred in the database transaction. |
| 400 | ErrorDBUpdateError | A database update error occurred. | |
| 400 | ErrorAliUid | Aliuid invalid. | The aliuid is invalid. |
| 400 | ErrorInvalidMemberUid | Member uid is invalid | The member is invalid. |
| 400 | ErrorFirewallId | Firewall ID is invalid. | The ID of the firewall is invalid. |
| 400 | ErrorVpcFirewallNotFound | Vpc firewall not found. | The specified VPC firewall does not exist. Select another one. |
| 400 | ErrorDBSelectError | A database select error occurred. | The error message returned because an internal error has occurred in querying the database. |
| 400 | ErrorCenTRManualModifySwitchStatus | CEN-TR manual mode does not support modifying the firewall status, if you need to close it, please delete the VPC firewall. | CEN-TR manual mode does not support modifying the firewall status, if you need to disable it, please delete the VPC boundary firewall. |
| 400 | ErrorCenRouteMapExist | cen route map is exist. | Creating a VPC perimeter firewall is not allowed RouteMap it already exists. Please contact the cloud firewall after-sales technical support. |
| 400 | ErrorFirewallNotConfig | Firewall not config | The firewall is not configured. |
| 400 | ErrorFirewallStatusClosed | firewall is already closed. | The firewall is turned off. |
| 400 | ErrorNetworkInterfaceNotFound | The NIC of the firewall is invalid. Check its configurations. | The NIC of the firewall is invalid. Check the parameter. |
| 400 | ErrorRecordLog | record operation log error. | Update operation log error. |
| 400 | ErrorBandwidthPenalty | Cloud Firewall bandwidth is being overused. | Cloud Firewall bandwidth is being overused. |
| 400 | ErrorFirewallVSwitchCidrConflict | Firewall switch network segment conflicts with business network segment. | Firewall switch network segment conflicts with business network segment |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.