A vSwitch change completed event fires after a VPC, vSwitch, or network change on an ECS instance, reporting the instance ID, vSwitch ID, and private IP address.
vSwitch change completed event notification
This event is triggered in these scenarios:
Calling the ModifyInstanceVpcAttribute API operation to modify the VPC properties of an instance also triggers this event.
Sample JSON notification for a vSwitch change completed event:
{
"id":"2256A988-0B26-4E2B-820A-8B********A5",
"product":"ECS",
"resourceId":"acs:ecs:cn-hangzhou:169070********30:eni/eni-8vb1qo********cdeg2n",
"level":"INFO",
"name":"Instance:VSwitchChanged",
"userId":"169070********30",
"eventTime":"20230409T121826.922+0800",
"regionId":"cn-hangzhou",
"content":{
"instanceId":"i-8vb1qo********cdeg2n",
"vswitchId":"vsw-bp1s5fnvk4gn3tw12****",
"privateIpAddress":"172.17.XX.XX",
"vpcId":"vpc-bp1vwnn14rqpyiczj****",
"secondaryPrivateIps":["172.17.XX.XX"]
}
}
Fields in the content object:
|
Field name |
Description |
Example value |
|
|
The ECS instance ID. |
i-bp1ecr********5go2go |
|
|
The vSwitch ID of the ECS instance. |
vsw-bp1s5fnvk4gn3tw12**** |
|
|
The primary private IP address of the instance. |
172.17.XX.XX |
|
|
The VPC ID of the ECS instance. |
vpc-bp1vwnn14rqpyiczj**** |
|
|
The secondary private IP addresses of the primary NIC. |
["172.17.XX.XX"] |