Related links
Developer Resources
Get Server address
Retrieve your IDrive server address using
getServerAddress API. Use this address for executing command line utility APIs and REST APIs.
It is important to note that the
IDrive server address is dynamic and may change over a period of time as physically the data may get moved to another
server. So depending on your application needs, you may need to call this API periodically to get the current IDrive server address applicable for the user.
Syntax:
idevsutil --getServerAddress <username> --password-file=<account password>
- Username:
IDrive username. If you do not have a valid username Sign up with IDrive.
- --password-file=PATH_OF_PSWD_FILE
Reads account password from the specified file. Alternately, you can directly set the password using --password-file=<account password>
Code:
idevsutil --getServerAddress <username> --password-file="MyPassword"
The above mentioned code can be executed using any programming language across any platform (Windows, Mac and Linux).
Output:
Sample XML output:
<tree message="SUCCESS" cmdUtilityServer="evs1.idrive.com" cmdUtilityServerIP="173.255.12.86" webApiServer="evsweb1.idrive.com" webApiServerIP="173.255.12.87"/>
Description:
The output contains Command line utility server address and its corresponding IP address. You may choose server address or IP address while executing command line utility APIs.
command line utility server address: cmdUtilityServer="evs1.idrive.com"
command line utility server IP address: cmdUtilityServerIP="173.255.12.86"
Similarly, for REST APIs execution you may choose server address or IP address.
REST API server address: webApiServer="evsweb1.idrive.com"
REST API server IP address: webApiServerIP="173.255.12.87"