reset-state instances with Api in openstack