1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getClbAttachments
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getClbAttachments

Explore with Pulumi AI

tencentcloud logo
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:

    ClbId string
    ID of the CLB to be queried.
    ListenerId string
    ID of the CLB listener to be queried.
    Id string
    ResultOutputFile string
    Used to save results.
    RuleId string
    ID of the CLB listener rule. If the protocol of listener is HTTP/HTTPS, this para is required.
    ClbId string
    ID of the CLB to be queried.
    ListenerId string
    ID of the CLB listener to be queried.
    Id string
    ResultOutputFile string
    Used to save results.
    RuleId string
    ID of the CLB listener rule. If the protocol of listener is HTTP/HTTPS, this para is required.
    clbId String
    ID of the CLB to be queried.
    listenerId String
    ID of the CLB listener to be queried.
    id String
    resultOutputFile String
    Used to save results.
    ruleId String
    ID of the CLB listener rule. If the protocol of listener is HTTP/HTTPS, this para is required.
    clbId string
    ID of the CLB to be queried.
    listenerId string
    ID of the CLB listener to be queried.
    id string
    resultOutputFile string
    Used to save results.
    ruleId 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_file str
    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.
    clbId String
    ID of the CLB to be queried.
    listenerId String
    ID of the CLB listener to be queried.
    id String
    resultOutputFile String
    Used to save results.
    ruleId 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:

    AttachmentLists List<GetClbAttachmentsAttachmentList>
    A list of cloud load balancer attachment configurations. Each element contains the following attributes:
    ClbId string
    ID of the CLB.
    Id string
    ListenerId string
    ID of the CLB listener.
    ResultOutputFile string
    RuleId string
    ID of the CLB listener rule.
    AttachmentLists []GetClbAttachmentsAttachmentList
    A list of cloud load balancer attachment configurations. Each element contains the following attributes:
    ClbId string
    ID of the CLB.
    Id string
    ListenerId string
    ID of the CLB listener.
    ResultOutputFile string
    RuleId string
    ID of the CLB listener rule.
    attachmentLists List<GetClbAttachmentsAttachmentList>
    A list of cloud load balancer attachment configurations. Each element contains the following attributes:
    clbId String
    ID of the CLB.
    id String
    listenerId String
    ID of the CLB listener.
    resultOutputFile String
    ruleId String
    ID of the CLB listener rule.
    attachmentLists GetClbAttachmentsAttachmentList[]
    A list of cloud load balancer attachment configurations. Each element contains the following attributes:
    clbId string
    ID of the CLB.
    id string
    listenerId string
    ID of the CLB listener.
    resultOutputFile string
    ruleId string
    ID of the CLB listener rule.
    attachment_lists Sequence[GetClbAttachmentsAttachmentList]
    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_file str
    rule_id str
    ID of the CLB listener rule.
    attachmentLists List<Property Map>
    A list of cloud load balancer attachment configurations. Each element contains the following attributes:
    clbId String
    ID of the CLB.
    id String
    listenerId String
    ID of the CLB listener.
    resultOutputFile String
    ruleId String
    ID of the CLB listener rule.

    Supporting Types

    GetClbAttachmentsAttachmentList

    ClbId string
    ID of the CLB to be queried.
    ListenerId string
    ID of the CLB listener to be queried.
    ProtocolType string
    Type of protocol within the listener, and available values include TCP, UDP, HTTP, HTTPS and TCP_SSL. NOTES: TCP_SSL is testing internally, please apply if you need to use.
    RuleId string
    ID of the CLB listener rule. If the protocol of listener is HTTP/HTTPS, this para is required.
    Targets List<GetClbAttachmentsAttachmentListTarget>
    Information of the backends to be attached.
    ClbId string
    ID of the CLB to be queried.
    ListenerId string
    ID of the CLB listener to be queried.
    ProtocolType string
    Type of protocol within the listener, and available values include TCP, UDP, HTTP, HTTPS and TCP_SSL. NOTES: TCP_SSL is testing internally, please apply if you need to use.
    RuleId string
    ID of the CLB listener rule. If the protocol of listener is HTTP/HTTPS, this para is required.
    Targets []GetClbAttachmentsAttachmentListTarget
    Information of the backends to be attached.
    clbId String
    ID of the CLB to be queried.
    listenerId String
    ID of the CLB listener to be queried.
    protocolType String
    Type of protocol within the listener, and available values include TCP, UDP, HTTP, HTTPS and TCP_SSL. NOTES: TCP_SSL is testing internally, please apply if you need to use.
    ruleId String
    ID of the CLB listener rule. If the protocol of listener is HTTP/HTTPS, this para is required.
    targets List<GetClbAttachmentsAttachmentListTarget>
    Information of the backends to be attached.
    clbId string
    ID of the CLB to be queried.
    listenerId string
    ID of the CLB listener to be queried.
    protocolType string
    Type of protocol within the listener, and available values include TCP, UDP, HTTP, HTTPS and TCP_SSL. NOTES: TCP_SSL is testing internally, please apply if you need to use.
    ruleId string
    ID of the CLB listener rule. If the protocol of listener is HTTP/HTTPS, this para is required.
    targets GetClbAttachmentsAttachmentListTarget[]
    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 and TCP_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[GetClbAttachmentsAttachmentListTarget]
    Information of the backends to be attached.
    clbId String
    ID of the CLB to be queried.
    listenerId String
    ID of the CLB listener to be queried.
    protocolType String
    Type of protocol within the listener, and available values include TCP, UDP, HTTP, HTTPS and TCP_SSL. NOTES: TCP_SSL is testing internally, please apply if you need to use.
    ruleId 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

    EniIp string
    Elastic network card unique ID.
    InstanceId 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.
    EniIp string
    Elastic network card unique ID.
    InstanceId 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.
    eniIp String
    Elastic network card unique ID.
    instanceId 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.
    eniIp string
    Elastic network card unique ID.
    instanceId 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.
    eniIp String
    Elastic network card unique ID.
    instanceId 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 logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack