Modifica a configuração de uma sessão de espelhamento de tráfego.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
vpc:UpdateTrafficMirrorSessionAttribute |
update |
*TrafficMirrorSession
TrafficMirrorFilter
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| TrafficMirrorSessionDescription |
string |
Não |
A nova descrição da sessão de espelhamento de tráfego. A descrição deve ter de 1 a 256 caracteres e não pode começar com |
This is a new session. |
| TrafficMirrorSessionName |
string |
Não |
O novo nome da sessão de espelhamento de tráfego. O nome deve ter de 1 a 128 caracteres e não pode começar com |
abc |
| ClientToken |
string |
Não |
O token de cliente usado para garantir a idempotência da solicitação. Você pode usar o cliente para gerar o token, mas deve garantir que o token seja exclusivo entre diferentes solicitações. O token pode conter apenas caracteres ASCII. Nota
Se você não especificar este parâmetro, o sistema usará automaticamente o ID da solicitação como o token de cliente. O ID da solicitação pode ser diferente para cada solicitação. |
0c593ea1-3bea-11e9-b96b-88e9fe63**** |
| DryRun |
boolean |
Não |
Especifica se deve ser realizado um dry run. Valores válidos:
|
false |
| TrafficMirrorSessionId |
string |
Sim |
O ID da sessão de espelhamento de tráfego. |
tms-j6cla50buc44ap8tu**** |
| TrafficMirrorTargetId |
string |
Não |
O ID do destino do espelhamento de tráfego. |
eni-j6c2fp57q8rr47rp***** |
| TrafficMirrorTargetType |
string |
Não |
O novo tipo do destino do espelhamento de tráfego. Valores válidos:
|
NetworkInterface |
| TrafficMirrorFilterId |
string |
Não |
O ID do filtro de espelhamento de tráfego. |
tmf-j6cmls82xnc86vtpe**** |
| VirtualNetworkId |
integer |
Não |
O identificador de rede VXLAN (VNI) usado para distinguir diferentes tráfegos espelhados. Valores válidos: 0 a 16777215. Você pode usar VNIs para identificar o tráfego espelhado de diferentes sessões no destino do espelhamento de tráfego. Se você não especificar um VNI, o sistema alocará um VNI aleatoriamente. Se desejar que o sistema aloque um VNI aleatoriamente, ignore este parâmetro. |
10 |
| Priority |
integer |
Não |
A nova prioridade da sessão de espelhamento de tráfego. Valores válidos: 1 a 32766. Um valor menor indica uma prioridade maior. Você não pode especificar prioridades idênticas para sessões de espelhamento de tráfego criadas na mesma região usando a mesma conta. |
2 |
| PacketLength |
integer |
Não |
A unidade máxima de transmissão (MTU). Valores válidos: 64 a 9600. Valor padrão: 1500. |
1500 |
| Enabled |
boolean |
Não |
Especifica se a sessão de espelhamento de tráfego deve ser ativada. Valores válidos:
|
false |
| RegionId |
string |
Sim |
O ID da região da sessão de espelhamento de tráfego. Você pode chamar a operação DescribeRegions para consultar a lista de regiões mais recente. Para obter mais informações sobre as regiões que suportam espelhamento de tráfego, consulte Visão geral do espelhamento de tráfego. |
cn-hongkong |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RequestId |
string |
O ID da solicitação. |
64DCAF03-E2C7-479A-ACEA-38B79876B006 |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "64DCAF03-E2C7-479A-ACEA-38B79876B006"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | IncorrectBusinessStatus.TrafficMirror | The business status of traffic mirror is incorrect. | Traffic mirroring is in an invalid state. |
| 400 | OptInRequired.TrafficMirror | You need to subscribe to the traffic mirror service first. | Traffic mirroring is disabled. |
| 400 | DuplicatedParam.Priority | The specified priority conflicts with the existing priority. | The specified priority is the same as an existing one. |
| 400 | ResourceNotFound.TrafficMirrorSession | The specified resource of traffic mirror session is not found. | |
| 400 | IncorrectStatus.TrafficMirrorSession | The status of traffic mirror session is incorrect. | |
| 400 | ResourceNotFound.TrafficMirrorFilter | The specified resource of traffic mirror filter is not found. | The specified filter does not exist. |
| 400 | IncorrectStatus.TrafficMirrorFilter | The status of traffic mirror filter is incorrect. | The filter is in an invalid state. |
| 400 | QuotaExceeded.FilterRelatedSession | The quota of the number of traffic mirror sessions related to one filter is exceeded. | The number of traffic mirror sessions associated with the filter has reached the upper limit. |
| 400 | ResourceNotFound.NetworkInterface | The specified resource of network interface is not found. | The specified ENI does not exist. |
| 400 | ResourceNotFound.EcsInstance | The specified resource of ECS instance is not found. | |
| 400 | ResourceNotFound.Slb | The specified resource of SLB is not found. | |
| 400 | OperationDenied.SlbNotInVpc | The specified SLB is not in any VPC. | |
| 400 | QuotaExceeded.NetworkInterfaceRelatedSession | The quota of the number of traffic mirror sessions related to one network interface is exceeded. | The number of traffic mirror sessions associated with an ENI has reached the upper limit. |
| 400 | QuotaExceeded.SlbRelatedSession | The quota of the number of traffic mirror sessions related to one SLB is exceeded. | The number of traffic mirror sessions associated with an SLB instance has reached the upper limit. |
| 400 | OperationDenied.EcsNotSupportTrafficMirror | The ECS instance does not support traffic mirroring. | |
| 400 | OperationDenied.DuplicateRole | The network interface must not be the source and the target of traffic mirror sessions at the same time. | |
| 400 | InvalidLoadBalancerId.NotFound | The specified resource of load balancer is not found. | The SLB instance does not exist. |
| 400 | OperationDenied.FreeNetworkInterface | The network interface is not attached to any ECS instance. | The ENI is not associated with an ECS instance. |
| 400 | OperationDenied.ClassicSLB | The operation is not allowed because of ClassicSLB. | The error message returned because you cannot perform the operation on a CLB instance. |
| 400 | QuotaExceeded.SourceNumPerTarget | The maximum number of traffic mirror sources for a target is exceeded. | The number of traffic mirror sources associated with the image exceeds the upper limit. |
| 400 | OperationFailed.NotSupportBizType | The specified instance type does not support the operation. | The specified instance type does not support the operation. |
| 400 | OperationDenied.UnsupportedTargetType | Traffic mirror target must be SLB if traffic mirror sources contain nat gateway network interface. | When a NAT gateway NIC exists in the traffic mirroring source, the traffic mirroring purpose must be SLB type. |
| 400 | OperationDenied.TargetTypeNotSupportBondEni | Operation denied because of target type can not be Bond Network Interface. | Operation denied because of target type can not be Bond Network Interface. |
| 400 | OperationDenied.TargetTypeNotSupportGatewayLoadBalancerEndpoint | Operation denied because of target type can not be GatewayLoadBalancerEndpoint. | Gateway-based load balancing endpoints are not supported as traffic mirrors mu d |
| 400 | OperationDenied.InvalidTargetBondEniType | The traffic mirroring target does not support the entered bond ENI type. | The traffic mirroring target does not support the entered bond ENI type. |
| 400 | OperationDenied.TargetTypeNotSupportTrafficMirrorFullPacket | The traffic mirror session target type does not support the feature of mirroring source full packet. | The traffic mirror session target type does not support the feature of mirroring source full packet |
| 400 | OperationDenied.TrafficMirrorSessionSourceFullPacketNotSupport | The traffic mirror session does not support the feature of mirroring source full packet. | Traffic mirror currently does not support source full packet mirroring. TrafficMirrorSourceTruncateMode can only be set to 0, which is the default mode. |
| 500 | OperationFailed.GetEniInfo | The back-end service failed to query the NIC information. | The back-end service failed to query the NIC information. |
| 404 | ResourceNotFound.GatewayLoadBalancerEndpoint | GatewayLoadBalancerEndpoint instance not found. | GatewayLoadBalancerEndpoint instance not found. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.