Creates a credential store file if none exists and stores the password for a given server and user name.

If a password already exists for that server and user name, add_password overwrites that password.


Parameter Description
server Server for the new entry. Can be an ESX/ESXi or vCenter Server system.
username User name for the new entry. VMware recommends that you create a user with appropriate privileges and store the corresponding user name and password in the credential store. Do not use the root or administrator user and the corresponding password.
password Password for the new entry.


Returns 1 if a password for this server and user does not exists. Otherwise, returns zero.