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
- java.lang.Object
-
- com.google.api.services.compute.Compute.TargetInstances
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Compute.TargetInstances.AggregatedList
class
Compute.TargetInstances.Delete
class
Compute.TargetInstances.Get
class
Compute.TargetInstances.Insert
class
Compute.TargetInstances.List
class
Compute.TargetInstances.SetSecurityPolicy
-
Constructor Summary
Constructors
Constructor and Description
TargetInstances()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Compute.TargetInstances.AggregatedList
aggregatedList(String project)
Retrieves an aggregated list of target instances.
Compute.TargetInstances.Delete
delete(String project,
String zone,
String targetInstance)
Deletes the specified TargetInstance resource.
Compute.TargetInstances.Get
get(String project,
String zone,
String targetInstance)
Returns the specified TargetInstance resource.
Compute.TargetInstances.Insert
insert(String project,
String zone,
TargetInstance content)
Creates a TargetInstance resource in the specified project and zone using the data included in
the request.
Compute.TargetInstances.List
list(String project,
String zone)
Retrieves a list of TargetInstance resources available to the specified project and zone.
Compute.TargetInstances.SetSecurityPolicy
setSecurityPolicy(String project,
String zone,
String targetInstance,
SecurityPolicyReference content)
Sets the Google Cloud Armor security policy for the specified target instance.
-
-
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