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

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

The newest version!






Compute.TargetInstances (Compute Engine API v1-rev20250320-2.0.0)












com.google.api.services.compute

Class Compute.TargetInstances

  • Enclosing class:
    Compute


    public class Compute.TargetInstances
    extends Object
    The "targetInstances" collection of methods.
    • Constructor Detail

      • TargetInstances

        public TargetInstances()
    • Method Detail

      • aggregatedList

        public Compute.TargetInstances.AggregatedList aggregatedList(String project)
                                                              throws IOException
        Retrieves an aggregated list of target instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. Create a request for the method "targetInstances.aggregatedList". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        Returns:
        the request
        Throws:
        IOException
      • delete

        public Compute.TargetInstances.Delete delete(String project,
                                                     String zone,
                                                     String targetInstance)
                                              throws IOException
        Deletes the specified TargetInstance resource. Create a request for the method "targetInstances.delete". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        zone - Name of the zone scoping this request.
        targetInstance - Name of the TargetInstance resource to delete.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Compute.TargetInstances.Get get(String project,
                                               String zone,
                                               String targetInstance)
                                        throws IOException
        Returns the specified TargetInstance resource. Create a request for the method "targetInstances.get". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        zone - Name of the zone scoping this request.
        targetInstance - Name of the TargetInstance resource to return.
        Returns:
        the request
        Throws:
        IOException
      • insert

        public Compute.TargetInstances.Insert insert(String project,
                                                     String zone,
                                                     TargetInstance content)
                                              throws IOException
        Creates a TargetInstance resource in the specified project and zone using the data included in the request. Create a request for the method "targetInstances.insert". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        zone - Name of the zone scoping this request.
        content - the TargetInstance
        Returns:
        the request
        Throws:
        IOException
      • list

        public Compute.TargetInstances.List list(String project,
                                                 String zone)
                                          throws IOException
        Retrieves a list of TargetInstance resources available to the specified project and zone. Create a request for the method "targetInstances.list". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        zone - Name of the zone scoping this request.
        Returns:
        the request
        Throws:
        IOException
      • setSecurityPolicy

        public Compute.TargetInstances.SetSecurityPolicy setSecurityPolicy(String project,
                                                                           String zone,
                                                                           String targetInstance,
                                                                           SecurityPolicyReference content)
                                                                    throws IOException
        Sets the Google Cloud Armor security policy for the specified target instance. For more information, see Google Cloud Armor Overview Create a request for the method "targetInstances.setSecurityPolicy". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        zone - Name of the zone scoping this request.
        targetInstance - Name of the TargetInstance resource to which the security policy should be set. The name should conform to RFC1035.
        content - the SecurityPolicyReference
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2025 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy