gce_vm_stop function

Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time.

Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time.

gce_vm_stop(instances, project = gce_get_global_project(), zone = gce_get_global_zone())

Arguments

  • instances: Names of the instance resource, or an instance object e.g. from gce_get_instance
  • project: Project ID for this request, default as set by gce_get_global_project
  • zone: The name of the zone for this request, default as set by gce_get_global_zone

Details

Authentication scopes used by this function are:

Stopped instances do not incur per-minute, virtual machine usage charges while they are stopped, but any resources that the virtual machine is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted.

See Also

Google Documentation