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

tencentcloud.TeoApplicationProxyRule

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a teo application_proxy_rule

    NOTE: The current resource has been deprecated, please use tencentcloud.TeoL4ProxyRule.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const applicationProxyRule = new tencentcloud.TeoApplicationProxyRule("applicationProxyRule", {
        forwardClientIp: "TOA",
        originPort: "8083",
        originType: "custom",
        originValues: ["127.0.0.1"],
        ports: ["8083"],
        proto: "TCP",
        proxyId: "proxy-6972528a-373a-11ed-afca-52540044a456",
        sessionPersist: false,
        status: "online",
        zoneId: "zone-2983wizgxqvm",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    application_proxy_rule = tencentcloud.TeoApplicationProxyRule("applicationProxyRule",
        forward_client_ip="TOA",
        origin_port="8083",
        origin_type="custom",
        origin_values=["127.0.0.1"],
        ports=["8083"],
        proto="TCP",
        proxy_id="proxy-6972528a-373a-11ed-afca-52540044a456",
        session_persist=False,
        status="online",
        zone_id="zone-2983wizgxqvm")
    
    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.NewTeoApplicationProxyRule(ctx, "applicationProxyRule", &tencentcloud.TeoApplicationProxyRuleArgs{
    			ForwardClientIp: pulumi.String("TOA"),
    			OriginPort:      pulumi.String("8083"),
    			OriginType:      pulumi.String("custom"),
    			OriginValues: pulumi.StringArray{
    				pulumi.String("127.0.0.1"),
    			},
    			Ports: pulumi.StringArray{
    				pulumi.String("8083"),
    			},
    			Proto:          pulumi.String("TCP"),
    			ProxyId:        pulumi.String("proxy-6972528a-373a-11ed-afca-52540044a456"),
    			SessionPersist: pulumi.Bool(false),
    			Status:         pulumi.String("online"),
    			ZoneId:         pulumi.String("zone-2983wizgxqvm"),
    		})
    		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 applicationProxyRule = new Tencentcloud.TeoApplicationProxyRule("applicationProxyRule", new()
        {
            ForwardClientIp = "TOA",
            OriginPort = "8083",
            OriginType = "custom",
            OriginValues = new[]
            {
                "127.0.0.1",
            },
            Ports = new[]
            {
                "8083",
            },
            Proto = "TCP",
            ProxyId = "proxy-6972528a-373a-11ed-afca-52540044a456",
            SessionPersist = false,
            Status = "online",
            ZoneId = "zone-2983wizgxqvm",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TeoApplicationProxyRule;
    import com.pulumi.tencentcloud.TeoApplicationProxyRuleArgs;
    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 applicationProxyRule = new TeoApplicationProxyRule("applicationProxyRule", TeoApplicationProxyRuleArgs.builder()
                .forwardClientIp("TOA")
                .originPort("8083")
                .originType("custom")
                .originValues("127.0.0.1")
                .ports("8083")
                .proto("TCP")
                .proxyId("proxy-6972528a-373a-11ed-afca-52540044a456")
                .sessionPersist(false)
                .status("online")
                .zoneId("zone-2983wizgxqvm")
                .build());
    
        }
    }
    
    resources:
      applicationProxyRule:
        type: tencentcloud:TeoApplicationProxyRule
        properties:
          forwardClientIp: TOA
          originPort: '8083'
          originType: custom
          originValues:
            - 127.0.0.1
          ports:
            - '8083'
          proto: TCP
          proxyId: proxy-6972528a-373a-11ed-afca-52540044a456
          sessionPersist: false
          status: online
          zoneId: zone-2983wizgxqvm
    

    Create TeoApplicationProxyRule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TeoApplicationProxyRule(name: string, args: TeoApplicationProxyRuleArgs, opts?: CustomResourceOptions);
    @overload
    def TeoApplicationProxyRule(resource_name: str,
                                args: TeoApplicationProxyRuleArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def TeoApplicationProxyRule(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                origin_port: Optional[str] = None,
                                origin_type: Optional[str] = None,
                                origin_values: Optional[Sequence[str]] = None,
                                ports: Optional[Sequence[str]] = None,
                                proto: Optional[str] = None,
                                proxy_id: Optional[str] = None,
                                zone_id: Optional[str] = None,
                                forward_client_ip: Optional[str] = None,
                                session_persist: Optional[bool] = None,
                                status: Optional[str] = None,
                                teo_application_proxy_rule_id: Optional[str] = None)
    func NewTeoApplicationProxyRule(ctx *Context, name string, args TeoApplicationProxyRuleArgs, opts ...ResourceOption) (*TeoApplicationProxyRule, error)
    public TeoApplicationProxyRule(string name, TeoApplicationProxyRuleArgs args, CustomResourceOptions? opts = null)
    public TeoApplicationProxyRule(String name, TeoApplicationProxyRuleArgs args)
    public TeoApplicationProxyRule(String name, TeoApplicationProxyRuleArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TeoApplicationProxyRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TeoApplicationProxyRuleArgs
    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 TeoApplicationProxyRuleArgs
    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 TeoApplicationProxyRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeoApplicationProxyRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TeoApplicationProxyRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TeoApplicationProxyRule 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 TeoApplicationProxyRule resource accepts the following input properties:

    OriginPort string
    Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
    OriginType string
    Origin server type. Valid values: custom: Specified origins; origins: An origin group.
    OriginValues List<string>
    Origin site information: When OriginType is custom, it indicates one or more origin sites, such as ['8.8.8.8', '9.9.9.9'] or OriginValue=['test.com']; When OriginType is origins, there is required to be one and only one element, representing the origin site group ID, such as ['origin-537f5b41-162a-11ed-abaa-525400c5da15'].
    Ports List<string>
    Valid values: 80 means port 80; 81-90 means port range 81-90.
    Proto string
    Protocol. Valid values: TCP, UDP.
    ProxyId string
    Proxy ID.
    ZoneId string
    Site ID.
    ForwardClientIp string
    Passes the client IP. Default value is OFF. When Proto is TCP, valid values: TOA: Pass the client IP via TOA; PPV1: Pass the client IP via Proxy Protocol V1; PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP. When Proto=UDP, valid values: PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP.
    SessionPersist bool
    Specifies whether to enable session persistence. Default value is false.
    Status string
    Status, the values are: online: enabled; offline: deactivated; progress: being deployed; stopping: being deactivated; fail: deployment failure/deactivation failure.
    TeoApplicationProxyRuleId string
    ID of the resource.
    OriginPort string
    Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
    OriginType string
    Origin server type. Valid values: custom: Specified origins; origins: An origin group.
    OriginValues []string
    Origin site information: When OriginType is custom, it indicates one or more origin sites, such as ['8.8.8.8', '9.9.9.9'] or OriginValue=['test.com']; When OriginType is origins, there is required to be one and only one element, representing the origin site group ID, such as ['origin-537f5b41-162a-11ed-abaa-525400c5da15'].
    Ports []string
    Valid values: 80 means port 80; 81-90 means port range 81-90.
    Proto string
    Protocol. Valid values: TCP, UDP.
    ProxyId string
    Proxy ID.
    ZoneId string
    Site ID.
    ForwardClientIp string
    Passes the client IP. Default value is OFF. When Proto is TCP, valid values: TOA: Pass the client IP via TOA; PPV1: Pass the client IP via Proxy Protocol V1; PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP. When Proto=UDP, valid values: PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP.
    SessionPersist bool
    Specifies whether to enable session persistence. Default value is false.
    Status string
    Status, the values are: online: enabled; offline: deactivated; progress: being deployed; stopping: being deactivated; fail: deployment failure/deactivation failure.
    TeoApplicationProxyRuleId string
    ID of the resource.
    originPort String
    Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
    originType String
    Origin server type. Valid values: custom: Specified origins; origins: An origin group.
    originValues List<String>
    Origin site information: When OriginType is custom, it indicates one or more origin sites, such as ['8.8.8.8', '9.9.9.9'] or OriginValue=['test.com']; When OriginType is origins, there is required to be one and only one element, representing the origin site group ID, such as ['origin-537f5b41-162a-11ed-abaa-525400c5da15'].
    ports List<String>
    Valid values: 80 means port 80; 81-90 means port range 81-90.
    proto String
    Protocol. Valid values: TCP, UDP.
    proxyId String
    Proxy ID.
    zoneId String
    Site ID.
    forwardClientIp String
    Passes the client IP. Default value is OFF. When Proto is TCP, valid values: TOA: Pass the client IP via TOA; PPV1: Pass the client IP via Proxy Protocol V1; PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP. When Proto=UDP, valid values: PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP.
    sessionPersist Boolean
    Specifies whether to enable session persistence. Default value is false.
    status String
    Status, the values are: online: enabled; offline: deactivated; progress: being deployed; stopping: being deactivated; fail: deployment failure/deactivation failure.
    teoApplicationProxyRuleId String
    ID of the resource.
    originPort string
    Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
    originType string
    Origin server type. Valid values: custom: Specified origins; origins: An origin group.
    originValues string[]
    Origin site information: When OriginType is custom, it indicates one or more origin sites, such as ['8.8.8.8', '9.9.9.9'] or OriginValue=['test.com']; When OriginType is origins, there is required to be one and only one element, representing the origin site group ID, such as ['origin-537f5b41-162a-11ed-abaa-525400c5da15'].
    ports string[]
    Valid values: 80 means port 80; 81-90 means port range 81-90.
    proto string
    Protocol. Valid values: TCP, UDP.
    proxyId string
    Proxy ID.
    zoneId string
    Site ID.
    forwardClientIp string
    Passes the client IP. Default value is OFF. When Proto is TCP, valid values: TOA: Pass the client IP via TOA; PPV1: Pass the client IP via Proxy Protocol V1; PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP. When Proto=UDP, valid values: PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP.
    sessionPersist boolean
    Specifies whether to enable session persistence. Default value is false.
    status string
    Status, the values are: online: enabled; offline: deactivated; progress: being deployed; stopping: being deactivated; fail: deployment failure/deactivation failure.
    teoApplicationProxyRuleId string
    ID of the resource.
    origin_port str
    Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
    origin_type str
    Origin server type. Valid values: custom: Specified origins; origins: An origin group.
    origin_values Sequence[str]
    Origin site information: When OriginType is custom, it indicates one or more origin sites, such as ['8.8.8.8', '9.9.9.9'] or OriginValue=['test.com']; When OriginType is origins, there is required to be one and only one element, representing the origin site group ID, such as ['origin-537f5b41-162a-11ed-abaa-525400c5da15'].
    ports Sequence[str]
    Valid values: 80 means port 80; 81-90 means port range 81-90.
    proto str
    Protocol. Valid values: TCP, UDP.
    proxy_id str
    Proxy ID.
    zone_id str
    Site ID.
    forward_client_ip str
    Passes the client IP. Default value is OFF. When Proto is TCP, valid values: TOA: Pass the client IP via TOA; PPV1: Pass the client IP via Proxy Protocol V1; PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP. When Proto=UDP, valid values: PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP.
    session_persist bool
    Specifies whether to enable session persistence. Default value is false.
    status str
    Status, the values are: online: enabled; offline: deactivated; progress: being deployed; stopping: being deactivated; fail: deployment failure/deactivation failure.
    teo_application_proxy_rule_id str
    ID of the resource.
    originPort String
    Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
    originType String
    Origin server type. Valid values: custom: Specified origins; origins: An origin group.
    originValues List<String>
    Origin site information: When OriginType is custom, it indicates one or more origin sites, such as ['8.8.8.8', '9.9.9.9'] or OriginValue=['test.com']; When OriginType is origins, there is required to be one and only one element, representing the origin site group ID, such as ['origin-537f5b41-162a-11ed-abaa-525400c5da15'].
    ports List<String>
    Valid values: 80 means port 80; 81-90 means port range 81-90.
    proto String
    Protocol. Valid values: TCP, UDP.
    proxyId String
    Proxy ID.
    zoneId String
    Site ID.
    forwardClientIp String
    Passes the client IP. Default value is OFF. When Proto is TCP, valid values: TOA: Pass the client IP via TOA; PPV1: Pass the client IP via Proxy Protocol V1; PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP. When Proto=UDP, valid values: PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP.
    sessionPersist Boolean
    Specifies whether to enable session persistence. Default value is false.
    status String
    Status, the values are: online: enabled; offline: deactivated; progress: being deployed; stopping: being deactivated; fail: deployment failure/deactivation failure.
    teoApplicationProxyRuleId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TeoApplicationProxyRule resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId string
    Rule ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId string
    Rule ID.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId String
    Rule ID.
    id string
    The provider-assigned unique ID for this managed resource.
    ruleId string
    Rule ID.
    id str
    The provider-assigned unique ID for this managed resource.
    rule_id str
    Rule ID.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId String
    Rule ID.

    Look up Existing TeoApplicationProxyRule Resource

    Get an existing TeoApplicationProxyRule 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?: TeoApplicationProxyRuleState, opts?: CustomResourceOptions): TeoApplicationProxyRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            forward_client_ip: Optional[str] = None,
            origin_port: Optional[str] = None,
            origin_type: Optional[str] = None,
            origin_values: Optional[Sequence[str]] = None,
            ports: Optional[Sequence[str]] = None,
            proto: Optional[str] = None,
            proxy_id: Optional[str] = None,
            rule_id: Optional[str] = None,
            session_persist: Optional[bool] = None,
            status: Optional[str] = None,
            teo_application_proxy_rule_id: Optional[str] = None,
            zone_id: Optional[str] = None) -> TeoApplicationProxyRule
    func GetTeoApplicationProxyRule(ctx *Context, name string, id IDInput, state *TeoApplicationProxyRuleState, opts ...ResourceOption) (*TeoApplicationProxyRule, error)
    public static TeoApplicationProxyRule Get(string name, Input<string> id, TeoApplicationProxyRuleState? state, CustomResourceOptions? opts = null)
    public static TeoApplicationProxyRule get(String name, Output<String> id, TeoApplicationProxyRuleState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TeoApplicationProxyRule    get:      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.
    The following state arguments are supported:
    ForwardClientIp string
    Passes the client IP. Default value is OFF. When Proto is TCP, valid values: TOA: Pass the client IP via TOA; PPV1: Pass the client IP via Proxy Protocol V1; PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP. When Proto=UDP, valid values: PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP.
    OriginPort string
    Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
    OriginType string
    Origin server type. Valid values: custom: Specified origins; origins: An origin group.
    OriginValues List<string>
    Origin site information: When OriginType is custom, it indicates one or more origin sites, such as ['8.8.8.8', '9.9.9.9'] or OriginValue=['test.com']; When OriginType is origins, there is required to be one and only one element, representing the origin site group ID, such as ['origin-537f5b41-162a-11ed-abaa-525400c5da15'].
    Ports List<string>
    Valid values: 80 means port 80; 81-90 means port range 81-90.
    Proto string
    Protocol. Valid values: TCP, UDP.
    ProxyId string
    Proxy ID.
    RuleId string
    Rule ID.
    SessionPersist bool
    Specifies whether to enable session persistence. Default value is false.
    Status string
    Status, the values are: online: enabled; offline: deactivated; progress: being deployed; stopping: being deactivated; fail: deployment failure/deactivation failure.
    TeoApplicationProxyRuleId string
    ID of the resource.
    ZoneId string
    Site ID.
    ForwardClientIp string
    Passes the client IP. Default value is OFF. When Proto is TCP, valid values: TOA: Pass the client IP via TOA; PPV1: Pass the client IP via Proxy Protocol V1; PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP. When Proto=UDP, valid values: PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP.
    OriginPort string
    Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
    OriginType string
    Origin server type. Valid values: custom: Specified origins; origins: An origin group.
    OriginValues []string
    Origin site information: When OriginType is custom, it indicates one or more origin sites, such as ['8.8.8.8', '9.9.9.9'] or OriginValue=['test.com']; When OriginType is origins, there is required to be one and only one element, representing the origin site group ID, such as ['origin-537f5b41-162a-11ed-abaa-525400c5da15'].
    Ports []string
    Valid values: 80 means port 80; 81-90 means port range 81-90.
    Proto string
    Protocol. Valid values: TCP, UDP.
    ProxyId string
    Proxy ID.
    RuleId string
    Rule ID.
    SessionPersist bool
    Specifies whether to enable session persistence. Default value is false.
    Status string
    Status, the values are: online: enabled; offline: deactivated; progress: being deployed; stopping: being deactivated; fail: deployment failure/deactivation failure.
    TeoApplicationProxyRuleId string
    ID of the resource.
    ZoneId string
    Site ID.
    forwardClientIp String
    Passes the client IP. Default value is OFF. When Proto is TCP, valid values: TOA: Pass the client IP via TOA; PPV1: Pass the client IP via Proxy Protocol V1; PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP. When Proto=UDP, valid values: PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP.
    originPort String
    Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
    originType String
    Origin server type. Valid values: custom: Specified origins; origins: An origin group.
    originValues List<String>
    Origin site information: When OriginType is custom, it indicates one or more origin sites, such as ['8.8.8.8', '9.9.9.9'] or OriginValue=['test.com']; When OriginType is origins, there is required to be one and only one element, representing the origin site group ID, such as ['origin-537f5b41-162a-11ed-abaa-525400c5da15'].
    ports List<String>
    Valid values: 80 means port 80; 81-90 means port range 81-90.
    proto String
    Protocol. Valid values: TCP, UDP.
    proxyId String
    Proxy ID.
    ruleId String
    Rule ID.
    sessionPersist Boolean
    Specifies whether to enable session persistence. Default value is false.
    status String
    Status, the values are: online: enabled; offline: deactivated; progress: being deployed; stopping: being deactivated; fail: deployment failure/deactivation failure.
    teoApplicationProxyRuleId String
    ID of the resource.
    zoneId String
    Site ID.
    forwardClientIp string
    Passes the client IP. Default value is OFF. When Proto is TCP, valid values: TOA: Pass the client IP via TOA; PPV1: Pass the client IP via Proxy Protocol V1; PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP. When Proto=UDP, valid values: PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP.
    originPort string
    Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
    originType string
    Origin server type. Valid values: custom: Specified origins; origins: An origin group.
    originValues string[]
    Origin site information: When OriginType is custom, it indicates one or more origin sites, such as ['8.8.8.8', '9.9.9.9'] or OriginValue=['test.com']; When OriginType is origins, there is required to be one and only one element, representing the origin site group ID, such as ['origin-537f5b41-162a-11ed-abaa-525400c5da15'].
    ports string[]
    Valid values: 80 means port 80; 81-90 means port range 81-90.
    proto string
    Protocol. Valid values: TCP, UDP.
    proxyId string
    Proxy ID.
    ruleId string
    Rule ID.
    sessionPersist boolean
    Specifies whether to enable session persistence. Default value is false.
    status string
    Status, the values are: online: enabled; offline: deactivated; progress: being deployed; stopping: being deactivated; fail: deployment failure/deactivation failure.
    teoApplicationProxyRuleId string
    ID of the resource.
    zoneId string
    Site ID.
    forward_client_ip str
    Passes the client IP. Default value is OFF. When Proto is TCP, valid values: TOA: Pass the client IP via TOA; PPV1: Pass the client IP via Proxy Protocol V1; PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP. When Proto=UDP, valid values: PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP.
    origin_port str
    Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
    origin_type str
    Origin server type. Valid values: custom: Specified origins; origins: An origin group.
    origin_values Sequence[str]
    Origin site information: When OriginType is custom, it indicates one or more origin sites, such as ['8.8.8.8', '9.9.9.9'] or OriginValue=['test.com']; When OriginType is origins, there is required to be one and only one element, representing the origin site group ID, such as ['origin-537f5b41-162a-11ed-abaa-525400c5da15'].
    ports Sequence[str]
    Valid values: 80 means port 80; 81-90 means port range 81-90.
    proto str
    Protocol. Valid values: TCP, UDP.
    proxy_id str
    Proxy ID.
    rule_id str
    Rule ID.
    session_persist bool
    Specifies whether to enable session persistence. Default value is false.
    status str
    Status, the values are: online: enabled; offline: deactivated; progress: being deployed; stopping: being deactivated; fail: deployment failure/deactivation failure.
    teo_application_proxy_rule_id str
    ID of the resource.
    zone_id str
    Site ID.
    forwardClientIp String
    Passes the client IP. Default value is OFF. When Proto is TCP, valid values: TOA: Pass the client IP via TOA; PPV1: Pass the client IP via Proxy Protocol V1; PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP. When Proto=UDP, valid values: PPV2: Pass the client IP via Proxy Protocol V2; OFF: Do not pass the client IP.
    originPort String
    Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
    originType String
    Origin server type. Valid values: custom: Specified origins; origins: An origin group.
    originValues List<String>
    Origin site information: When OriginType is custom, it indicates one or more origin sites, such as ['8.8.8.8', '9.9.9.9'] or OriginValue=['test.com']; When OriginType is origins, there is required to be one and only one element, representing the origin site group ID, such as ['origin-537f5b41-162a-11ed-abaa-525400c5da15'].
    ports List<String>
    Valid values: 80 means port 80; 81-90 means port range 81-90.
    proto String
    Protocol. Valid values: TCP, UDP.
    proxyId String
    Proxy ID.
    ruleId String
    Rule ID.
    sessionPersist Boolean
    Specifies whether to enable session persistence. Default value is false.
    status String
    Status, the values are: online: enabled; offline: deactivated; progress: being deployed; stopping: being deactivated; fail: deployment failure/deactivation failure.
    teoApplicationProxyRuleId String
    ID of the resource.
    zoneId String
    Site ID.

    Import

    teo application_proxy_rule can be imported using the zoneId#proxyId#ruleId, e.g.

    $ pulumi import tencentcloud:index/teoApplicationProxyRule:TeoApplicationProxyRule application_proxy_rule zone-2983wizgxqvm#proxy-6972528a-373a-11ed-afca-52540044a456#rule-90b13bb4-373a-11ed-8794-525400eddfed
    

    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 tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack