You have to login with your account first.
Please let us know if you are planning to provide the api to set credentials for virtual server