-
Notifications
You must be signed in to change notification settings - Fork 598
New issue
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
networkInterfaces resource upon createVM completion #1085
Comments
I think the issue is the zone.createVM(name, config, function(err, vm, operation, apiResponse){
operation.on('complete', function(){
vm.getMetadata(function(err, metadata){
// metadata.networkInterfaces[0].accessConfigs[0].natIP
});
});
}) Here's an example of doing that in gcloud-deploy: https://github.com/stephenplusplus/gcloud-deploy/blob/25233819ece801bc556957153e64d78a09993615/index.js#L221 Let me know if you run into any issues! |
Thanks for the quick and swift feedback. It worked! |
* chore: update github issue templates (#1085) Source-Link: googleapis/synthtool@4dfd20a Post-Processor: gcr.io/repo-automation-bots/owlbot-nodejs:latest@sha256:2d850512335d7adca3a4b08e02f8e63192978aea88c042dacb3e382aa996ae7c * build: update owlbot and linkinator * docs: test passing * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * update to latest image * update node test * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Sofia Leon <sofialeon@google.com>
Co-authored-by: meredithslota <meredithslota@google.com>
The createVM api exposes four variables on call back, along with a callback variable. As far as I could see, the networkInterfaces resource for that given VM is not accessible anywhere. In other words, it is not possible to get the external IP for the VM should one have been assigned, a part from getting all VMs after the creation of a particular one.
Am I missing something, or is this feature not yet implemented? And if not, I like to request it as an enhancement. Thanks!
The text was updated successfully, but these errors were encountered: