Rest API login, create vlan and logout