Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.

Commit d7a9147

Browse files
committed
update docs for dynamicPublicIp param on machines create and update
1 parent dd9889c commit d7a9147

File tree

5 files changed

+22
-15
lines changed

5 files changed

+22
-15
lines changed

lib/machines/create.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ var assign = require('lodash.assign');
2929
* @param {string} params.billingType - Either 'monthly' or 'hourly' billing
3030
* @param {string} params.machineName - A memorable name for this machine
3131
* @param {string} params.templateId - Template id of the template to use for creating this machine
32-
* @param {boolean} [params.assignPublicIp] - Assign a new public ip address on machine creation
32+
* @param {boolean} [params.assignPublicIp] - Assign a new public ip address on machine creation. Cannot be used with dynamicPublicIp.
33+
* @param {boolean} [params.dynamicPublicIp] - Assigns a new public ip address on machine start and releases it from the account on machine stop. Cannot be used with assignPublicIp.
3334
* @param {string} [params.networkId] - If creating on a specific network, specify its id
3435
* @param {string} [params.teamId] - If creating the machine for a team, specify the team id
3536
* @param {string} [params.userId] - If assigning to an existing user other than yourself, specify the user id (mutually exclusive with email, password, firstName, lastName)
@@ -111,9 +112,10 @@ var assign = require('lodash.assign');
111112
* "publicIpAddress": "169.255.255.254",
112113
* "region": null,
113114
* "userId": "u123abc",
114-
* "teamId": "te456def"
115-
* "scriptId": "sc123abc"
116-
* "dtLastRun": null
115+
* "teamId": "te456def",
116+
* "scriptId": "sc123abc",
117+
* "dtLastRun": null,
118+
* "dynamicPublicIp": null
117119
* }
118120
*/
119121

lib/machines/list.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ var assign = require('lodash.assign');
7676
* "publicIpAddress": null,
7777
* "region": "East Coast (NY2)",
7878
* "userId": "u123abc",
79-
* "teamId": "te456def"
80-
* "scriptId": "sc123abc"
81-
* "dtLastRun": "2017-06-30T07:22:49.763Z"
79+
* "teamId": "te456def",
80+
* "scriptId": "sc123abc",
81+
* "dtLastRun": "2017-06-30T07:22:49.763Z",
82+
* "dynamicPublicIp": null
8283
* }
8384
* ]
8485
*/

lib/machines/show.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ var assign = require('lodash.assign');
6969
* "publicIpAddress": null,
7070
* "region": "East Coast (NY2)",
7171
* "userId": "u123abc",
72-
* "teamId": "te456def"
73-
* "scriptId": "sc123abc"
74-
* "dtLastRun": "2017-06-30T07:22:49.763Z"
72+
* "teamId": "te456def",
73+
* "scriptId": "sc123abc",
74+
* "dtLastRun": "2017-06-30T07:22:49.763Z",
75+
* "dynamicPublicIp": null,
7576
* "events": [
7677
* {
7778
* "name": "start",

lib/machines/update.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ var assign = require('lodash.assign');
1515
* @param {number} [params.autoSnapshotFrequency] - One of 'hour', 'day', 'week', or null
1616
* @param {number} [params.autoSnapshotSaveCount] - Number of snapshots to save
1717
* @param {boolean} [params.performAutoSnapshot] - Perform auto snapshots
18+
* @param {boolean} [params.dynamicPublicIp] - If true, assigns a new public ip address on machine start and releases it from the account on machine stop
1819
* @param {function} cb - Node-style error-first callback function
1920
* @example
2021
* paperspace.machines.update({
@@ -35,11 +36,12 @@ var assign = require('lodash.assign');
3536
* --shutdownTimeoutForces true \
3637
* --performAutoSnapshot true \
3738
* --autoSnapshotFrequency "week" \
38-
* --autoSnapshotSaveCount 4
39+
* --autoSnapshotSaveCount 4 \
40+
* --dynamicPublicIp true
3941
* @example
4042
* # HTTP request:
4143
* https://api.paperspace.io
42-
* POST /machines/ps123abc/updateMachinePublic {"machineId": "ps123abc", "machineName": "New Machine Name", "shutdownTimeoutInHours": 24, "shutdownTimeoutForces": true, "performAutoSnapshot": true, "autoSnapshotFrequency": "week", "autoSnapshotSaveCount": 4}
44+
* POST /machines/ps123abc/updateMachinePublic {"machineId": "ps123abc", "machineName": "New Machine Name", "shutdownTimeoutInHours": 24, "shutdownTimeoutForces": true, "performAutoSnapshot": true, "autoSnapshotFrequency": "week", "autoSnapshotSaveCount": 4, "dynamicPublicIp": true}
4345
* x-api-key: 1ba4f98e7c0...
4446
* # Returns 204 on success
4547
*/

lib/machines/waitfor.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ var assign = require('lodash.assign');
6060
* "publicIpAddress": null,
6161
* "region": "East Coast (NY2)",
6262
* "userId": "u123abc",
63-
* "teamId": "te456def"
64-
* "scriptId": "sc123abc"
65-
* "dtLastRun": "2017-06-30T07:22:49.763Z"
63+
* "teamId": "te456def",
64+
* "scriptId": "sc123abc",
65+
* "dtLastRun": "2017-06-30T07:22:49.763Z",
66+
* "dynamicPublicIp": null
6667
* }
6768
*/
6869

0 commit comments

Comments
 (0)