1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getClbRedirections
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.getClbRedirections

Explore with Pulumi AI

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",
});
Copy
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")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
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
Copy

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>
Copy
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]
Copy
func GetClbRedirections(ctx *Context, args *GetClbRedirectionsArgs, opts ...InvokeOption) (*GetClbRedirectionsResult, error)
func GetClbRedirectionsOutput(ctx *Context, args *GetClbRedirectionsOutputArgs, opts ...InvokeOption) GetClbRedirectionsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetClbRedirectionsResult> getClbRedirections(GetClbRedirectionsArgs args, InvokeOptions options)
public static Output<GetClbRedirectionsResult> getClbRedirections(GetClbRedirectionsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getClbRedirections:getClbRedirections
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ClbId This property is required. string
ID of the CLB to be queried.
SourceListenerId This property is required. string
ID of source listener to be queried.
SourceRuleId This property is required. string
Rule ID of source listener to be queried.
Id string
ResultOutputFile string
Used to save results.
TargetListenerId string
ID of target listener to be queried.
TargetRuleId string
Rule ID of target listener to be queried.
ClbId This property is required. string
ID of the CLB to be queried.
SourceListenerId This property is required. string
ID of source listener to be queried.
SourceRuleId This property is required. string
Rule ID of source listener to be queried.
Id string
ResultOutputFile string
Used to save results.
TargetListenerId string
ID of target listener to be queried.
TargetRuleId string
Rule ID of target listener to be queried.
clbId This property is required. String
ID of the CLB to be queried.
sourceListenerId This property is required. String
ID of source listener to be queried.
sourceRuleId This property is required. String
Rule ID of source listener to be queried.
id String
resultOutputFile String
Used to save results.
targetListenerId String
ID of target listener to be queried.
targetRuleId String
Rule ID of target listener to be queried.
clbId This property is required. string
ID of the CLB to be queried.
sourceListenerId This property is required. string
ID of source listener to be queried.
sourceRuleId This property is required. string
Rule ID of source listener to be queried.
id string
resultOutputFile string
Used to save results.
targetListenerId string
ID of target listener to be queried.
targetRuleId string
Rule ID of target listener to be queried.
clb_id This property is required. str
ID of the CLB to be queried.
source_listener_id This property is required. str
ID of source listener to be queried.
source_rule_id This property is required. str
Rule ID of source listener to be queried.
id str
result_output_file str
Used to save results.
target_listener_id str
ID of target listener to be queried.
target_rule_id str
Rule ID of target listener to be queried.
clbId This property is required. String
ID of the CLB to be queried.
sourceListenerId This property is required. String
ID of source listener to be queried.
sourceRuleId This property is required. String
Rule ID of source listener to be queried.
id String
resultOutputFile String
Used to save results.
targetListenerId String
ID of target listener to be queried.
targetRuleId String
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<GetClbRedirectionsRedirectionList>
A list of cloud load balancer redirection configurations. Each element contains the following attributes:
SourceListenerId string
ID of source listener.
SourceRuleId string
Rule ID of source listener.
ResultOutputFile string
TargetListenerId string
ID of target listener.
TargetRuleId string
Rule ID of target listener.
ClbId string
ID of the CLB.
Id string
RedirectionLists []GetClbRedirectionsRedirectionList
A list of cloud load balancer redirection configurations. Each element contains the following attributes:
SourceListenerId string
ID of source listener.
SourceRuleId string
Rule ID of source listener.
ResultOutputFile string
TargetListenerId string
ID of target listener.
TargetRuleId string
Rule ID of target listener.
clbId String
ID of the CLB.
id String
redirectionLists List<GetClbRedirectionsRedirectionList>
A list of cloud load balancer redirection configurations. Each element contains the following attributes:
sourceListenerId String
ID of source listener.
sourceRuleId String
Rule ID of source listener.
resultOutputFile String
targetListenerId String
ID of target listener.
targetRuleId String
Rule ID of target listener.
clbId string
ID of the CLB.
id string
redirectionLists GetClbRedirectionsRedirectionList[]
A list of cloud load balancer redirection configurations. Each element contains the following attributes:
sourceListenerId string
ID of source listener.
sourceRuleId string
Rule ID of source listener.
resultOutputFile string
targetListenerId string
ID of target listener.
targetRuleId string
Rule ID of target listener.
clb_id str
ID of the CLB.
id str
redirection_lists Sequence[GetClbRedirectionsRedirectionList]
A list of cloud load balancer redirection configurations. Each element contains the following attributes:
source_listener_id str
ID of source listener.
source_rule_id str
Rule ID of source listener.
result_output_file str
target_listener_id str
ID of target listener.
target_rule_id str
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:
sourceListenerId String
ID of source listener.
sourceRuleId String
Rule ID of source listener.
resultOutputFile String
targetListenerId String
ID of target listener.
targetRuleId String
Rule ID of target listener.

Supporting Types

GetClbRedirectionsRedirectionList

ClbId This property is required. string
ID of the CLB to be queried.
SourceListenerId This property is required. string
ID of source listener to be queried.
SourceRuleId This property is required. string
Rule ID of source listener to be queried.
TargetListenerId This property is required. string
ID of target listener to be queried.
TargetRuleId This property is required. string
Rule ID of target listener to be queried.
ClbId This property is required. string
ID of the CLB to be queried.
SourceListenerId This property is required. string
ID of source listener to be queried.
SourceRuleId This property is required. string
Rule ID of source listener to be queried.
TargetListenerId This property is required. string
ID of target listener to be queried.
TargetRuleId This property is required. string
Rule ID of target listener to be queried.
clbId This property is required. String
ID of the CLB to be queried.
sourceListenerId This property is required. String
ID of source listener to be queried.
sourceRuleId This property is required. String
Rule ID of source listener to be queried.
targetListenerId This property is required. String
ID of target listener to be queried.
targetRuleId This property is required. String
Rule ID of target listener to be queried.
clbId This property is required. string
ID of the CLB to be queried.
sourceListenerId This property is required. string
ID of source listener to be queried.
sourceRuleId This property is required. string
Rule ID of source listener to be queried.
targetListenerId This property is required. string
ID of target listener to be queried.
targetRuleId This property is required. string
Rule ID of target listener to be queried.
clb_id This property is required. str
ID of the CLB to be queried.
source_listener_id This property is required. str
ID of source listener to be queried.
source_rule_id This property is required. str
Rule ID of source listener to be queried.
target_listener_id This property is required. str
ID of target listener to be queried.
target_rule_id This property is required. str
Rule ID of target listener to be queried.
clbId This property is required. String
ID of the CLB to be queried.
sourceListenerId This property is required. String
ID of source listener to be queried.
sourceRuleId This property is required. String
Rule ID of source listener to be queried.
targetListenerId This property is required. String
ID of target listener to be queried.
targetRuleId This property is required. String
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 tencentcloud Terraform Provider.