Class TargetPoolsResource
The "targetPools" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.alpha
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class TargetPoolsResource
Constructors
TargetPoolsResource(IClientService)
Constructs a new resource.
Declaration
public TargetPoolsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
AddHealthCheck(TargetPoolsAddHealthCheckRequest, string, string, string)
Adds health check URLs to a target pool.
Declaration
public virtual TargetPoolsResource.AddHealthCheckRequest AddHealthCheck(TargetPoolsAddHealthCheckRequest body, string project, string region, string targetPool)
Parameters
Type | Name | Description |
---|---|---|
TargetPoolsAddHealthCheckRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | region | Name of the region scoping this request. |
string | targetPool | Name of the target pool to add a health check to. |
Returns
Type | Description |
---|---|
TargetPoolsResource.AddHealthCheckRequest |
AddInstance(TargetPoolsAddInstanceRequest, string, string, string)
Adds an instance to a target pool.
Declaration
public virtual TargetPoolsResource.AddInstanceRequest AddInstance(TargetPoolsAddInstanceRequest body, string project, string region, string targetPool)
Parameters
Type | Name | Description |
---|---|---|
TargetPoolsAddInstanceRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | region | Name of the region scoping this request. |
string | targetPool | Name of the TargetPool resource to add instances to. |
Returns
Type | Description |
---|---|
TargetPoolsResource.AddInstanceRequest |
AggregatedList(string)
Retrieves an aggregated list of target pools. To prevent failure, Google recommends that you set the
returnPartialSuccess
parameter to true
.
Declaration
public virtual TargetPoolsResource.AggregatedListRequest AggregatedList(string project)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
TargetPoolsResource.AggregatedListRequest |
Delete(string, string, string)
Deletes the specified target pool.
Declaration
public virtual TargetPoolsResource.DeleteRequest Delete(string project, string region, string targetPool)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | region | Name of the region scoping this request. |
string | targetPool | Name of the TargetPool resource to delete. |
Returns
Type | Description |
---|---|
TargetPoolsResource.DeleteRequest |
Get(string, string, string)
Returns the specified target pool.
Declaration
public virtual TargetPoolsResource.GetRequest Get(string project, string region, string targetPool)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | region | Name of the region scoping this request. |
string | targetPool | Name of the TargetPool resource to return. |
Returns
Type | Description |
---|---|
TargetPoolsResource.GetRequest |
GetHealth(InstanceReference, string, string, string)
Gets the most recent health check results for each IP for the instance that is referenced by the given target pool.
Declaration
public virtual TargetPoolsResource.GetHealthRequest GetHealth(InstanceReference body, string project, string region, string targetPool)
Parameters
Type | Name | Description |
---|---|---|
InstanceReference | body | The body of the request. |
string | project | Project ID for this request. |
string | region | Name of the region scoping this request. |
string | targetPool | Name of the TargetPool resource to which the queried instance belongs. |
Returns
Type | Description |
---|---|
TargetPoolsResource.GetHealthRequest |
Insert(TargetPool, string, string)
Creates a target pool in the specified project and region using the data included in the request.
Declaration
public virtual TargetPoolsResource.InsertRequest Insert(TargetPool body, string project, string region)
Parameters
Type | Name | Description |
---|---|---|
TargetPool | body | The body of the request. |
string | project | Project ID for this request. |
string | region | Name of the region scoping this request. |
Returns
Type | Description |
---|---|
TargetPoolsResource.InsertRequest |
List(string, string)
Retrieves a list of target pools available to the specified project and region.
Declaration
public virtual TargetPoolsResource.ListRequest List(string project, string region)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | region | Name of the region scoping this request. |
Returns
Type | Description |
---|---|
TargetPoolsResource.ListRequest |
RemoveHealthCheck(TargetPoolsRemoveHealthCheckRequest, string, string, string)
Removes health check URL from a target pool.
Declaration
public virtual TargetPoolsResource.RemoveHealthCheckRequest RemoveHealthCheck(TargetPoolsRemoveHealthCheckRequest body, string project, string region, string targetPool)
Parameters
Type | Name | Description |
---|---|---|
TargetPoolsRemoveHealthCheckRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
string | targetPool | Name of the target pool to remove health checks from. |
Returns
Type | Description |
---|---|
TargetPoolsResource.RemoveHealthCheckRequest |
RemoveInstance(TargetPoolsRemoveInstanceRequest, string, string, string)
Removes instance URL from a target pool.
Declaration
public virtual TargetPoolsResource.RemoveInstanceRequest RemoveInstance(TargetPoolsRemoveInstanceRequest body, string project, string region, string targetPool)
Parameters
Type | Name | Description |
---|---|---|
TargetPoolsRemoveInstanceRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | region | Name of the region scoping this request. |
string | targetPool | Name of the TargetPool resource to remove instances from. |
Returns
Type | Description |
---|---|
TargetPoolsResource.RemoveInstanceRequest |
SetBackup(TargetReference, string, string, string)
Changes a backup target pool's configurations.
Declaration
public virtual TargetPoolsResource.SetBackupRequest SetBackup(TargetReference body, string project, string region, string targetPool)
Parameters
Type | Name | Description |
---|---|---|
TargetReference | body | The body of the request. |
string | project | Project ID for this request. |
string | region | Name of the region scoping this request. |
string | targetPool | Name of the TargetPool resource to set a backup pool for. |
Returns
Type | Description |
---|---|
TargetPoolsResource.SetBackupRequest |
SetSecurityPolicy(SecurityPolicyReference, string, string, string)
Sets the Google Cloud Armor security policy for the specified target pool. For more information, see Google Cloud Armor Overview
Declaration
public virtual TargetPoolsResource.SetSecurityPolicyRequest SetSecurityPolicy(SecurityPolicyReference body, string project, string region, string targetPool)
Parameters
Type | Name | Description |
---|---|---|
SecurityPolicyReference | body | The body of the request. |
string | project | Project ID for this request. |
string | region | Name of the region scoping this request. |
string | targetPool | Name of the TargetPool resource to which the security policy should be set. The name should conform to RFC1035. |
Returns
Type | Description |
---|---|
TargetPoolsResource.SetSecurityPolicyRequest |
TestIamPermissions(TestPermissionsRequest, string, string, string)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual TargetPoolsResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string region, string resource)
Parameters
Type | Name | Description |
---|---|---|
TestPermissionsRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | region | The name of the region for this request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
TargetPoolsResource.TestIamPermissionsRequest |