Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shashyajoshi/31175ff70dfb15c99f16d9d48b82351c to your computer and use it in GitHub Desktop.
Save shashyajoshi/31175ff70dfb15c99f16d9d48b82351c to your computer and use it in GitHub Desktop.
$ python code-samples/gcloud-python/start_stop_instances_labels_gcloud.py
Executing command "gcloud compute instances stop kube-master --zone us-central1-c --project sj-test-070418"
Stopping instance(s) kube-master...done.
Updated [https://www.googleapis.com/compute/v1/projects/sj-test-070418/zones/us-central1-c/instances/kube-master].
Executing command "gcloud compute instances stop db-server-1 --zone us-central1-c --project sj-test-070218"
Stopping instance(s) db-server-1...done.
Updated [https://www.googleapis.com/compute/v1/projects/sj-test-070218/zones/us-central1-c/instances/db-server-1].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment