tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getClbAttachments
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query detailed information of CLB attachments
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const clblab = tencentcloud.getClbAttachments({
clbId: "lb-k2zjp9lv",
listenerId: "lbl-hh141sn9",
ruleId: "loc-4xxr2cy7",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
clblab = tencentcloud.get_clb_attachments(clb_id="lb-k2zjp9lv",
listener_id="lbl-hh141sn9",
rule_id="loc-4xxr2cy7")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetClbAttachments(ctx, &tencentcloud.GetClbAttachmentsArgs{
ClbId: "lb-k2zjp9lv",
ListenerId: "lbl-hh141sn9",
RuleId: pulumi.StringRef("loc-4xxr2cy7"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var clblab = Tencentcloud.GetClbAttachments.Invoke(new()
{
ClbId = "lb-k2zjp9lv",
ListenerId = "lbl-hh141sn9",
RuleId = "loc-4xxr2cy7",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetClbAttachmentsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var clblab = TencentcloudFunctions.getClbAttachments(GetClbAttachmentsArgs.builder()
.clbId("lb-k2zjp9lv")
.listenerId("lbl-hh141sn9")
.ruleId("loc-4xxr2cy7")
.build());
}
}
variables:
clblab:
fn::invoke:
function: tencentcloud:getClbAttachments
arguments:
clbId: lb-k2zjp9lv
listenerId: lbl-hh141sn9
ruleId: loc-4xxr2cy7
Using getClbAttachments
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 getClbAttachments(args: GetClbAttachmentsArgs, opts?: InvokeOptions): Promise<GetClbAttachmentsResult>
function getClbAttachmentsOutput(args: GetClbAttachmentsOutputArgs, opts?: InvokeOptions): Output<GetClbAttachmentsResult>
def get_clb_attachments(clb_id: Optional[str] = None,
id: Optional[str] = None,
listener_id: Optional[str] = None,
result_output_file: Optional[str] = None,
rule_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetClbAttachmentsResult
def get_clb_attachments_output(clb_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
listener_id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
rule_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetClbAttachmentsResult]
func GetClbAttachments(ctx *Context, args *GetClbAttachmentsArgs, opts ...InvokeOption) (*GetClbAttachmentsResult, error)
func GetClbAttachmentsOutput(ctx *Context, args *GetClbAttachmentsOutputArgs, opts ...InvokeOption) GetClbAttachmentsResultOutput
> Note: This function is named GetClbAttachments
in the Go SDK.
public static class GetClbAttachments
{
public static Task<GetClbAttachmentsResult> InvokeAsync(GetClbAttachmentsArgs args, InvokeOptions? opts = null)
public static Output<GetClbAttachmentsResult> Invoke(GetClbAttachmentsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetClbAttachmentsResult> getClbAttachments(GetClbAttachmentsArgs args, InvokeOptions options)
public static Output<GetClbAttachmentsResult> getClbAttachments(GetClbAttachmentsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getClbAttachments:getClbAttachments
arguments:
# arguments dictionary
The following arguments are supported:
- Clb
Id string - ID of the CLB to be queried.
- Listener
Id string - ID of the CLB listener to be queried.
- Id string
- Result
Output stringFile - Used to save results.
- Rule
Id string - ID of the CLB listener rule. If the protocol of listener is
HTTP
/HTTPS
, this para is required.
- Clb
Id string - ID of the CLB to be queried.
- Listener
Id string - ID of the CLB listener to be queried.
- Id string
- Result
Output stringFile - Used to save results.
- Rule
Id string - ID of the CLB listener rule. If the protocol of listener is
HTTP
/HTTPS
, this para is required.
- clb
Id String - ID of the CLB to be queried.
- listener
Id String - ID of the CLB listener to be queried.
- id String
- result
Output StringFile - Used to save results.
- rule
Id String - ID of the CLB listener rule. If the protocol of listener is
HTTP
/HTTPS
, this para is required.
- clb
Id string - ID of the CLB to be queried.
- listener
Id string - ID of the CLB listener to be queried.
- id string
- result
Output stringFile - Used to save results.
- rule
Id string - ID of the CLB listener rule. If the protocol of listener is
HTTP
/HTTPS
, this para is required.
- clb_
id str - ID of the CLB to be queried.
- listener_
id str - ID of the CLB listener to be queried.
- id str
- result_
output_ strfile - Used to save results.
- rule_
id str - ID of the CLB listener rule. If the protocol of listener is
HTTP
/HTTPS
, this para is required.
- clb
Id String - ID of the CLB to be queried.
- listener
Id String - ID of the CLB listener to be queried.
- id String
- result
Output StringFile - Used to save results.
- rule
Id String - ID of the CLB listener rule. If the protocol of listener is
HTTP
/HTTPS
, this para is required.
getClbAttachments Result
The following output properties are available:
- Attachment
Lists List<GetClb Attachments Attachment List> - A list of cloud load balancer attachment configurations. Each element contains the following attributes:
- Clb
Id string - ID of the CLB.
- Id string
- Listener
Id string - ID of the CLB listener.
- Result
Output stringFile - Rule
Id string - ID of the CLB listener rule.
- Attachment
Lists []GetClb Attachments Attachment List - A list of cloud load balancer attachment configurations. Each element contains the following attributes:
- Clb
Id string - ID of the CLB.
- Id string
- Listener
Id string - ID of the CLB listener.
- Result
Output stringFile - Rule
Id string - ID of the CLB listener rule.
- attachment
Lists List<GetClb Attachments Attachment List> - A list of cloud load balancer attachment configurations. Each element contains the following attributes:
- clb
Id String - ID of the CLB.
- id String
- listener
Id String - ID of the CLB listener.
- result
Output StringFile - rule
Id String - ID of the CLB listener rule.
- attachment
Lists GetClb Attachments Attachment List[] - A list of cloud load balancer attachment configurations. Each element contains the following attributes:
- clb
Id string - ID of the CLB.
- id string
- listener
Id string - ID of the CLB listener.
- result
Output stringFile - rule
Id string - ID of the CLB listener rule.
- attachment_
lists Sequence[GetClb Attachments Attachment List] - A list of cloud load balancer attachment configurations. Each element contains the following attributes:
- clb_
id str - ID of the CLB.
- id str
- listener_
id str - ID of the CLB listener.
- result_
output_ strfile - rule_
id str - ID of the CLB listener rule.
- attachment
Lists List<Property Map> - A list of cloud load balancer attachment configurations. Each element contains the following attributes:
- clb
Id String - ID of the CLB.
- id String
- listener
Id String - ID of the CLB listener.
- result
Output StringFile - rule
Id String - ID of the CLB listener rule.
Supporting Types
GetClbAttachmentsAttachmentList
- Clb
Id string - ID of the CLB to be queried.
- Listener
Id string - ID of the CLB listener to be queried.
- Protocol
Type string - Type of protocol within the listener, and available values include
TCP
,UDP
,HTTP
,HTTPS
andTCP_SSL
. NOTES:TCP_SSL
is testing internally, please apply if you need to use. - Rule
Id string - ID of the CLB listener rule. If the protocol of listener is
HTTP
/HTTPS
, this para is required. - Targets
List<Get
Clb Attachments Attachment List Target> - Information of the backends to be attached.
- Clb
Id string - ID of the CLB to be queried.
- Listener
Id string - ID of the CLB listener to be queried.
- Protocol
Type string - Type of protocol within the listener, and available values include
TCP
,UDP
,HTTP
,HTTPS
andTCP_SSL
. NOTES:TCP_SSL
is testing internally, please apply if you need to use. - Rule
Id string - ID of the CLB listener rule. If the protocol of listener is
HTTP
/HTTPS
, this para is required. - Targets
[]Get
Clb Attachments Attachment List Target - Information of the backends to be attached.
- clb
Id String - ID of the CLB to be queried.
- listener
Id String - ID of the CLB listener to be queried.
- protocol
Type String - Type of protocol within the listener, and available values include
TCP
,UDP
,HTTP
,HTTPS
andTCP_SSL
. NOTES:TCP_SSL
is testing internally, please apply if you need to use. - rule
Id String - ID of the CLB listener rule. If the protocol of listener is
HTTP
/HTTPS
, this para is required. - targets
List<Get
Clb Attachments Attachment List Target> - Information of the backends to be attached.
- clb
Id string - ID of the CLB to be queried.
- listener
Id string - ID of the CLB listener to be queried.
- protocol
Type string - Type of protocol within the listener, and available values include
TCP
,UDP
,HTTP
,HTTPS
andTCP_SSL
. NOTES:TCP_SSL
is testing internally, please apply if you need to use. - rule
Id string - ID of the CLB listener rule. If the protocol of listener is
HTTP
/HTTPS
, this para is required. - targets
Get
Clb Attachments Attachment List Target[] - Information of the backends to be attached.
- clb_
id str - ID of the CLB to be queried.
- listener_
id str - ID of the CLB listener to be queried.
- protocol_
type str - Type of protocol within the listener, and available values include
TCP
,UDP
,HTTP
,HTTPS
andTCP_SSL
. NOTES:TCP_SSL
is testing internally, please apply if you need to use. - rule_
id str - ID of the CLB listener rule. If the protocol of listener is
HTTP
/HTTPS
, this para is required. - targets
Sequence[Get
Clb Attachments Attachment List Target] - Information of the backends to be attached.
- clb
Id String - ID of the CLB to be queried.
- listener
Id String - ID of the CLB listener to be queried.
- protocol
Type String - Type of protocol within the listener, and available values include
TCP
,UDP
,HTTP
,HTTPS
andTCP_SSL
. NOTES:TCP_SSL
is testing internally, please apply if you need to use. - rule
Id String - ID of the CLB listener rule. If the protocol of listener is
HTTP
/HTTPS
, this para is required. - targets List<Property Map>
- Information of the backends to be attached.
GetClbAttachmentsAttachmentListTarget
- Eni
Ip string - Elastic network card unique ID.
- Instance
Id string - Id of the backend server.
- Port double
- Port of the backend server.
- Weight double
- Forwarding weight of the backend service, the range of [0, 100], defaults to
10
.
- Eni
Ip string - Elastic network card unique ID.
- Instance
Id string - Id of the backend server.
- Port float64
- Port of the backend server.
- Weight float64
- Forwarding weight of the backend service, the range of [0, 100], defaults to
10
.
- eni
Ip String - Elastic network card unique ID.
- instance
Id String - Id of the backend server.
- port Double
- Port of the backend server.
- weight Double
- Forwarding weight of the backend service, the range of [0, 100], defaults to
10
.
- eni
Ip string - Elastic network card unique ID.
- instance
Id string - Id of the backend server.
- port number
- Port of the backend server.
- weight number
- Forwarding weight of the backend service, the range of [0, 100], defaults to
10
.
- eni_
ip str - Elastic network card unique ID.
- instance_
id str - Id of the backend server.
- port float
- Port of the backend server.
- weight float
- Forwarding weight of the backend service, the range of [0, 100], defaults to
10
.
- eni
Ip String - Elastic network card unique ID.
- instance
Id String - Id of the backend server.
- port Number
- Port of the backend server.
- weight Number
- Forwarding weight of the backend service, the range of [0, 100], defaults to
10
.
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