Cisco Cisco Elastic Services Controller 2.2 Developer's Guide
7.2.2.1 Event Notifications
There are two notifications sent to NB during a successful scale in:
1. When a scale-in work flow is initiated, the following notifications will be sent from ESC:
<?xml version="1.0" encoding="UTF-8"?>
<notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
<eventTime>2015-05-19T23:46:36.276+00:00</eventTime>
<escEvent xmlns="http://www.cisco.com/esc/esc">
<status>SUCCESS</status>
<status_message>VM scale in triggered</status_message>
<depname>dep</depname>
<tenant>hezh-yesc-0520</tenant>
<depid>187bc0b5-9d0b-4c01-8353-89454a6a1da6</depid>
<vm_group>CSR</vm_group>
<vm_source>
<escEvent xmlns="http://www.cisco.com/esc/esc">
<status>SUCCESS</status>
<status_message>VM scale in triggered</status_message>
<depname>dep</depname>
<tenant>hezh-yesc-0520</tenant>
<depid>187bc0b5-9d0b-4c01-8353-89454a6a1da6</depid>
<vm_group>CSR</vm_group>
<vm_source>
<vmid>5283bcab-c1c3-4699-9bbe-cf143b26c6aa</vmid>
<hostid>c64e652a4561392ae20ae702eceae53e417302e0d2d63e41d66a15cc</hostid>
</vm_source>
<vm_target>
</vm_target>
<event>
<type>VM_SCALE_IN_INIT</type>
</event>
</escEvent>
<hostid>c64e652a4561392ae20ae702eceae53e417302e0d2d63e41d66a15cc</hostid>
</vm_source>
<vm_target>
</vm_target>
<event>
<type>VM_SCALE_IN_INIT</type>
</event>
</escEvent>
</notification>
3
.
When the VM is undeployed, the final notification will be sent:
<?xml version="1.0" encoding="UTF-8"?>
<notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
<eventTime>2015-05-19T23:46:36.276+00:00</eventTime>
<escEvent xmlns="http://www.cisco.com/esc/esc">
<status>SUCCESS</status>
<status_message>VM scaled in successfully</status_message>
<depname>dep</depname>
<tenant>hezh-yesc-0520</tenant>
<depid>187bc0b5-9d0b-4c01-8353-89454a6a1da6</depid>
<notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
<eventTime>2015-05-19T23:46:36.276+00:00</eventTime>
<escEvent xmlns="http://www.cisco.com/esc/esc">
<status>SUCCESS</status>
<status_message>VM scaled in successfully</status_message>
<depname>dep</depname>
<tenant>hezh-yesc-0520</tenant>
<depid>187bc0b5-9d0b-4c01-8353-89454a6a1da6</depid>
<vm_group>CSR</vm_group>
<vm_source>
<vmid>5283bcab-c1c3-4699-9bbe-cf143b26c6aa</vmid>
<hostid>c64e652a4561392ae20ae702eceae53e417302e0d2d63e41d66a15cc</hostid>
<hostname>my-ucs-5</hostname>
</vm_source>
<vm_target>
</vm_target>
<event>
<type>VM_SCALE_IN_COMPLETE</type>
</event>
<vm_source>
<vmid>5283bcab-c1c3-4699-9bbe-cf143b26c6aa</vmid>
<hostid>c64e652a4561392ae20ae702eceae53e417302e0d2d63e41d66a15cc</hostid>
<hostname>my-ucs-5</hostname>
</vm_source>
<vm_target>
</vm_target>
<event>
<type>VM_SCALE_IN_COMPLETE</type>
</event>
</escEvent>
</notification>
</notification>
If there are errors during scaling in, a notification indicating the failure will be sent:
<?xml version="1.0" encoding="UTF-8"?>
<notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
<eventTime>2015-05-19T23:46:36.276+00:00</eventTime>
<escEvent xmlns="http://www.cisco.com/esc/esc">
<status>FAILURE</status>
<status_message>VM scaled in failed</status_message>
<depname>dep</depname>
<tenant>hezh-yesc-0520</tenant>
<depid>187bc0b5-9d0b-4c01-8353-89454a6a1da6</depid>
<vm_group>CSR</vm_group>
<vm_source>
<vmid>5283bcab-c1c3-4699-9bbe-cf143b26c6aa</vmid>
<depid>187bc0b5-9d0b-4c01-8353-89454a6a1da6</depid>
<vm_group>CSR</vm_group>
<vm_source>
<vmid>5283bcab-c1c3-4699-9bbe-cf143b26c6aa</vmid>