A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://cloud.google.com/compute/docs/instance-groups/manually-suspend-or-stop-vms-in-mig below:

Manually suspend or stop VMs in a MIG | Compute Engine Documentation

Manually suspend or stop VMs in a MIG

Stay organized with collections Save and categorize content based on your preferences.

This document explains how to suspend and stop virtual machine (VM) instances in a managed instance group (MIG), and how to resume their operation.

Before you begin Suspend specific VMs in a MIG

You can suspend a running VM in a MIG using the Google Cloud console, the Google Cloud CLI, or the Compute Engine API.

Console
  1. In the Google Cloud console, go to the Instance groups page.

    Go to the Instance groups page

  2. Click the instance group name where you want to suspend VMs.
  3. In the instance group Overview page, under VM instances, select all the VMs that you want to suspend.
  4. Click Suspend.
  5. In the confirmation dialog that appears, click Suspend to confirm.
gcloud

Use the instance-groups managed suspend-instances command.

gcloud compute instance-groups managed suspend-instances MIG_NAME \
  --instances=INSTANCE_NAME \
  [--region=REGION | --zone=ZONE]

Replace the following:

REST

Use the instanceGroupManager.suspendInstances method and specify the instances in the request body. For regional MIGs, use the regionInstanceGroupManager.suspendInstances method.

POST https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/instanceGroupManagers/MIG_NAME/suspendInstances

{
  "instances": [
    "INSTANCE_NAME_URL"
  ]
}

Replace the following:

Resume selected VMs in a MIG

You can resume a suspended VM in a MIG using the Google Cloud console, the gcloud CLI, or the Compute Engine API.

Console
  1. In the Google Cloud console, go to the Instance groups page.

    Go to the Instance groups page

  2. Click the instance group name where you want to resume VMs.
  3. In the instance group Overview page, under VM instances, select all the suspended VMs that you want to resume, then click Start/Resume.
gcloud

Use the instance-groups managed resume-instances command.

gcloud compute instance-groups managed resume-instances MIG_NAME \
  --instances=INSTANCE_NAME \
  [--region=REGION | --zone=ZONE]

Replace the following:

REST

Use the instanceGroupManager.resumeInstances method and specify the instances in the request body. For regional MIGs, use the regionInstanceGroupManager.resumeInstances method.

POST https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/instanceGroupManagers/MIG_NAME/resumeInstances

{
  "instances": [
    "INSTANCE_NAME_URL"
  ]
}

Replace the following:

Stop selected VMs in a MIG

You can stop a running VM in a MIG using the Google Cloud console, the Google Cloud CLI, or the Compute Engine API.

Console
  1. In the Google Cloud console, go to the Instance groups page.

    Go to the Instance groups page

  2. Click the instance group name where you want to stop VMs.
  3. In the instance group Overview page, under VM instances, select all the VMs that you want to stop, then click Stop. If there is no Stop option, click more_vert More actions > stop Stop.
  4. In the confirmation dialog that appears, click Stop to confirm.
gcloud

Use the instance-groups managed stop-instances command.

gcloud compute instance-groups managed stop-instances MIG_NAME \
  --instances=INSTANCE_NAME \
  [--region=REGION | --zone=ZONE]

Replace the following:

REST

Use the instanceGroupManager.stopInstances method and specify the instances in the request body. For regional MIGs, use the regionInstanceGroupManager.stopInstances method.

POST https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/instanceGroupManagers/MIG_NAME/stopInstances

{
  "instances": [
    "INSTANCE_NAME_URL"
  ]
}

Replace the following:

Start selected VMs in a MIG

You can start a stopped VM in a MIG using the Google Cloud console, the gcloud CLI, or the Compute Engine API.

Console
  1. In the Google Cloud console, go to the Instance groups page.

    Go to the Instance groups page

  2. Click the instance group name where you want to start VMs.
  3. In the instance group Overview page, under VM instances, select all the stopped VMs that you want to start, then click Start/Resume.
gcloud

Use the instance-groups managed start-instances command.

gcloud compute instance-groups managed start-instances MIG_NAME \
  --instances=INSTANCE_NAME \
  [--region=REGION | --zone=ZONE]

Replace the following:

REST

Use the instanceGroupManager.startInstances method and specify the instances in the request body. For regional MIGs, use the regionInstanceGroupManager.startInstances method.

POST https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/instanceGroupManagers/MIG_NAME/startInstances

{
  "instances": [
    "INSTANCE_NAME_URL"
  ]
}

Replace the following:

What's next

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-07 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["This guide provides instructions on how to suspend, stop, resume, and start virtual machines (VMs) within a managed instance group (MIG)."],["You can suspend or stop running VMs in a MIG using the Google Cloud console, the gcloud CLI, or the Compute Engine API, and resume or start them back."],["The gcloud CLI commands `suspend-instances`, `stop-instances`, `resume-instances`, and `start-instances` are used to manage VM states within a MIG."],["The Compute Engine API provides methods like `suspendInstances`, `stopInstances`, `resumeInstances`, and `startInstances` for managing VMs in MIGs, and the process differs depending if the MIG is regional or zonal."],["Authentication is required to interact with the Google Cloud Services and APIs, and the document provides instructions on setting it up, based on whether you are using the Console, gcloud CLI or REST API."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4