All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.compute.Compute.Instances.Suspend.html Maven / Gradle / Ivy

The newest version!






Compute.Instances.Suspend (Compute Engine API v1-rev20250320-2.0.0)












com.google.api.services.compute

Class Compute.Instances.Suspend

    • Constructor Detail

      • Suspend

        protected Suspend(String project,
                          String zone,
                          String instance)
        This method suspends a running instance, saving its state to persistent storage, and allows you to resume the instance at a later time. Suspended instances have no compute costs (cores or RAM), and incur only storage charges for the saved VM memory and localSSD data. Any charged resources the virtual machine was using, such as persistent disks and static IP addresses, will continue to be charged while the instance is suspended. For more information, see Suspending and resuming an instance. Create a request for the method "instances.suspend". This request holds the parameters needed by the the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

        Compute.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be called to initialize this instance immediately after invoking the constructor.

        Parameters:
        project - Project ID for this request.
        zone - The name of the zone for this request.
        instance - Name of the instance resource to suspend.
        Since:
        1.13

Copyright © 2011–2025 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy