Using Console
Using CLI
[FIREWALL_RULE_NAME]
with the name of the firewall rule that allows traffic to the VNC client port.
Using Python
google-cloud-sdk
command-line tool or the Python client library to list all the instances in your project.
google-cloud-firewall
library to update the firewall rules for an instance: