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

Commit

Permalink
document assignPublicIp param on machines create method
Browse files Browse the repository at this point in the history
  • Loading branch information
sanfilip committed Jul 14, 2017
1 parent ec5bc15 commit 80d2bd9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/machines/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ var assign = require('lodash.assign');
* @param {string} params.billingType - Either 'monthly' or 'hourly' billing
* @param {string} params.machineName - A memorable name for this machine
* @param {string} params.templateId - Template id of the template to use for creating this machine
* @param {boolean} [params.assignPublicIp] - Assign a new public ip address on machine creation
* @param {string} [params.networkId] - If creating on a specific network, specify its id
* @param {string} [params.teamId] - If creating the machine for a team, specify the team id
* @param {string} [params.userId] - If assigning to an existing user other than yourself, specify the user id
Expand All @@ -41,6 +42,7 @@ var assign = require('lodash.assign');
* billingType: 'hourly',
* machineName: 'My Machine 1',
* templateId: 't123abc',
* assignPublicIp: true, // optional - assign a new public ip address
* networkId: 'n123abc', // optional - only if creating on a specific network
* teamId: 'te456def', // optional - required if creating this machine for a team
* userId: 'u123abc', // optional - required if assigning to an existing user other than yourself
Expand All @@ -61,6 +63,7 @@ var assign = require('lodash.assign');
* --billingType "hourly" \
* --machineName "My Machine 1" \
* --templateId "t123abc" \
* --assignPublicIp true \
* --networkId "n123abc" \
* --teamId "te456def" \
* --userId "u123abc" \
Expand All @@ -73,7 +76,7 @@ var assign = require('lodash.assign');
* @example
* # HTTP request:
* https://api.paperspace.io
* POST /machines/createSingleMachinePublic {"region": "East Coast (NY2)", "machineType": "Air", "size": 50, "billingType": "monthly", "machineName": "My Machine 1", "templateId": "t123abc", "networkId": "n123abc", "teamId": "te456def", "userId": "u123abc", "email": "example@example.com", "password": "secret123", "firstName": "Jon", "lastName": "Snow", "notificationEmail": "[email protected]"}
* POST /machines/createSingleMachinePublic {"region": "East Coast (NY2)", "machineType": "Air", "size": 50, "billingType": "monthly", "machineName": "My Machine 1", "templateId": "t123abc", "assignPublicIp": true, "networkId": "n123abc", "teamId": "te456def", "userId": "u123abc", "email": "example@example.com", "password": "secret123", "firstName": "Jon", "lastName": "Snow", "notificationEmail": "[email protected]"}
* x-api-key: 1ba4f98e7c0...
* # Returns 201 on success
* @example
Expand All @@ -98,7 +101,7 @@ var assign = require('lodash.assign');
* "state": "provisioning",
* "networkId": null,
* "privateIpAddress": null,
* "publicIpAddress": null,
* "publicIpAddress": "169.255.255.254",
* "region": null,
* "userId": "u123abc",
* "teamId": "te456def"
Expand Down

0 comments on commit 80d2bd9

Please sign in to comment.