@@ -8,6 +8,32 @@ var assign = require('lodash.assign');
88 * @method list
99 * @description List information about all machines available to either the current
1010 * authenticated user or the team, if the user belongs to a team.
11+ * The list method takes an optional first argument to limit the returned machine objects.
12+ * @param {object } [filter] - An optional filter object to limit the returned machine objects
13+ * @param {string } [filter.machineId] - Optional machine id to match on. Note: must be specified as "machineId", not "id".
14+ * @param {string } [filter.name] - Optional name to match on
15+ * @param {string } [filter.os] - Optional os to match on
16+ * @param {string } [filter.ram] - Optional ram value to match on
17+ * @param {number } [filter.cpus] - Optional cpu count to mactch on
18+ * @param {string } [filter.gpu] - Optional gpu to match on
19+ * @param {string } [filter.storageTotal] - Optional storageTotal value to match on
20+ * @param {string } [filter.storageUsed] - Optional storageUsed value to match on
21+ * @param {string } [filter.usageRate] - Optional usageRate value to match on
22+ * @param {number } [filter.shutdownTimeoutInHours] - Optional shutdownTimeoutInHours value to mactch on
23+ * @param {boolean } [filter.performAutoSnapshot] - Optional performAutoSnapshot value to match on, either true or false
24+ * @param {string } [filter.autoSnapshotFrequency] - Optional autoSnapshotFrequency value to mactch on
25+ * @param {number } [filter.autoSnapshotSaveCount] - Optional autoSnapshotSaveCount value to mactch on
26+ * @param {string } [filter.agentType] - Optional agentType value to mactch on
27+ * @param {string } [filter.dtCreated] - Optional datatime created value to match on
28+ * @param {string } [filter.state] - Optional state value to mactch on
29+ * @param {string } [filter.networkId] - Optional networkId to mactch on
30+ * @param {string } [filter.privateIpAddress] - Optional privateIpAddress to mactch on
31+ * @param {string } [filter.publicIpAddress] - Optional publicIpAddress to mactch on
32+ * @param {string } [filter.region] - Optional region to mactch on
33+ * @param {string } [filter.userId] - Optional userId to mactch on
34+ * @param {string } [filter.teamId] - Optional teamId to mactch on
35+ * @param {string } [filter.scriptId] - Optional scriptId to mactch on
36+ * @param {string } [filter.dtLastRun] - Optional script datatime last run value to match on
1137 * @param {function } cb - Node-style error-first callback function
1238 * @returns {array } [ machine, ... ] - JSON array of machine objects
1339 * @example
0 commit comments