tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getClbRedirections
Start a Neo task
Explain and create a tencentcloud.getClbRedirections resource
tencentcloud 1.82.35 published on Friday, Nov 7, 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",
sourceListenerId: "lbl-jc1dx6ju",
targetListenerId: "lbl-asj1hzuo",
sourceRuleId: "loc-ft8fmngv",
targetRuleId: "loc-4xxr2cy7",
resultOutputFile: "mytestpath",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.get_clb_redirections(clb_id="lb-p7olt9e5",
source_listener_id="lbl-jc1dx6ju",
target_listener_id="lbl-asj1hzuo",
source_rule_id="loc-ft8fmngv",
target_rule_id="loc-4xxr2cy7",
result_output_file="mytestpath")
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",
SourceListenerId: "lbl-jc1dx6ju",
TargetListenerId: pulumi.StringRef("lbl-asj1hzuo"),
SourceRuleId: "loc-ft8fmngv",
TargetRuleId: pulumi.StringRef("loc-4xxr2cy7"),
ResultOutputFile: pulumi.StringRef("mytestpath"),
}, 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",
SourceListenerId = "lbl-jc1dx6ju",
TargetListenerId = "lbl-asj1hzuo",
SourceRuleId = "loc-ft8fmngv",
TargetRuleId = "loc-4xxr2cy7",
ResultOutputFile = "mytestpath",
});
});
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")
.sourceListenerId("lbl-jc1dx6ju")
.targetListenerId("lbl-asj1hzuo")
.sourceRuleId("loc-ft8fmngv")
.targetRuleId("loc-4xxr2cy7")
.resultOutputFile("mytestpath")
.build());
}
}
variables:
foo:
fn::invoke:
function: tencentcloud:getClbRedirections
arguments:
clbId: lb-p7olt9e5
sourceListenerId: lbl-jc1dx6ju
targetListenerId: lbl-asj1hzuo
sourceRuleId: loc-ft8fmngv
targetRuleId: loc-4xxr2cy7
resultOutputFile: mytestpath
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:
- Clb
Id string - ID of the CLB to be queried.
- Source
Listener stringId - ID of source listener to be queried.
- Source
Rule stringId - Rule ID of source listener to be queried.
- Id string
- Result
Output stringFile - Used to save results.
- Target
Listener stringId - ID of target listener to be queried.
- Target
Rule stringId - Rule ID of target listener to be queried.
- Clb
Id string - ID of the CLB to be queried.
- Source
Listener stringId - ID of source listener to be queried.
- Source
Rule stringId - Rule ID of source listener to be queried.
- Id string
- Result
Output stringFile - Used to save results.
- Target
Listener stringId - ID of target listener to be queried.
- Target
Rule stringId - Rule ID of target listener to be queried.
- clb
Id String - ID of the CLB to be queried.
- source
Listener StringId - ID of source listener to be queried.
- source
Rule StringId - Rule ID of source listener to be queried.
- id String
- result
Output StringFile - Used to save results.
- target
Listener StringId - ID of target listener to be queried.
- target
Rule StringId - Rule ID of target listener to be queried.
- clb
Id string - ID of the CLB to be queried.
- source
Listener stringId - ID of source listener to be queried.
- source
Rule stringId - Rule ID of source listener to be queried.
- id string
- result
Output stringFile - Used to save results.
- target
Listener stringId - ID of target listener to be queried.
- target
Rule 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.
- clb
Id String - ID of the CLB to be queried.
- source
Listener StringId - ID of source listener to be queried.
- source
Rule StringId - Rule ID of source listener to be queried.
- id String
- result
Output StringFile - Used to save results.
- target
Listener StringId - ID of target listener to be queried.
- target
Rule StringId - Rule ID of target listener to be queried.
getClbRedirections Result
The following output properties are available:
- Clb
Id string - ID of the CLB.
- Id string
- Redirection
Lists List<GetClb Redirections Redirection List> - A list of cloud load balancer redirection configurations. Each element contains the following attributes:
- Source
Listener stringId - ID of source listener.
- Source
Rule stringId - Rule ID of source listener.
- Result
Output stringFile - Target
Listener stringId - ID of target listener.
- Target
Rule stringId - Rule ID of target listener.
- Clb
Id string - ID of the CLB.
- Id string
- Redirection
Lists []GetClb Redirections Redirection List - A list of cloud load balancer redirection configurations. Each element contains the following attributes:
- Source
Listener stringId - ID of source listener.
- Source
Rule stringId - Rule ID of source listener.
- Result
Output stringFile - Target
Listener stringId - ID of target listener.
- Target
Rule stringId - Rule ID of target listener.
- clb
Id String - ID of the CLB.
- id String
- redirection
Lists List<GetClb Redirections Redirection List> - A list of cloud load balancer redirection configurations. Each element contains the following attributes:
- source
Listener StringId - ID of source listener.
- source
Rule StringId - Rule ID of source listener.
- result
Output StringFile - target
Listener StringId - ID of target listener.
- target
Rule StringId - Rule ID of target listener.
- clb
Id string - ID of the CLB.
- id string
- redirection
Lists GetClb Redirections Redirection List[] - A list of cloud load balancer redirection configurations. Each element contains the following attributes:
- source
Listener stringId - ID of source listener.
- source
Rule stringId - Rule ID of source listener.
- result
Output stringFile - target
Listener stringId - ID of target listener.
- target
Rule 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.
- clb
Id String - ID of the CLB.
- id String
- redirection
Lists List<Property Map> - A list of cloud load balancer redirection configurations. Each element contains the following attributes:
- source
Listener StringId - ID of source listener.
- source
Rule StringId - Rule ID of source listener.
- result
Output StringFile - target
Listener StringId - ID of target listener.
- target
Rule StringId - Rule ID of target listener.
Supporting Types
GetClbRedirectionsRedirectionList
- Clb
Id string - ID of the CLB to be queried.
- Source
Listener stringId - ID of source listener to be queried.
- Source
Rule stringId - Rule ID of source listener to be queried.
- Target
Listener stringId - ID of target listener to be queried.
- Target
Rule stringId - Rule ID of target listener to be queried.
- Clb
Id string - ID of the CLB to be queried.
- Source
Listener stringId - ID of source listener to be queried.
- Source
Rule stringId - Rule ID of source listener to be queried.
- Target
Listener stringId - ID of target listener to be queried.
- Target
Rule stringId - Rule ID of target listener to be queried.
- clb
Id String - ID of the CLB to be queried.
- source
Listener StringId - ID of source listener to be queried.
- source
Rule StringId - Rule ID of source listener to be queried.
- target
Listener StringId - ID of target listener to be queried.
- target
Rule StringId - Rule ID of target listener to be queried.
- clb
Id string - ID of the CLB to be queried.
- source
Listener stringId - ID of source listener to be queried.
- source
Rule stringId - Rule ID of source listener to be queried.
- target
Listener stringId - ID of target listener to be queried.
- target
Rule 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.
- clb
Id String - ID of the CLB to be queried.
- source
Listener StringId - ID of source listener to be queried.
- source
Rule StringId - Rule ID of source listener to be queried.
- target
Listener StringId - ID of target listener to be queried.
- target
Rule 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.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
