tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
tencentcloud.getClbRedirections
Explore with Pulumi AI
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
Use this data source to query detailed information of CLB redirections
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const foo = tencentcloud.getClbRedirections({
    clbId: "lb-p7olt9e5",
    resultOutputFile: "mytestpath",
    sourceListenerId: "lbl-jc1dx6ju",
    sourceRuleId: "loc-ft8fmngv",
    targetListenerId: "lbl-asj1hzuo",
    targetRuleId: "loc-4xxr2cy7",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.get_clb_redirections(clb_id="lb-p7olt9e5",
    result_output_file="mytestpath",
    source_listener_id="lbl-jc1dx6ju",
    source_rule_id="loc-ft8fmngv",
    target_listener_id="lbl-asj1hzuo",
    target_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.GetClbRedirections(ctx, &tencentcloud.GetClbRedirectionsArgs{
			ClbId:            "lb-p7olt9e5",
			ResultOutputFile: pulumi.StringRef("mytestpath"),
			SourceListenerId: "lbl-jc1dx6ju",
			SourceRuleId:     "loc-ft8fmngv",
			TargetListenerId: pulumi.StringRef("lbl-asj1hzuo"),
			TargetRuleId:     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 foo = Tencentcloud.GetClbRedirections.Invoke(new()
    {
        ClbId = "lb-p7olt9e5",
        ResultOutputFile = "mytestpath",
        SourceListenerId = "lbl-jc1dx6ju",
        SourceRuleId = "loc-ft8fmngv",
        TargetListenerId = "lbl-asj1hzuo",
        TargetRuleId = "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.GetClbRedirectionsArgs;
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 foo = TencentcloudFunctions.getClbRedirections(GetClbRedirectionsArgs.builder()
            .clbId("lb-p7olt9e5")
            .resultOutputFile("mytestpath")
            .sourceListenerId("lbl-jc1dx6ju")
            .sourceRuleId("loc-ft8fmngv")
            .targetListenerId("lbl-asj1hzuo")
            .targetRuleId("loc-4xxr2cy7")
            .build());
    }
}
variables:
  foo:
    fn::invoke:
      function: tencentcloud:getClbRedirections
      arguments:
        clbId: lb-p7olt9e5
        resultOutputFile: mytestpath
        sourceListenerId: lbl-jc1dx6ju
        sourceRuleId: loc-ft8fmngv
        targetListenerId: lbl-asj1hzuo
        targetRuleId: loc-4xxr2cy7
Using getClbRedirections
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 getClbRedirections(args: GetClbRedirectionsArgs, opts?: InvokeOptions): Promise<GetClbRedirectionsResult>
function getClbRedirectionsOutput(args: GetClbRedirectionsOutputArgs, opts?: InvokeOptions): Output<GetClbRedirectionsResult>def get_clb_redirections(clb_id: Optional[str] = None,
                         id: Optional[str] = None,
                         result_output_file: Optional[str] = None,
                         source_listener_id: Optional[str] = None,
                         source_rule_id: Optional[str] = None,
                         target_listener_id: Optional[str] = None,
                         target_rule_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetClbRedirectionsResult
def get_clb_redirections_output(clb_id: Optional[pulumi.Input[str]] = None,
                         id: Optional[pulumi.Input[str]] = None,
                         result_output_file: Optional[pulumi.Input[str]] = None,
                         source_listener_id: Optional[pulumi.Input[str]] = None,
                         source_rule_id: Optional[pulumi.Input[str]] = None,
                         target_listener_id: Optional[pulumi.Input[str]] = None,
                         target_rule_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetClbRedirectionsResult]func GetClbRedirections(ctx *Context, args *GetClbRedirectionsArgs, opts ...InvokeOption) (*GetClbRedirectionsResult, error)
func GetClbRedirectionsOutput(ctx *Context, args *GetClbRedirectionsOutputArgs, opts ...InvokeOption) GetClbRedirectionsResultOutput> Note: This function is named GetClbRedirections in the Go SDK.
public static class GetClbRedirections 
{
    public static Task<GetClbRedirectionsResult> InvokeAsync(GetClbRedirectionsArgs args, InvokeOptions? opts = null)
    public static Output<GetClbRedirectionsResult> Invoke(GetClbRedirectionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetClbRedirectionsResult> getClbRedirections(GetClbRedirectionsArgs args, InvokeOptions options)
public static Output<GetClbRedirectionsResult> getClbRedirections(GetClbRedirectionsArgs args, InvokeOptions options)
fn::invoke:
  function: tencentcloud:index/getClbRedirections:getClbRedirections
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ClbId string
- ID of the CLB to be queried.
- SourceListener stringId 
- ID of source listener to be queried.
- SourceRule stringId 
- Rule ID of source listener to be queried.
- Id string
- ResultOutput stringFile 
- Used to save results.
- TargetListener stringId 
- ID of target listener to be queried.
- TargetRule stringId 
- Rule ID of target listener to be queried.
- ClbId string
- ID of the CLB to be queried.
- SourceListener stringId 
- ID of source listener to be queried.
- SourceRule stringId 
- Rule ID of source listener to be queried.
- Id string
- ResultOutput stringFile 
- Used to save results.
- TargetListener stringId 
- ID of target listener to be queried.
- TargetRule stringId 
- Rule ID of target listener to be queried.
- clbId String
- ID of the CLB to be queried.
- sourceListener StringId 
- ID of source listener to be queried.
- sourceRule StringId 
- Rule ID of source listener to be queried.
- id String
- resultOutput StringFile 
- Used to save results.
- targetListener StringId 
- ID of target listener to be queried.
- targetRule StringId 
- Rule ID of target listener to be queried.
- clbId string
- ID of the CLB to be queried.
- sourceListener stringId 
- ID of source listener to be queried.
- sourceRule stringId 
- Rule ID of source listener to be queried.
- id string
- resultOutput stringFile 
- Used to save results.
- targetListener stringId 
- ID of target listener to be queried.
- targetRule stringId 
- Rule ID of target listener to be queried.
- clb_id str
- ID of the CLB to be queried.
- source_listener_ strid 
- ID of source listener to be queried.
- source_rule_ strid 
- Rule ID of source listener to be queried.
- id str
- result_output_ strfile 
- Used to save results.
- target_listener_ strid 
- ID of target listener to be queried.
- target_rule_ strid 
- Rule ID of target listener to be queried.
- clbId String
- ID of the CLB to be queried.
- sourceListener StringId 
- ID of source listener to be queried.
- sourceRule StringId 
- Rule ID of source listener to be queried.
- id String
- resultOutput StringFile 
- Used to save results.
- targetListener StringId 
- ID of target listener to be queried.
- targetRule StringId 
- Rule ID of target listener to be queried.
getClbRedirections Result
The following output properties are available:
- ClbId string
- ID of the CLB.
- Id string
- RedirectionLists List<GetClb Redirections Redirection List> 
- A list of cloud load balancer redirection configurations. Each element contains the following attributes:
- SourceListener stringId 
- ID of source listener.
- SourceRule stringId 
- Rule ID of source listener.
- ResultOutput stringFile 
- TargetListener stringId 
- ID of target listener.
- TargetRule stringId 
- Rule ID of target listener.
- ClbId string
- ID of the CLB.
- Id string
- RedirectionLists []GetClb Redirections Redirection List 
- A list of cloud load balancer redirection configurations. Each element contains the following attributes:
- SourceListener stringId 
- ID of source listener.
- SourceRule stringId 
- Rule ID of source listener.
- ResultOutput stringFile 
- TargetListener stringId 
- ID of target listener.
- TargetRule stringId 
- Rule ID of target listener.
- clbId String
- ID of the CLB.
- id String
- redirectionLists List<GetClb Redirections Redirection List> 
- A list of cloud load balancer redirection configurations. Each element contains the following attributes:
- sourceListener StringId 
- ID of source listener.
- sourceRule StringId 
- Rule ID of source listener.
- resultOutput StringFile 
- targetListener StringId 
- ID of target listener.
- targetRule StringId 
- Rule ID of target listener.
- clbId string
- ID of the CLB.
- id string
- redirectionLists GetClb Redirections Redirection List[] 
- A list of cloud load balancer redirection configurations. Each element contains the following attributes:
- sourceListener stringId 
- ID of source listener.
- sourceRule stringId 
- Rule ID of source listener.
- resultOutput stringFile 
- targetListener stringId 
- ID of target listener.
- targetRule stringId 
- Rule ID of target listener.
- clb_id str
- ID of the CLB.
- id str
- redirection_lists Sequence[GetClb Redirections Redirection List] 
- A list of cloud load balancer redirection configurations. Each element contains the following attributes:
- source_listener_ strid 
- ID of source listener.
- source_rule_ strid 
- Rule ID of source listener.
- result_output_ strfile 
- target_listener_ strid 
- ID of target listener.
- target_rule_ strid 
- Rule ID of target listener.
- clbId String
- ID of the CLB.
- id String
- redirectionLists List<Property Map>
- A list of cloud load balancer redirection configurations. Each element contains the following attributes:
- sourceListener StringId 
- ID of source listener.
- sourceRule StringId 
- Rule ID of source listener.
- resultOutput StringFile 
- targetListener StringId 
- ID of target listener.
- targetRule StringId 
- Rule ID of target listener.
Supporting Types
GetClbRedirectionsRedirectionList    
- ClbId string
- ID of the CLB to be queried.
- SourceListener stringId 
- ID of source listener to be queried.
- SourceRule stringId 
- Rule ID of source listener to be queried.
- TargetListener stringId 
- ID of target listener to be queried.
- TargetRule stringId 
- Rule ID of target listener to be queried.
- ClbId string
- ID of the CLB to be queried.
- SourceListener stringId 
- ID of source listener to be queried.
- SourceRule stringId 
- Rule ID of source listener to be queried.
- TargetListener stringId 
- ID of target listener to be queried.
- TargetRule stringId 
- Rule ID of target listener to be queried.
- clbId String
- ID of the CLB to be queried.
- sourceListener StringId 
- ID of source listener to be queried.
- sourceRule StringId 
- Rule ID of source listener to be queried.
- targetListener StringId 
- ID of target listener to be queried.
- targetRule StringId 
- Rule ID of target listener to be queried.
- clbId string
- ID of the CLB to be queried.
- sourceListener stringId 
- ID of source listener to be queried.
- sourceRule stringId 
- Rule ID of source listener to be queried.
- targetListener stringId 
- ID of target listener to be queried.
- targetRule stringId 
- Rule ID of target listener to be queried.
- clb_id str
- ID of the CLB to be queried.
- source_listener_ strid 
- ID of source listener to be queried.
- source_rule_ strid 
- Rule ID of source listener to be queried.
- target_listener_ strid 
- ID of target listener to be queried.
- target_rule_ strid 
- Rule ID of target listener to be queried.
- clbId String
- ID of the CLB to be queried.
- sourceListener StringId 
- ID of source listener to be queried.
- sourceRule StringId 
- Rule ID of source listener to be queried.
- targetListener StringId 
- ID of target listener to be queried.
- targetRule StringId 
- Rule ID of target listener to be queried.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the tencentcloudTerraform Provider.
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack