We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm attempting to automate our deployment process for compute engine, but I don't see any way to create images with this module. Is it possible?
Looking at the compute engine docs, it seems like it should be.
The text was updated successfully, but these errors were encountered:
We currently don't support the Image API, however as a temporary workaround I think you can use Compute#request to make the request.
Compute#request
var compute = gcloud.compute(); compute.request({ method: 'POST', uri: '/global/images', json: { name: 'image-name', rawDisk: { source: 'storage-path' } } }, function(err, resp) { if (err) { // request error } var operation = compute.operation(resp.name); operation.on('complete', function() { // image is created }); operation.on('error', function() { // error occured }); });
Sorry, something went wrong.
Thanks for writing up that code @callmehiphop. That should indeed work.
We have an issue tracking all of the missing APIs from GCE that we still have to implement: #1073. Help is very welcome :)
@callmehiphop thanks for this!
stephenplusplus
No branches or pull requests
I'm attempting to automate our deployment process for compute engine, but I don't see any way to create images with this module. Is it possible?
Looking at the compute engine docs, it seems like it should be.
The text was updated successfully, but these errors were encountered: