TargetInstances
class TargetInstances extends Resource (View source)
The "targetInstances" collection of methods.
Typical usage is:
$computeService = new Google\Service\Compute(...);
$targetInstances = $computeService->targetInstances;
Methods
Retrieves an aggregated list of target instances. To prevent failure, Google
recommends that you set the returnPartialSuccess
parameter to true
.
Deletes the specified TargetInstance resource. (targetInstances.delete)
Returns the specified TargetInstance resource. (targetInstances.get)
Creates a TargetInstance resource in the specified project and zone using the data included in the request. (targetInstances.insert)
Retrieves a list of TargetInstance resources available to the specified project and zone. (targetInstances.listTargetInstances)
Sets the Google Cloud Armor security policy for the specified target instance. For more information, see Google Cloud Armor Overview (targetInstances.setSecurityPolicy)
Details
TargetInstanceAggregatedList
aggregatedList(string $project, array $optParams = [])
Retrieves an aggregated list of target instances. To prevent failure, Google
recommends that you set the returnPartialSuccess
parameter to true
.
(targetInstances.aggregatedList)
Operation
delete(string $project, string $zone, string $targetInstance, array $optParams = [])
Deletes the specified TargetInstance resource. (targetInstances.delete)
TargetInstance
get(string $project, string $zone, string $targetInstance, array $optParams = [])
Returns the specified TargetInstance resource. (targetInstances.get)
Operation
insert(string $project, string $zone, TargetInstance $postBody, array $optParams = [])
Creates a TargetInstance resource in the specified project and zone using the data included in the request. (targetInstances.insert)
TargetInstanceList
listTargetInstances(string $project, string $zone, array $optParams = [])
Retrieves a list of TargetInstance resources available to the specified project and zone. (targetInstances.listTargetInstances)
Operation
setSecurityPolicy(string $project, string $zone, string $targetInstance, SecurityPolicyReference $postBody, array $optParams = [])
Sets the Google Cloud Armor security policy for the specified target instance. For more information, see Google Cloud Armor Overview (targetInstances.setSecurityPolicy)