Methods
(static) authenticate(host, user, passwordOrUri, optionsopt) → {Promise}
Implements token auth
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
host |
String | Host to connect to. |
|||||||||||||||||||||||||||||||||||||
user |
String | User (with admin rights). |
|||||||||||||||||||||||||||||||||||||
passwordOrUri |
String | Password for user or URI (file, http, https, ARN, etc.) to location containing password. |
|||||||||||||||||||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. Properties
|
Returns:
A promise which is resolved with an iControl object to use for future requests or rejected if an error occurs.
- Type
- Promise