TargetPools
class TargetPools extends Resource (View source)
The "targetPools" collection of methods.
Typical usage is:
$computeService = new Google\Service\Compute(...);
$targetPools = $computeService->targetPools;
Methods
Adds health check URLs to a target pool. (targetPools.addHealthCheck)
Adds an instance to a target pool. (targetPools.addInstance)
Retrieves an aggregated list of target pools. To prevent failure, Google
recommends that you set the returnPartialSuccess
parameter to true
.
Deletes the specified target pool. (targetPools.delete)
Returns the specified target pool. (targetPools.get)
Gets the most recent health check results for each IP for the instance that is referenced by the given target pool. (targetPools.getHealth)
Creates a target pool in the specified project and region using the data included in the request. (targetPools.insert)
Retrieves a list of target pools available to the specified project and region. (targetPools.listTargetPools)
Removes health check URL from a target pool. (targetPools.removeHealthCheck)
Removes instance URL from a target pool. (targetPools.removeInstance)
Changes a backup target pool's configurations. (targetPools.setBackup)
Sets the Google Cloud Armor security policy for the specified target pool.
Details
Operation
addHealthCheck(string $project, string $region, string $targetPool, TargetPoolsAddHealthCheckRequest $postBody, array $optParams = [])
Adds health check URLs to a target pool. (targetPools.addHealthCheck)
Operation
addInstance(string $project, string $region, string $targetPool, TargetPoolsAddInstanceRequest $postBody, array $optParams = [])
Adds an instance to a target pool. (targetPools.addInstance)
TargetPoolAggregatedList
aggregatedList(string $project, array $optParams = [])
Retrieves an aggregated list of target pools. To prevent failure, Google
recommends that you set the returnPartialSuccess
parameter to true
.
(targetPools.aggregatedList)
Operation
delete(string $project, string $region, string $targetPool, array $optParams = [])
Deletes the specified target pool. (targetPools.delete)
TargetPool
get(string $project, string $region, string $targetPool, array $optParams = [])
Returns the specified target pool. (targetPools.get)
TargetPoolInstanceHealth
getHealth(string $project, string $region, string $targetPool, InstanceReference $postBody, array $optParams = [])
Gets the most recent health check results for each IP for the instance that is referenced by the given target pool. (targetPools.getHealth)
Operation
insert(string $project, string $region, TargetPool $postBody, array $optParams = [])
Creates a target pool in the specified project and region using the data included in the request. (targetPools.insert)
TargetPoolList
listTargetPools(string $project, string $region, array $optParams = [])
Retrieves a list of target pools available to the specified project and region. (targetPools.listTargetPools)
Operation
removeHealthCheck(string $project, string $region, string $targetPool, TargetPoolsRemoveHealthCheckRequest $postBody, array $optParams = [])
Removes health check URL from a target pool. (targetPools.removeHealthCheck)
Operation
removeInstance(string $project, string $region, string $targetPool, TargetPoolsRemoveInstanceRequest $postBody, array $optParams = [])
Removes instance URL from a target pool. (targetPools.removeInstance)
Operation
setBackup(string $project, string $region, string $targetPool, TargetReference $postBody, array $optParams = [])
Changes a backup target pool's configurations. (targetPools.setBackup)
Operation
setSecurityPolicy(string $project, string $region, string $targetPool, SecurityPolicyReference $postBody, array $optParams = [])
Sets the Google Cloud Armor security policy for the specified target pool.
For more information, see Google Cloud Armor Overview (targetPools.setSecurityPolicy)