tencentcloud.TeoApplicationProxyRule
Explore with Pulumi AI
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:
- Origin
Port string - Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
- Origin
Type string - Origin server type. Valid values:
custom
: Specified origins;origins
: An origin group. - Origin
Values List<string> - Origin site information: When
OriginType
iscustom
, it indicates one or more origin sites, such as['8.8.8.8', '9.9.9.9']
orOriginValue=['test.com']
; WhenOriginType
isorigins
, 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
. - Proxy
Id string - Proxy ID.
- Zone
Id string - Site ID.
- Forward
Client stringIp - 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 string
- Status, the values are:
online
: enabled;offline
: deactivated;progress
: being deployed;stopping
: being deactivated;fail
: deployment failure/deactivation failure. - Teo
Application stringProxy Rule Id - ID of the resource.
- Origin
Port string - Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
- Origin
Type string - Origin server type. Valid values:
custom
: Specified origins;origins
: An origin group. - Origin
Values []string - Origin site information: When
OriginType
iscustom
, it indicates one or more origin sites, such as['8.8.8.8', '9.9.9.9']
orOriginValue=['test.com']
; WhenOriginType
isorigins
, 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
. - Proxy
Id string - Proxy ID.
- Zone
Id string - Site ID.
- Forward
Client stringIp - 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 string
- Status, the values are:
online
: enabled;offline
: deactivated;progress
: being deployed;stopping
: being deactivated;fail
: deployment failure/deactivation failure. - Teo
Application stringProxy Rule Id - ID of the resource.
- origin
Port String - Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
- origin
Type String - Origin server type. Valid values:
custom
: Specified origins;origins
: An origin group. - origin
Values List<String> - Origin site information: When
OriginType
iscustom
, it indicates one or more origin sites, such as['8.8.8.8', '9.9.9.9']
orOriginValue=['test.com']
; WhenOriginType
isorigins
, 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
. - proxy
Id String - Proxy ID.
- zone
Id String - Site ID.
- forward
Client StringIp - 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 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. - teo
Application StringProxy Rule Id - ID of the resource.
- origin
Port string - Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
- origin
Type string - Origin server type. Valid values:
custom
: Specified origins;origins
: An origin group. - origin
Values string[] - Origin site information: When
OriginType
iscustom
, it indicates one or more origin sites, such as['8.8.8.8', '9.9.9.9']
orOriginValue=['test.com']
; WhenOriginType
isorigins
, 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
. - proxy
Id string - Proxy ID.
- zone
Id string - Site ID.
- forward
Client stringIp - 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 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. - teo
Application stringProxy Rule Id - 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
iscustom
, it indicates one or more origin sites, such as['8.8.8.8', '9.9.9.9']
orOriginValue=['test.com']
; WhenOriginType
isorigins
, 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_ strip - 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_ strproxy_ rule_ id - ID of the resource.
- origin
Port String - Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
- origin
Type String - Origin server type. Valid values:
custom
: Specified origins;origins
: An origin group. - origin
Values List<String> - Origin site information: When
OriginType
iscustom
, it indicates one or more origin sites, such as['8.8.8.8', '9.9.9.9']
orOriginValue=['test.com']
; WhenOriginType
isorigins
, 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
. - proxy
Id String - Proxy ID.
- zone
Id String - Site ID.
- forward
Client StringIp - 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 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. - teo
Application StringProxy Rule Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TeoApplicationProxyRule resource produces the following output properties:
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.
- Forward
Client stringIp - 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 string - Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
- Origin
Type string - Origin server type. Valid values:
custom
: Specified origins;origins
: An origin group. - Origin
Values List<string> - Origin site information: When
OriginType
iscustom
, it indicates one or more origin sites, such as['8.8.8.8', '9.9.9.9']
orOriginValue=['test.com']
; WhenOriginType
isorigins
, 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
. - Proxy
Id string - Proxy ID.
- Rule
Id string - Rule ID.
- Session
Persist 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. - Teo
Application stringProxy Rule Id - ID of the resource.
- Zone
Id string - Site ID.
- Forward
Client stringIp - 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 string - Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
- Origin
Type string - Origin server type. Valid values:
custom
: Specified origins;origins
: An origin group. - Origin
Values []string - Origin site information: When
OriginType
iscustom
, it indicates one or more origin sites, such as['8.8.8.8', '9.9.9.9']
orOriginValue=['test.com']
; WhenOriginType
isorigins
, 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
. - Proxy
Id string - Proxy ID.
- Rule
Id string - Rule ID.
- Session
Persist 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. - Teo
Application stringProxy Rule Id - ID of the resource.
- Zone
Id string - Site ID.
- forward
Client StringIp - 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 String - Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
- origin
Type String - Origin server type. Valid values:
custom
: Specified origins;origins
: An origin group. - origin
Values List<String> - Origin site information: When
OriginType
iscustom
, it indicates one or more origin sites, such as['8.8.8.8', '9.9.9.9']
orOriginValue=['test.com']
; WhenOriginType
isorigins
, 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
. - proxy
Id String - Proxy ID.
- rule
Id String - Rule ID.
- session
Persist 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. - teo
Application StringProxy Rule Id - ID of the resource.
- zone
Id String - Site ID.
- forward
Client stringIp - 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 string - Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
- origin
Type string - Origin server type. Valid values:
custom
: Specified origins;origins
: An origin group. - origin
Values string[] - Origin site information: When
OriginType
iscustom
, it indicates one or more origin sites, such as['8.8.8.8', '9.9.9.9']
orOriginValue=['test.com']
; WhenOriginType
isorigins
, 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
. - proxy
Id string - Proxy ID.
- rule
Id string - Rule ID.
- session
Persist 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. - teo
Application stringProxy Rule Id - ID of the resource.
- zone
Id string - Site ID.
- forward_
client_ strip - 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
iscustom
, it indicates one or more origin sites, such as['8.8.8.8', '9.9.9.9']
orOriginValue=['test.com']
; WhenOriginType
isorigins
, 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_ strproxy_ rule_ id - ID of the resource.
- zone_
id str - Site ID.
- forward
Client StringIp - 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 String - Origin port, supported formats: single port: 80; Port segment: 81-90, 81 to 90 ports.
- origin
Type String - Origin server type. Valid values:
custom
: Specified origins;origins
: An origin group. - origin
Values List<String> - Origin site information: When
OriginType
iscustom
, it indicates one or more origin sites, such as['8.8.8.8', '9.9.9.9']
orOriginValue=['test.com']
; WhenOriginType
isorigins
, 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
. - proxy
Id String - Proxy ID.
- rule
Id String - Rule ID.
- session
Persist 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. - teo
Application StringProxy Rule Id - ID of the resource.
- zone
Id 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.