Lines Matching refs:instance
7 """Tool to sync lab servers to the "Allowed Networks" of a CloudSQL instance.
9 For a lab server to access CloudSQL instance, the server's IP must be added to
10 the "Allowed Networks" list of the CloudSQL instance. This tool is to be used to
12 "Allowed Networks" of a given CloudSQL instance.
15 servers to the "Allowed Networks" list of the CloudSQL instance. This allows
16 servers that do not run Autotest code can access the CloudSQL instance.
53 def update_allowed_networks(project, instance, afe=None, extra_servers=None):
54 """Update the "Allowed Networks" list of the given CloudSQL instance.
57 @param instance: Name of the CloudSQL instance.
63 # Get the IP address of all servers need access to CloudSQL instance.
82 % (instance, ','.join(ips)), stdout_tee=sys.stdout,
99 parser.add_argument('--instance', type=str, dest='instance',
100 help='Name of the CloudSQL instance.')
110 update_allowed_networks(options.project, options.instance, options.afe,