tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getClbTargetGroups
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query target group information.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
clbBasic:
type: tencentcloud:ClbInstance
properties:
networkType: OPEN
clbName: tf-clb-rule-basic
listenerBasic:
type: tencentcloud:ClbListener
properties:
clbId: ${clbBasic.clbInstanceId}
port: 1
protocol: HTTP
listenerName: listener_basic
ruleBasic:
type: tencentcloud:ClbListenerRule
properties:
clbId: ${clbBasic.clbInstanceId}
listenerId: ${listenerBasic.listenerId}
domain: abc.com
url: /
sessionExpireTime: 30
scheduler: WRR
targetType: TARGETGROUP
test:
type: tencentcloud:ClbTargetGroup
properties:
targetGroupName: test-target-keep-1
group:
type: tencentcloud:ClbTargetGroupAttachment
properties:
clbId: ${clbBasic.clbInstanceId}
listenerId: ${listenerBasic.listenerId}
ruleId: ${ruleBasic.ruleId}
targrtGroupId: ${test.clbTargetGroupId}
variables:
targetGroupInfoId:
fn::invoke:
function: tencentcloud:getClbTargetGroups
arguments:
targetGroupId: ${test.clbTargetGroupId}
Using getClbTargetGroups
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getClbTargetGroups(args: GetClbTargetGroupsArgs, opts?: InvokeOptions): Promise<GetClbTargetGroupsResult>
function getClbTargetGroupsOutput(args: GetClbTargetGroupsOutputArgs, opts?: InvokeOptions): Output<GetClbTargetGroupsResult>
def get_clb_target_groups(id: Optional[str] = None,
result_output_file: Optional[str] = None,
target_group_id: Optional[str] = None,
target_group_name: Optional[str] = None,
vpc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetClbTargetGroupsResult
def get_clb_target_groups_output(id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
target_group_id: Optional[pulumi.Input[str]] = None,
target_group_name: Optional[pulumi.Input[str]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetClbTargetGroupsResult]
func GetClbTargetGroups(ctx *Context, args *GetClbTargetGroupsArgs, opts ...InvokeOption) (*GetClbTargetGroupsResult, error)
func GetClbTargetGroupsOutput(ctx *Context, args *GetClbTargetGroupsOutputArgs, opts ...InvokeOption) GetClbTargetGroupsResultOutput
> Note: This function is named GetClbTargetGroups
in the Go SDK.
public static class GetClbTargetGroups
{
public static Task<GetClbTargetGroupsResult> InvokeAsync(GetClbTargetGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetClbTargetGroupsResult> Invoke(GetClbTargetGroupsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetClbTargetGroupsResult> getClbTargetGroups(GetClbTargetGroupsArgs args, InvokeOptions options)
public static Output<GetClbTargetGroupsResult> getClbTargetGroups(GetClbTargetGroupsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getClbTargetGroups:getClbTargetGroups
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- Result
Output stringFile - Used to save results.
- Target
Group stringId - ID of Target group. Mutually exclusive with
vpc_id
andtarget_group_name
.target_group_id
is preferred. - Target
Group stringName - Name of target group. Mutually exclusive with
target_group_id
.target_group_id
is preferred. - Vpc
Id string - Target group VPC ID. Mutually exclusive with
target_group_id
.target_group_id
is preferred.
- Id string
- Result
Output stringFile - Used to save results.
- Target
Group stringId - ID of Target group. Mutually exclusive with
vpc_id
andtarget_group_name
.target_group_id
is preferred. - Target
Group stringName - Name of target group. Mutually exclusive with
target_group_id
.target_group_id
is preferred. - Vpc
Id string - Target group VPC ID. Mutually exclusive with
target_group_id
.target_group_id
is preferred.
- id String
- result
Output StringFile - Used to save results.
- target
Group StringId - ID of Target group. Mutually exclusive with
vpc_id
andtarget_group_name
.target_group_id
is preferred. - target
Group StringName - Name of target group. Mutually exclusive with
target_group_id
.target_group_id
is preferred. - vpc
Id String - Target group VPC ID. Mutually exclusive with
target_group_id
.target_group_id
is preferred.
- id string
- result
Output stringFile - Used to save results.
- target
Group stringId - ID of Target group. Mutually exclusive with
vpc_id
andtarget_group_name
.target_group_id
is preferred. - target
Group stringName - Name of target group. Mutually exclusive with
target_group_id
.target_group_id
is preferred. - vpc
Id string - Target group VPC ID. Mutually exclusive with
target_group_id
.target_group_id
is preferred.
- id str
- result_
output_ strfile - Used to save results.
- target_
group_ strid - ID of Target group. Mutually exclusive with
vpc_id
andtarget_group_name
.target_group_id
is preferred. - target_
group_ strname - Name of target group. Mutually exclusive with
target_group_id
.target_group_id
is preferred. - vpc_
id str - Target group VPC ID. Mutually exclusive with
target_group_id
.target_group_id
is preferred.
- id String
- result
Output StringFile - Used to save results.
- target
Group StringId - ID of Target group. Mutually exclusive with
vpc_id
andtarget_group_name
.target_group_id
is preferred. - target
Group StringName - Name of target group. Mutually exclusive with
target_group_id
.target_group_id
is preferred. - vpc
Id String - Target group VPC ID. Mutually exclusive with
target_group_id
.target_group_id
is preferred.
getClbTargetGroups Result
The following output properties are available:
- Id string
- Lists
List<Get
Clb Target Groups List> - Target group info list.
- Result
Output stringFile - Target
Group stringId - ID of Target group.
- Target
Group stringName - Target group VPC ID.
- Vpc
Id string - Name of target group.
- Id string
- Lists
[]Get
Clb Target Groups List - Target group info list.
- Result
Output stringFile - Target
Group stringId - ID of Target group.
- Target
Group stringName - Target group VPC ID.
- Vpc
Id string - Name of target group.
- id String
- lists
List<Get
Clb Target Groups List> - Target group info list.
- result
Output StringFile - target
Group StringId - ID of Target group.
- target
Group StringName - Target group VPC ID.
- vpc
Id String - Name of target group.
- id string
- lists
Get
Clb Target Groups List[] - Target group info list.
- result
Output stringFile - target
Group stringId - ID of Target group.
- target
Group stringName - Target group VPC ID.
- vpc
Id string - Name of target group.
- id str
- lists
Sequence[Get
Clb Target Groups List] - Target group info list.
- result_
output_ strfile - target_
group_ strid - ID of Target group.
- target_
group_ strname - Target group VPC ID.
- vpc_
id str - Name of target group.
- id String
- lists List<Property Map>
- Target group info list.
- result
Output StringFile - target
Group StringId - ID of Target group.
- target
Group StringName - Target group VPC ID.
- vpc
Id String - Name of target group.
Supporting Types
GetClbTargetGroupsList
- Associated
Rule List<GetLists Clb Target Groups List Associated Rule List> - List of associated rules.
- Create
Time string - Creation time of the target group.
- Port double
- Port of target group.
- Target
Group stringId - ID of Target group. Mutually exclusive with
vpc_id
andtarget_group_name
.target_group_id
is preferred. - Target
Group List<GetInstance Lists Clb Target Groups List Target Group Instance List> - List of backend servers bound to the target group.
- Target
Group stringName - Name of target group. Mutually exclusive with
target_group_id
.target_group_id
is preferred. - Update
Time string - Modification time of the target group.
- Vpc
Id string - Target group VPC ID. Mutually exclusive with
target_group_id
.target_group_id
is preferred.
- Associated
Rule []GetLists Clb Target Groups List Associated Rule List - List of associated rules.
- Create
Time string - Creation time of the target group.
- Port float64
- Port of target group.
- Target
Group stringId - ID of Target group. Mutually exclusive with
vpc_id
andtarget_group_name
.target_group_id
is preferred. - Target
Group []GetInstance Lists Clb Target Groups List Target Group Instance List - List of backend servers bound to the target group.
- Target
Group stringName - Name of target group. Mutually exclusive with
target_group_id
.target_group_id
is preferred. - Update
Time string - Modification time of the target group.
- Vpc
Id string - Target group VPC ID. Mutually exclusive with
target_group_id
.target_group_id
is preferred.
- associated
Rule List<GetLists Clb Target Groups List Associated Rule List> - List of associated rules.
- create
Time String - Creation time of the target group.
- port Double
- Port of target group.
- target
Group StringId - ID of Target group. Mutually exclusive with
vpc_id
andtarget_group_name
.target_group_id
is preferred. - target
Group List<GetInstance Lists Clb Target Groups List Target Group Instance List> - List of backend servers bound to the target group.
- target
Group StringName - Name of target group. Mutually exclusive with
target_group_id
.target_group_id
is preferred. - update
Time String - Modification time of the target group.
- vpc
Id String - Target group VPC ID. Mutually exclusive with
target_group_id
.target_group_id
is preferred.
- associated
Rule GetLists Clb Target Groups List Associated Rule List[] - List of associated rules.
- create
Time string - Creation time of the target group.
- port number
- Port of target group.
- target
Group stringId - ID of Target group. Mutually exclusive with
vpc_id
andtarget_group_name
.target_group_id
is preferred. - target
Group GetInstance Lists Clb Target Groups List Target Group Instance List[] - List of backend servers bound to the target group.
- target
Group stringName - Name of target group. Mutually exclusive with
target_group_id
.target_group_id
is preferred. - update
Time string - Modification time of the target group.
- vpc
Id string - Target group VPC ID. Mutually exclusive with
target_group_id
.target_group_id
is preferred.
- associated_
rule_ Sequence[Getlists Clb Target Groups List Associated Rule List] - List of associated rules.
- create_
time str - Creation time of the target group.
- port float
- Port of target group.
- target_
group_ strid - ID of Target group. Mutually exclusive with
vpc_id
andtarget_group_name
.target_group_id
is preferred. - target_
group_ Sequence[Getinstance_ lists Clb Target Groups List Target Group Instance List] - List of backend servers bound to the target group.
- target_
group_ strname - Name of target group. Mutually exclusive with
target_group_id
.target_group_id
is preferred. - update_
time str - Modification time of the target group.
- vpc_
id str - Target group VPC ID. Mutually exclusive with
target_group_id
.target_group_id
is preferred.
- associated
Rule List<Property Map>Lists - List of associated rules.
- create
Time String - Creation time of the target group.
- port Number
- Port of target group.
- target
Group StringId - ID of Target group. Mutually exclusive with
vpc_id
andtarget_group_name
.target_group_id
is preferred. - target
Group List<Property Map>Instance Lists - List of backend servers bound to the target group.
- target
Group StringName - Name of target group. Mutually exclusive with
target_group_id
.target_group_id
is preferred. - update
Time String - Modification time of the target group.
- vpc
Id String - Target group VPC ID. Mutually exclusive with
target_group_id
.target_group_id
is preferred.
GetClbTargetGroupsListAssociatedRuleList
- Domain string
- Forwarding rule domain.
- Listener
Id string - Listener ID.
- Listener
Name string - Listener name.
- Listener
Port double - Listener port.
- Load
Balancer stringId - Load balance ID.
- Load
Balancer stringName - Load balance name.
- Location
Id string - Forwarding rule ID.
- Protocol string
- Listener protocol type.
- Url string
- Forwarding rule URL.
- Domain string
- Forwarding rule domain.
- Listener
Id string - Listener ID.
- Listener
Name string - Listener name.
- Listener
Port float64 - Listener port.
- Load
Balancer stringId - Load balance ID.
- Load
Balancer stringName - Load balance name.
- Location
Id string - Forwarding rule ID.
- Protocol string
- Listener protocol type.
- Url string
- Forwarding rule URL.
- domain String
- Forwarding rule domain.
- listener
Id String - Listener ID.
- listener
Name String - Listener name.
- listener
Port Double - Listener port.
- load
Balancer StringId - Load balance ID.
- load
Balancer StringName - Load balance name.
- location
Id String - Forwarding rule ID.
- protocol String
- Listener protocol type.
- url String
- Forwarding rule URL.
- domain string
- Forwarding rule domain.
- listener
Id string - Listener ID.
- listener
Name string - Listener name.
- listener
Port number - Listener port.
- load
Balancer stringId - Load balance ID.
- load
Balancer stringName - Load balance name.
- location
Id string - Forwarding rule ID.
- protocol string
- Listener protocol type.
- url string
- Forwarding rule URL.
- domain str
- Forwarding rule domain.
- listener_
id str - Listener ID.
- listener_
name str - Listener name.
- listener_
port float - Listener port.
- load_
balancer_ strid - Load balance ID.
- load_
balancer_ strname - Load balance name.
- location_
id str - Forwarding rule ID.
- protocol str
- Listener protocol type.
- url str
- Forwarding rule URL.
- domain String
- Forwarding rule domain.
- listener
Id String - Listener ID.
- listener
Name String - Listener name.
- listener
Port Number - Listener port.
- load
Balancer StringId - Load balance ID.
- load
Balancer StringName - Load balance name.
- location
Id String - Forwarding rule ID.
- protocol String
- Listener protocol type.
- url String
- Forwarding rule URL.
GetClbTargetGroupsListTargetGroupInstanceList
- Eni
Id string - ID of Elastic Network Interface.
- Instance
Id string - ID of backend service.
- Instance
Name string - The instance name of the backend service.
- Private
Ip List<string>Addresses - Intranet IP list of back-end services.
- Public
Ip List<string>Addresses - List of external network IP of back-end services.
- Registered
Time string - The time the backend service was bound.
- Server
Port double - Port of backend service.
- Server
Type string - Type of backend service.
- Weight double
- Forwarding weight of back-end services.
- Eni
Id string - ID of Elastic Network Interface.
- Instance
Id string - ID of backend service.
- Instance
Name string - The instance name of the backend service.
- Private
Ip []stringAddresses - Intranet IP list of back-end services.
- Public
Ip []stringAddresses - List of external network IP of back-end services.
- Registered
Time string - The time the backend service was bound.
- Server
Port float64 - Port of backend service.
- Server
Type string - Type of backend service.
- Weight float64
- Forwarding weight of back-end services.
- eni
Id String - ID of Elastic Network Interface.
- instance
Id String - ID of backend service.
- instance
Name String - The instance name of the backend service.
- private
Ip List<String>Addresses - Intranet IP list of back-end services.
- public
Ip List<String>Addresses - List of external network IP of back-end services.
- registered
Time String - The time the backend service was bound.
- server
Port Double - Port of backend service.
- server
Type String - Type of backend service.
- weight Double
- Forwarding weight of back-end services.
- eni
Id string - ID of Elastic Network Interface.
- instance
Id string - ID of backend service.
- instance
Name string - The instance name of the backend service.
- private
Ip string[]Addresses - Intranet IP list of back-end services.
- public
Ip string[]Addresses - List of external network IP of back-end services.
- registered
Time string - The time the backend service was bound.
- server
Port number - Port of backend service.
- server
Type string - Type of backend service.
- weight number
- Forwarding weight of back-end services.
- eni_
id str - ID of Elastic Network Interface.
- instance_
id str - ID of backend service.
- instance_
name str - The instance name of the backend service.
- private_
ip_ Sequence[str]addresses - Intranet IP list of back-end services.
- public_
ip_ Sequence[str]addresses - List of external network IP of back-end services.
- registered_
time str - The time the backend service was bound.
- server_
port float - Port of backend service.
- server_
type str - Type of backend service.
- weight float
- Forwarding weight of back-end services.
- eni
Id String - ID of Elastic Network Interface.
- instance
Id String - ID of backend service.
- instance
Name String - The instance name of the backend service.
- private
Ip List<String>Addresses - Intranet IP list of back-end services.
- public
Ip List<String>Addresses - List of external network IP of back-end services.
- registered
Time String - The time the backend service was bound.
- server
Port Number - Port of backend service.
- server
Type String - Type of backend service.
- weight Number
- Forwarding weight of back-end services.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack