Repository navigation
Add API to create preemptible VMs #925
Copy link
Copy link
Closed
Labels
api: computeIssues related to the Compute Engine API.Issues related to the Compute Engine API.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
Description
Activity
Give this a shot:
zone.createVM('new-vm-name', { // ... options ... scheduling: { preemptible: true } }, function(err, vm, operation, apiResponse) {});
The second argument to
createVMis the same object that is outlined here: https://cloud.google.com/compute/docs/reference/latest/instances -- so in theory, if that supports what you need, so do we :)- addedapi: computeIssues related to the Compute Engine API.Issues related to the Compute Engine API.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
on Nov 5, 2015 Going to close. Thanks for asking. Please re-open if this didn't resolve the issue.
Yes, with the
preemptible: trueoption it works. Thanks!- added 2 commits that reference this issue
on Jan 24, 2023 - added 6 commits that reference this issue
on Jan 27, 2026 1 remaining item
- added a commit that references this issue
on Feb 17, 2026 - added a commit that references this issue
on Mar 5, 2026 - added 2 commits that reference this issue
on Mar 27, 2026
Metadata
Metadata
Assignees
Labels
api: computeIssues related to the Compute Engine API.Issues related to the Compute Engine API.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
The createVM API method does not seem to expose the
--preemptibleoption of the command line tool:Is this achieved in another way or is it missing?