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

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







Compute.InstanceGroupManagers.DeleteInstances (Compute Engine API v1-rev20200104-1.30.8)












com.google.api.services.compute

Class Compute.InstanceGroupManagers.DeleteInstances

    • Constructor Detail

      • DeleteInstances

        protected DeleteInstances(String project,
                                  String zone,
                                  String instanceGroupManager,
                                  InstanceGroupManagersDeleteInstancesRequest content)
        Flags the specified instances in the managed instance group for immediate deletion. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. This operation is marked as DONE when the action is scheduled even if the instances are still being deleted. You must separately verify the status of the deleting 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.deleteInstances". 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.

        DeleteInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleC lientRequest) 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 InstanceGroupManagersDeleteInstancesRequest
        Since:
        1.13

Copyright © 2011–2020 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy