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

target.apidocs.com.google.api.services.compute.Compute.InstanceGroupManagers.AbandonInstances.html Maven / Gradle / Ivy







Compute.InstanceGroupManagers.AbandonInstances (Compute Engine API alpha-rev20200526-1.30.9)












com.google.api.services.compute

Class Compute.InstanceGroupManagers.AbandonInstances

    • Constructor Detail

      • AbandonInstances

        protected AbandonInstances(String project,
                                   String zone,
                                   String instanceGroupManager,
                                   InstanceGroupManagersAbandonInstancesRequest content)
        Flags the specified instances to be removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request. Create a request for the method "instanceGroupManagers.abandonInstances". 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.

        AbandonInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogle ClientRequest) 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 where the managed instance group is located.
        instanceGroupManager - The name of the managed instance group.
        content - the InstanceGroupManagersAbandonInstancesRequest
        Since:
        1.13

Copyright © 2011–2020 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy