published on Monday, May 11, 2026 by tencentcloudstack
published on Monday, May 11, 2026 by tencentcloudstack
Provides a resource to create a CLB redirection.
Example Usage
Manual Rewrite
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.ClbRedirection("example", {
clbId: "lb-ab09jtd2",
sourceListenerId: "lbl-qgtfowas",
targetListenerId: "lbl-lpwdkukk",
sourceRuleId: "loc-liz99mtg",
targetRuleId: "loc-4f53xn52",
rewriteCode: 307,
takeUrl: true,
sourceDomian: "www.demo.com",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.ClbRedirection("example",
clb_id="lb-ab09jtd2",
source_listener_id="lbl-qgtfowas",
target_listener_id="lbl-lpwdkukk",
source_rule_id="loc-liz99mtg",
target_rule_id="loc-4f53xn52",
rewrite_code=307,
take_url=True,
source_domian="www.demo.com")
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.NewClbRedirection(ctx, "example", &tencentcloud.ClbRedirectionArgs{
ClbId: pulumi.String("lb-ab09jtd2"),
SourceListenerId: pulumi.String("lbl-qgtfowas"),
TargetListenerId: pulumi.String("lbl-lpwdkukk"),
SourceRuleId: pulumi.String("loc-liz99mtg"),
TargetRuleId: pulumi.String("loc-4f53xn52"),
RewriteCode: pulumi.Float64(307),
TakeUrl: pulumi.Bool(true),
SourceDomian: pulumi.String("www.demo.com"),
})
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 example = new Tencentcloud.ClbRedirection("example", new()
{
ClbId = "lb-ab09jtd2",
SourceListenerId = "lbl-qgtfowas",
TargetListenerId = "lbl-lpwdkukk",
SourceRuleId = "loc-liz99mtg",
TargetRuleId = "loc-4f53xn52",
RewriteCode = 307,
TakeUrl = true,
SourceDomian = "www.demo.com",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ClbRedirection;
import com.pulumi.tencentcloud.ClbRedirectionArgs;
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) {
var example = new ClbRedirection("example", ClbRedirectionArgs.builder()
.clbId("lb-ab09jtd2")
.sourceListenerId("lbl-qgtfowas")
.targetListenerId("lbl-lpwdkukk")
.sourceRuleId("loc-liz99mtg")
.targetRuleId("loc-4f53xn52")
.rewriteCode(307.0)
.takeUrl(true)
.sourceDomian("www.demo.com")
.build());
}
}
resources:
example:
type: tencentcloud:ClbRedirection
properties:
clbId: lb-ab09jtd2
sourceListenerId: lbl-qgtfowas
targetListenerId: lbl-lpwdkukk
sourceRuleId: loc-liz99mtg
targetRuleId: loc-4f53xn52
rewriteCode: 307
takeUrl: true
sourceDomian: www.demo.com
Example coming soon!
Auto Rewrite
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.ClbRedirection("example", {
clbId: "lb-ab09jtd2",
targetListenerId: "lbl-l7550kum",
targetRuleId: "loc-op7uz010",
isAutoRewrite: true,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.ClbRedirection("example",
clb_id="lb-ab09jtd2",
target_listener_id="lbl-l7550kum",
target_rule_id="loc-op7uz010",
is_auto_rewrite=True)
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.NewClbRedirection(ctx, "example", &tencentcloud.ClbRedirectionArgs{
ClbId: pulumi.String("lb-ab09jtd2"),
TargetListenerId: pulumi.String("lbl-l7550kum"),
TargetRuleId: pulumi.String("loc-op7uz010"),
IsAutoRewrite: pulumi.Bool(true),
})
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 example = new Tencentcloud.ClbRedirection("example", new()
{
ClbId = "lb-ab09jtd2",
TargetListenerId = "lbl-l7550kum",
TargetRuleId = "loc-op7uz010",
IsAutoRewrite = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ClbRedirection;
import com.pulumi.tencentcloud.ClbRedirectionArgs;
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) {
var example = new ClbRedirection("example", ClbRedirectionArgs.builder()
.clbId("lb-ab09jtd2")
.targetListenerId("lbl-l7550kum")
.targetRuleId("loc-op7uz010")
.isAutoRewrite(true)
.build());
}
}
resources:
example:
type: tencentcloud:ClbRedirection
properties:
clbId: lb-ab09jtd2
targetListenerId: lbl-l7550kum
targetRuleId: loc-op7uz010
isAutoRewrite: true
Example coming soon!
Create ClbRedirection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClbRedirection(name: string, args: ClbRedirectionArgs, opts?: CustomResourceOptions);@overload
def ClbRedirection(resource_name: str,
args: ClbRedirectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ClbRedirection(resource_name: str,
opts: Optional[ResourceOptions] = None,
clb_id: Optional[str] = None,
target_listener_id: Optional[str] = None,
target_rule_id: Optional[str] = None,
clb_redirection_id: Optional[str] = None,
delete_all_auto_rewrite: Optional[bool] = None,
is_auto_rewrite: Optional[bool] = None,
rewrite_code: Optional[float] = None,
source_domian: Optional[str] = None,
source_listener_id: Optional[str] = None,
source_rule_id: Optional[str] = None,
take_url: Optional[bool] = None)func NewClbRedirection(ctx *Context, name string, args ClbRedirectionArgs, opts ...ResourceOption) (*ClbRedirection, error)public ClbRedirection(string name, ClbRedirectionArgs args, CustomResourceOptions? opts = null)
public ClbRedirection(String name, ClbRedirectionArgs args)
public ClbRedirection(String name, ClbRedirectionArgs args, CustomResourceOptions options)
type: tencentcloud:ClbRedirection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_clbredirection" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ClbRedirectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ClbRedirectionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ClbRedirectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClbRedirectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClbRedirectionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ClbRedirection Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ClbRedirection resource accepts the following input properties:
- Clb
Id string - ID of CLB instance.
- Target
Listener stringId - ID of source listener.
- Target
Rule stringId - Rule ID of target listener.
- Clb
Redirection stringId - ID of the resource.
- Delete
All boolAuto Rewrite - Indicates whether delete all auto redirection. Default is
false. It will take effect only when this redirection is auto-rewrite and this auto-rewrite auto redirected more than one rules. All the auto-rewrite relations will be deleted when this parameter set true. - Is
Auto boolRewrite - Indicates whether automatic forwarding is enable, default is
false. If enabled, the source listener and location should be empty, the target listener must be https protocol and port is 443. - Rewrite
Code double - Redirection status codes, with possible values of
301,302,307. - Source
Domian string - The domain name for source forwarding must be the domain name corresponding to
source_rule_id, which is required when configuringrewrite_code. Only supportis_auto_rewriteisfalse. - Source
Listener stringId - ID of source listener.
- Source
Rule stringId - Rule ID of source listener.
- Take
Url bool - Whether the redirect carries a matching URL is required when configuring
rewrite_code.
- Clb
Id string - ID of CLB instance.
- Target
Listener stringId - ID of source listener.
- Target
Rule stringId - Rule ID of target listener.
- Clb
Redirection stringId - ID of the resource.
- Delete
All boolAuto Rewrite - Indicates whether delete all auto redirection. Default is
false. It will take effect only when this redirection is auto-rewrite and this auto-rewrite auto redirected more than one rules. All the auto-rewrite relations will be deleted when this parameter set true. - Is
Auto boolRewrite - Indicates whether automatic forwarding is enable, default is
false. If enabled, the source listener and location should be empty, the target listener must be https protocol and port is 443. - Rewrite
Code float64 - Redirection status codes, with possible values of
301,302,307. - Source
Domian string - The domain name for source forwarding must be the domain name corresponding to
source_rule_id, which is required when configuringrewrite_code. Only supportis_auto_rewriteisfalse. - Source
Listener stringId - ID of source listener.
- Source
Rule stringId - Rule ID of source listener.
- Take
Url bool - Whether the redirect carries a matching URL is required when configuring
rewrite_code.
- clb_
id string - ID of CLB instance.
- target_
listener_ stringid - ID of source listener.
- target_
rule_ stringid - Rule ID of target listener.
- clb_
redirection_ stringid - ID of the resource.
- delete_
all_ boolauto_ rewrite - Indicates whether delete all auto redirection. Default is
false. It will take effect only when this redirection is auto-rewrite and this auto-rewrite auto redirected more than one rules. All the auto-rewrite relations will be deleted when this parameter set true. - is_
auto_ boolrewrite - Indicates whether automatic forwarding is enable, default is
false. If enabled, the source listener and location should be empty, the target listener must be https protocol and port is 443. - rewrite_
code number - Redirection status codes, with possible values of
301,302,307. - source_
domian string - The domain name for source forwarding must be the domain name corresponding to
source_rule_id, which is required when configuringrewrite_code. Only supportis_auto_rewriteisfalse. - source_
listener_ stringid - ID of source listener.
- source_
rule_ stringid - Rule ID of source listener.
- take_
url bool - Whether the redirect carries a matching URL is required when configuring
rewrite_code.
- clb
Id String - ID of CLB instance.
- target
Listener StringId - ID of source listener.
- target
Rule StringId - Rule ID of target listener.
- clb
Redirection StringId - ID of the resource.
- delete
All BooleanAuto Rewrite - Indicates whether delete all auto redirection. Default is
false. It will take effect only when this redirection is auto-rewrite and this auto-rewrite auto redirected more than one rules. All the auto-rewrite relations will be deleted when this parameter set true. - is
Auto BooleanRewrite - Indicates whether automatic forwarding is enable, default is
false. If enabled, the source listener and location should be empty, the target listener must be https protocol and port is 443. - rewrite
Code Double - Redirection status codes, with possible values of
301,302,307. - source
Domian String - The domain name for source forwarding must be the domain name corresponding to
source_rule_id, which is required when configuringrewrite_code. Only supportis_auto_rewriteisfalse. - source
Listener StringId - ID of source listener.
- source
Rule StringId - Rule ID of source listener.
- take
Url Boolean - Whether the redirect carries a matching URL is required when configuring
rewrite_code.
- clb
Id string - ID of CLB instance.
- target
Listener stringId - ID of source listener.
- target
Rule stringId - Rule ID of target listener.
- clb
Redirection stringId - ID of the resource.
- delete
All booleanAuto Rewrite - Indicates whether delete all auto redirection. Default is
false. It will take effect only when this redirection is auto-rewrite and this auto-rewrite auto redirected more than one rules. All the auto-rewrite relations will be deleted when this parameter set true. - is
Auto booleanRewrite - Indicates whether automatic forwarding is enable, default is
false. If enabled, the source listener and location should be empty, the target listener must be https protocol and port is 443. - rewrite
Code number - Redirection status codes, with possible values of
301,302,307. - source
Domian string - The domain name for source forwarding must be the domain name corresponding to
source_rule_id, which is required when configuringrewrite_code. Only supportis_auto_rewriteisfalse. - source
Listener stringId - ID of source listener.
- source
Rule stringId - Rule ID of source listener.
- take
Url boolean - Whether the redirect carries a matching URL is required when configuring
rewrite_code.
- clb_
id str - ID of CLB instance.
- target_
listener_ strid - ID of source listener.
- target_
rule_ strid - Rule ID of target listener.
- clb_
redirection_ strid - ID of the resource.
- delete_
all_ boolauto_ rewrite - Indicates whether delete all auto redirection. Default is
false. It will take effect only when this redirection is auto-rewrite and this auto-rewrite auto redirected more than one rules. All the auto-rewrite relations will be deleted when this parameter set true. - is_
auto_ boolrewrite - Indicates whether automatic forwarding is enable, default is
false. If enabled, the source listener and location should be empty, the target listener must be https protocol and port is 443. - rewrite_
code float - Redirection status codes, with possible values of
301,302,307. - source_
domian str - The domain name for source forwarding must be the domain name corresponding to
source_rule_id, which is required when configuringrewrite_code. Only supportis_auto_rewriteisfalse. - source_
listener_ strid - ID of source listener.
- source_
rule_ strid - Rule ID of source listener.
- take_
url bool - Whether the redirect carries a matching URL is required when configuring
rewrite_code.
- clb
Id String - ID of CLB instance.
- target
Listener StringId - ID of source listener.
- target
Rule StringId - Rule ID of target listener.
- clb
Redirection StringId - ID of the resource.
- delete
All BooleanAuto Rewrite - Indicates whether delete all auto redirection. Default is
false. It will take effect only when this redirection is auto-rewrite and this auto-rewrite auto redirected more than one rules. All the auto-rewrite relations will be deleted when this parameter set true. - is
Auto BooleanRewrite - Indicates whether automatic forwarding is enable, default is
false. If enabled, the source listener and location should be empty, the target listener must be https protocol and port is 443. - rewrite
Code Number - Redirection status codes, with possible values of
301,302,307. - source
Domian String - The domain name for source forwarding must be the domain name corresponding to
source_rule_id, which is required when configuringrewrite_code. Only supportis_auto_rewriteisfalse. - source
Listener StringId - ID of source listener.
- source
Rule StringId - Rule ID of source listener.
- take
Url Boolean - Whether the redirect carries a matching URL is required when configuring
rewrite_code.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClbRedirection resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ClbRedirection Resource
Get an existing ClbRedirection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ClbRedirectionState, opts?: CustomResourceOptions): ClbRedirection@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
clb_id: Optional[str] = None,
clb_redirection_id: Optional[str] = None,
delete_all_auto_rewrite: Optional[bool] = None,
is_auto_rewrite: Optional[bool] = None,
rewrite_code: Optional[float] = None,
source_domian: Optional[str] = None,
source_listener_id: Optional[str] = None,
source_rule_id: Optional[str] = None,
take_url: Optional[bool] = None,
target_listener_id: Optional[str] = None,
target_rule_id: Optional[str] = None) -> ClbRedirectionfunc GetClbRedirection(ctx *Context, name string, id IDInput, state *ClbRedirectionState, opts ...ResourceOption) (*ClbRedirection, error)public static ClbRedirection Get(string name, Input<string> id, ClbRedirectionState? state, CustomResourceOptions? opts = null)public static ClbRedirection get(String name, Output<String> id, ClbRedirectionState state, CustomResourceOptions options)resources: _: type: tencentcloud:ClbRedirection get: id: ${id}import {
to = tencentcloud_clbredirection.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Clb
Id string - ID of CLB instance.
- Clb
Redirection stringId - ID of the resource.
- Delete
All boolAuto Rewrite - Indicates whether delete all auto redirection. Default is
false. It will take effect only when this redirection is auto-rewrite and this auto-rewrite auto redirected more than one rules. All the auto-rewrite relations will be deleted when this parameter set true. - Is
Auto boolRewrite - Indicates whether automatic forwarding is enable, default is
false. If enabled, the source listener and location should be empty, the target listener must be https protocol and port is 443. - Rewrite
Code double - Redirection status codes, with possible values of
301,302,307. - Source
Domian string - The domain name for source forwarding must be the domain name corresponding to
source_rule_id, which is required when configuringrewrite_code. Only supportis_auto_rewriteisfalse. - Source
Listener stringId - ID of source listener.
- Source
Rule stringId - Rule ID of source listener.
- Take
Url bool - Whether the redirect carries a matching URL is required when configuring
rewrite_code. - Target
Listener stringId - ID of source listener.
- Target
Rule stringId - Rule ID of target listener.
- Clb
Id string - ID of CLB instance.
- Clb
Redirection stringId - ID of the resource.
- Delete
All boolAuto Rewrite - Indicates whether delete all auto redirection. Default is
false. It will take effect only when this redirection is auto-rewrite and this auto-rewrite auto redirected more than one rules. All the auto-rewrite relations will be deleted when this parameter set true. - Is
Auto boolRewrite - Indicates whether automatic forwarding is enable, default is
false. If enabled, the source listener and location should be empty, the target listener must be https protocol and port is 443. - Rewrite
Code float64 - Redirection status codes, with possible values of
301,302,307. - Source
Domian string - The domain name for source forwarding must be the domain name corresponding to
source_rule_id, which is required when configuringrewrite_code. Only supportis_auto_rewriteisfalse. - Source
Listener stringId - ID of source listener.
- Source
Rule stringId - Rule ID of source listener.
- Take
Url bool - Whether the redirect carries a matching URL is required when configuring
rewrite_code. - Target
Listener stringId - ID of source listener.
- Target
Rule stringId - Rule ID of target listener.
- clb_
id string - ID of CLB instance.
- clb_
redirection_ stringid - ID of the resource.
- delete_
all_ boolauto_ rewrite - Indicates whether delete all auto redirection. Default is
false. It will take effect only when this redirection is auto-rewrite and this auto-rewrite auto redirected more than one rules. All the auto-rewrite relations will be deleted when this parameter set true. - is_
auto_ boolrewrite - Indicates whether automatic forwarding is enable, default is
false. If enabled, the source listener and location should be empty, the target listener must be https protocol and port is 443. - rewrite_
code number - Redirection status codes, with possible values of
301,302,307. - source_
domian string - The domain name for source forwarding must be the domain name corresponding to
source_rule_id, which is required when configuringrewrite_code. Only supportis_auto_rewriteisfalse. - source_
listener_ stringid - ID of source listener.
- source_
rule_ stringid - Rule ID of source listener.
- take_
url bool - Whether the redirect carries a matching URL is required when configuring
rewrite_code. - target_
listener_ stringid - ID of source listener.
- target_
rule_ stringid - Rule ID of target listener.
- clb
Id String - ID of CLB instance.
- clb
Redirection StringId - ID of the resource.
- delete
All BooleanAuto Rewrite - Indicates whether delete all auto redirection. Default is
false. It will take effect only when this redirection is auto-rewrite and this auto-rewrite auto redirected more than one rules. All the auto-rewrite relations will be deleted when this parameter set true. - is
Auto BooleanRewrite - Indicates whether automatic forwarding is enable, default is
false. If enabled, the source listener and location should be empty, the target listener must be https protocol and port is 443. - rewrite
Code Double - Redirection status codes, with possible values of
301,302,307. - source
Domian String - The domain name for source forwarding must be the domain name corresponding to
source_rule_id, which is required when configuringrewrite_code. Only supportis_auto_rewriteisfalse. - source
Listener StringId - ID of source listener.
- source
Rule StringId - Rule ID of source listener.
- take
Url Boolean - Whether the redirect carries a matching URL is required when configuring
rewrite_code. - target
Listener StringId - ID of source listener.
- target
Rule StringId - Rule ID of target listener.
- clb
Id string - ID of CLB instance.
- clb
Redirection stringId - ID of the resource.
- delete
All booleanAuto Rewrite - Indicates whether delete all auto redirection. Default is
false. It will take effect only when this redirection is auto-rewrite and this auto-rewrite auto redirected more than one rules. All the auto-rewrite relations will be deleted when this parameter set true. - is
Auto booleanRewrite - Indicates whether automatic forwarding is enable, default is
false. If enabled, the source listener and location should be empty, the target listener must be https protocol and port is 443. - rewrite
Code number - Redirection status codes, with possible values of
301,302,307. - source
Domian string - The domain name for source forwarding must be the domain name corresponding to
source_rule_id, which is required when configuringrewrite_code. Only supportis_auto_rewriteisfalse. - source
Listener stringId - ID of source listener.
- source
Rule stringId - Rule ID of source listener.
- take
Url boolean - Whether the redirect carries a matching URL is required when configuring
rewrite_code. - target
Listener stringId - ID of source listener.
- target
Rule stringId - Rule ID of target listener.
- clb_
id str - ID of CLB instance.
- clb_
redirection_ strid - ID of the resource.
- delete_
all_ boolauto_ rewrite - Indicates whether delete all auto redirection. Default is
false. It will take effect only when this redirection is auto-rewrite and this auto-rewrite auto redirected more than one rules. All the auto-rewrite relations will be deleted when this parameter set true. - is_
auto_ boolrewrite - Indicates whether automatic forwarding is enable, default is
false. If enabled, the source listener and location should be empty, the target listener must be https protocol and port is 443. - rewrite_
code float - Redirection status codes, with possible values of
301,302,307. - source_
domian str - The domain name for source forwarding must be the domain name corresponding to
source_rule_id, which is required when configuringrewrite_code. Only supportis_auto_rewriteisfalse. - source_
listener_ strid - ID of source listener.
- source_
rule_ strid - Rule ID of source listener.
- take_
url bool - Whether the redirect carries a matching URL is required when configuring
rewrite_code. - target_
listener_ strid - ID of source listener.
- target_
rule_ strid - Rule ID of target listener.
- clb
Id String - ID of CLB instance.
- clb
Redirection StringId - ID of the resource.
- delete
All BooleanAuto Rewrite - Indicates whether delete all auto redirection. Default is
false. It will take effect only when this redirection is auto-rewrite and this auto-rewrite auto redirected more than one rules. All the auto-rewrite relations will be deleted when this parameter set true. - is
Auto BooleanRewrite - Indicates whether automatic forwarding is enable, default is
false. If enabled, the source listener and location should be empty, the target listener must be https protocol and port is 443. - rewrite
Code Number - Redirection status codes, with possible values of
301,302,307. - source
Domian String - The domain name for source forwarding must be the domain name corresponding to
source_rule_id, which is required when configuringrewrite_code. Only supportis_auto_rewriteisfalse. - source
Listener StringId - ID of source listener.
- source
Rule StringId - Rule ID of source listener.
- take
Url Boolean - Whether the redirect carries a matching URL is required when configuring
rewrite_code. - target
Listener StringId - ID of source listener.
- target
Rule StringId - Rule ID of target listener.
Import
CLB redirection can be imported using the sourceLocId#targetLocId#sourceListenerId#targetListenerId#clbId, e.g.
$ pulumi import tencentcloud:index/clbRedirection:ClbRedirection example loc-ft8fmngv#loc-4xxr2cy7#lbl-jc1dx6ju#lbl-asj1hzuo#lb-p7olt9e5
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
published on Monday, May 11, 2026 by tencentcloudstack
