tencentcloud.TeoRuleEngine
Explore with Pulumi AI
Provides a resource to create a teo rule_engine
NOTE: The current resource has been deprecated, please use
tencentcloud.TeoL7AccRule
.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const rule1 = new tencentcloud.TeoRuleEngine("rule1", {
zoneId: tencentcloud_teo_zone.example.id,
ruleName: "test-rule",
status: "disable",
rules: [{
actions: [{
normalAction: {
action: "UpstreamUrlRedirect",
parameters: [
{
name: "Type",
values: ["Path"],
},
{
name: "Action",
values: ["addPrefix"],
},
{
name: "Value",
values: ["/sss"],
},
],
},
}],
ors: [
{
ands: [
{
operator: "equal",
target: "host",
ignoreCase: false,
values: ["a.tf-teo-t.xyz"],
},
{
operator: "equal",
target: "extension",
ignoreCase: false,
values: ["jpg"],
},
],
},
{
ands: [{
operator: "equal",
target: "filename",
ignoreCase: false,
values: ["test.txt"],
}],
},
],
subRules: [{
tags: ["png"],
rules: [{
ors: [
{
ands: [
{
operator: "notequal",
target: "host",
ignoreCase: false,
values: ["a.tf-teo-t.xyz"],
},
{
operator: "equal",
target: "extension",
ignoreCase: false,
values: ["png"],
},
],
},
{
ands: [{
operator: "notequal",
target: "filename",
ignoreCase: false,
values: ["test.txt"],
}],
},
],
actions: [{
normalAction: {
action: "UpstreamUrlRedirect",
parameters: [
{
name: "Type",
values: ["Path"],
},
{
name: "Action",
values: ["addPrefix"],
},
{
name: "Value",
values: ["/www"],
},
],
},
}],
}],
}],
}],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
rule1 = tencentcloud.TeoRuleEngine("rule1",
zone_id=tencentcloud_teo_zone["example"]["id"],
rule_name="test-rule",
status="disable",
rules=[{
"actions": [{
"normal_action": {
"action": "UpstreamUrlRedirect",
"parameters": [
{
"name": "Type",
"values": ["Path"],
},
{
"name": "Action",
"values": ["addPrefix"],
},
{
"name": "Value",
"values": ["/sss"],
},
],
},
}],
"ors": [
{
"ands": [
{
"operator": "equal",
"target": "host",
"ignore_case": False,
"values": ["a.tf-teo-t.xyz"],
},
{
"operator": "equal",
"target": "extension",
"ignore_case": False,
"values": ["jpg"],
},
],
},
{
"ands": [{
"operator": "equal",
"target": "filename",
"ignore_case": False,
"values": ["test.txt"],
}],
},
],
"sub_rules": [{
"tags": ["png"],
"rules": [{
"ors": [
{
"ands": [
{
"operator": "notequal",
"target": "host",
"ignore_case": False,
"values": ["a.tf-teo-t.xyz"],
},
{
"operator": "equal",
"target": "extension",
"ignore_case": False,
"values": ["png"],
},
],
},
{
"ands": [{
"operator": "notequal",
"target": "filename",
"ignore_case": False,
"values": ["test.txt"],
}],
},
],
"actions": [{
"normal_action": {
"action": "UpstreamUrlRedirect",
"parameters": [
{
"name": "Type",
"values": ["Path"],
},
{
"name": "Action",
"values": ["addPrefix"],
},
{
"name": "Value",
"values": ["/www"],
},
],
},
}],
}],
}],
}])
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.NewTeoRuleEngine(ctx, "rule1", &tencentcloud.TeoRuleEngineArgs{
ZoneId: pulumi.Any(tencentcloud_teo_zone.Example.Id),
RuleName: pulumi.String("test-rule"),
Status: pulumi.String("disable"),
Rules: tencentcloud.TeoRuleEngineRuleArray{
&tencentcloud.TeoRuleEngineRuleArgs{
Actions: tencentcloud.TeoRuleEngineRuleActionArray{
&tencentcloud.TeoRuleEngineRuleActionArgs{
NormalAction: &tencentcloud.TeoRuleEngineRuleActionNormalActionArgs{
Action: pulumi.String("UpstreamUrlRedirect"),
Parameters: tencentcloud.TeoRuleEngineRuleActionNormalActionParameterArray{
&tencentcloud.TeoRuleEngineRuleActionNormalActionParameterArgs{
Name: pulumi.String("Type"),
Values: pulumi.StringArray{
pulumi.String("Path"),
},
},
&tencentcloud.TeoRuleEngineRuleActionNormalActionParameterArgs{
Name: pulumi.String("Action"),
Values: pulumi.StringArray{
pulumi.String("addPrefix"),
},
},
&tencentcloud.TeoRuleEngineRuleActionNormalActionParameterArgs{
Name: pulumi.String("Value"),
Values: pulumi.StringArray{
pulumi.String("/sss"),
},
},
},
},
},
},
Ors: tencentcloud.TeoRuleEngineRuleOrArray{
&tencentcloud.TeoRuleEngineRuleOrArgs{
Ands: tencentcloud.TeoRuleEngineRuleOrAndArray{
&tencentcloud.TeoRuleEngineRuleOrAndArgs{
Operator: pulumi.String("equal"),
Target: pulumi.String("host"),
IgnoreCase: pulumi.Bool(false),
Values: pulumi.StringArray{
pulumi.String("a.tf-teo-t.xyz"),
},
},
&tencentcloud.TeoRuleEngineRuleOrAndArgs{
Operator: pulumi.String("equal"),
Target: pulumi.String("extension"),
IgnoreCase: pulumi.Bool(false),
Values: pulumi.StringArray{
pulumi.String("jpg"),
},
},
},
},
&tencentcloud.TeoRuleEngineRuleOrArgs{
Ands: tencentcloud.TeoRuleEngineRuleOrAndArray{
&tencentcloud.TeoRuleEngineRuleOrAndArgs{
Operator: pulumi.String("equal"),
Target: pulumi.String("filename"),
IgnoreCase: pulumi.Bool(false),
Values: pulumi.StringArray{
pulumi.String("test.txt"),
},
},
},
},
},
SubRules: tencentcloud.TeoRuleEngineRuleSubRuleArray{
&tencentcloud.TeoRuleEngineRuleSubRuleArgs{
Tags: pulumi.StringArray{
pulumi.String("png"),
},
Rules: tencentcloud.TeoRuleEngineRuleSubRuleRuleArray{
&tencentcloud.TeoRuleEngineRuleSubRuleRuleArgs{
Ors: tencentcloud.TeoRuleEngineRuleSubRuleRuleOrArray{
&tencentcloud.TeoRuleEngineRuleSubRuleRuleOrArgs{
Ands: tencentcloud.TeoRuleEngineRuleSubRuleRuleOrAndArray{
&tencentcloud.TeoRuleEngineRuleSubRuleRuleOrAndArgs{
Operator: pulumi.String("notequal"),
Target: pulumi.String("host"),
IgnoreCase: pulumi.Bool(false),
Values: pulumi.StringArray{
pulumi.String("a.tf-teo-t.xyz"),
},
},
&tencentcloud.TeoRuleEngineRuleSubRuleRuleOrAndArgs{
Operator: pulumi.String("equal"),
Target: pulumi.String("extension"),
IgnoreCase: pulumi.Bool(false),
Values: pulumi.StringArray{
pulumi.String("png"),
},
},
},
},
&tencentcloud.TeoRuleEngineRuleSubRuleRuleOrArgs{
Ands: tencentcloud.TeoRuleEngineRuleSubRuleRuleOrAndArray{
&tencentcloud.TeoRuleEngineRuleSubRuleRuleOrAndArgs{
Operator: pulumi.String("notequal"),
Target: pulumi.String("filename"),
IgnoreCase: pulumi.Bool(false),
Values: pulumi.StringArray{
pulumi.String("test.txt"),
},
},
},
},
},
Actions: tencentcloud.TeoRuleEngineRuleSubRuleRuleActionArray{
&tencentcloud.TeoRuleEngineRuleSubRuleRuleActionArgs{
NormalAction: &tencentcloud.TeoRuleEngineRuleSubRuleRuleActionNormalActionArgs{
Action: pulumi.String("UpstreamUrlRedirect"),
Parameters: tencentcloud.TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArray{
&tencentcloud.TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArgs{
Name: pulumi.String("Type"),
Values: pulumi.StringArray{
pulumi.String("Path"),
},
},
&tencentcloud.TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArgs{
Name: pulumi.String("Action"),
Values: pulumi.StringArray{
pulumi.String("addPrefix"),
},
},
&tencentcloud.TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArgs{
Name: pulumi.String("Value"),
Values: pulumi.StringArray{
pulumi.String("/www"),
},
},
},
},
},
},
},
},
},
},
},
},
})
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 rule1 = new Tencentcloud.TeoRuleEngine("rule1", new()
{
ZoneId = tencentcloud_teo_zone.Example.Id,
RuleName = "test-rule",
Status = "disable",
Rules = new[]
{
new Tencentcloud.Inputs.TeoRuleEngineRuleArgs
{
Actions = new[]
{
new Tencentcloud.Inputs.TeoRuleEngineRuleActionArgs
{
NormalAction = new Tencentcloud.Inputs.TeoRuleEngineRuleActionNormalActionArgs
{
Action = "UpstreamUrlRedirect",
Parameters = new[]
{
new Tencentcloud.Inputs.TeoRuleEngineRuleActionNormalActionParameterArgs
{
Name = "Type",
Values = new[]
{
"Path",
},
},
new Tencentcloud.Inputs.TeoRuleEngineRuleActionNormalActionParameterArgs
{
Name = "Action",
Values = new[]
{
"addPrefix",
},
},
new Tencentcloud.Inputs.TeoRuleEngineRuleActionNormalActionParameterArgs
{
Name = "Value",
Values = new[]
{
"/sss",
},
},
},
},
},
},
Ors = new[]
{
new Tencentcloud.Inputs.TeoRuleEngineRuleOrArgs
{
Ands = new[]
{
new Tencentcloud.Inputs.TeoRuleEngineRuleOrAndArgs
{
Operator = "equal",
Target = "host",
IgnoreCase = false,
Values = new[]
{
"a.tf-teo-t.xyz",
},
},
new Tencentcloud.Inputs.TeoRuleEngineRuleOrAndArgs
{
Operator = "equal",
Target = "extension",
IgnoreCase = false,
Values = new[]
{
"jpg",
},
},
},
},
new Tencentcloud.Inputs.TeoRuleEngineRuleOrArgs
{
Ands = new[]
{
new Tencentcloud.Inputs.TeoRuleEngineRuleOrAndArgs
{
Operator = "equal",
Target = "filename",
IgnoreCase = false,
Values = new[]
{
"test.txt",
},
},
},
},
},
SubRules = new[]
{
new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleArgs
{
Tags = new[]
{
"png",
},
Rules = new[]
{
new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleArgs
{
Ors = new[]
{
new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleOrArgs
{
Ands = new[]
{
new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleOrAndArgs
{
Operator = "notequal",
Target = "host",
IgnoreCase = false,
Values = new[]
{
"a.tf-teo-t.xyz",
},
},
new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleOrAndArgs
{
Operator = "equal",
Target = "extension",
IgnoreCase = false,
Values = new[]
{
"png",
},
},
},
},
new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleOrArgs
{
Ands = new[]
{
new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleOrAndArgs
{
Operator = "notequal",
Target = "filename",
IgnoreCase = false,
Values = new[]
{
"test.txt",
},
},
},
},
},
Actions = new[]
{
new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleActionArgs
{
NormalAction = new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleActionNormalActionArgs
{
Action = "UpstreamUrlRedirect",
Parameters = new[]
{
new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArgs
{
Name = "Type",
Values = new[]
{
"Path",
},
},
new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArgs
{
Name = "Action",
Values = new[]
{
"addPrefix",
},
},
new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArgs
{
Name = "Value",
Values = new[]
{
"/www",
},
},
},
},
},
},
},
},
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TeoRuleEngine;
import com.pulumi.tencentcloud.TeoRuleEngineArgs;
import com.pulumi.tencentcloud.inputs.TeoRuleEngineRuleArgs;
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 rule1 = new TeoRuleEngine("rule1", TeoRuleEngineArgs.builder()
.zoneId(tencentcloud_teo_zone.example().id())
.ruleName("test-rule")
.status("disable")
.rules(TeoRuleEngineRuleArgs.builder()
.actions(TeoRuleEngineRuleActionArgs.builder()
.normalAction(TeoRuleEngineRuleActionNormalActionArgs.builder()
.action("UpstreamUrlRedirect")
.parameters(
TeoRuleEngineRuleActionNormalActionParameterArgs.builder()
.name("Type")
.values("Path")
.build(),
TeoRuleEngineRuleActionNormalActionParameterArgs.builder()
.name("Action")
.values("addPrefix")
.build(),
TeoRuleEngineRuleActionNormalActionParameterArgs.builder()
.name("Value")
.values("/sss")
.build())
.build())
.build())
.ors(
TeoRuleEngineRuleOrArgs.builder()
.ands(
TeoRuleEngineRuleOrAndArgs.builder()
.operator("equal")
.target("host")
.ignoreCase(false)
.values("a.tf-teo-t.xyz")
.build(),
TeoRuleEngineRuleOrAndArgs.builder()
.operator("equal")
.target("extension")
.ignoreCase(false)
.values("jpg")
.build())
.build(),
TeoRuleEngineRuleOrArgs.builder()
.ands(TeoRuleEngineRuleOrAndArgs.builder()
.operator("equal")
.target("filename")
.ignoreCase(false)
.values("test.txt")
.build())
.build())
.subRules(TeoRuleEngineRuleSubRuleArgs.builder()
.tags("png")
.rules(TeoRuleEngineRuleSubRuleRuleArgs.builder()
.ors(
TeoRuleEngineRuleSubRuleRuleOrArgs.builder()
.ands(
TeoRuleEngineRuleSubRuleRuleOrAndArgs.builder()
.operator("notequal")
.target("host")
.ignoreCase(false)
.values("a.tf-teo-t.xyz")
.build(),
TeoRuleEngineRuleSubRuleRuleOrAndArgs.builder()
.operator("equal")
.target("extension")
.ignoreCase(false)
.values("png")
.build())
.build(),
TeoRuleEngineRuleSubRuleRuleOrArgs.builder()
.ands(TeoRuleEngineRuleSubRuleRuleOrAndArgs.builder()
.operator("notequal")
.target("filename")
.ignoreCase(false)
.values("test.txt")
.build())
.build())
.actions(TeoRuleEngineRuleSubRuleRuleActionArgs.builder()
.normalAction(TeoRuleEngineRuleSubRuleRuleActionNormalActionArgs.builder()
.action("UpstreamUrlRedirect")
.parameters(
TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArgs.builder()
.name("Type")
.values("Path")
.build(),
TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArgs.builder()
.name("Action")
.values("addPrefix")
.build(),
TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArgs.builder()
.name("Value")
.values("/www")
.build())
.build())
.build())
.build())
.build())
.build())
.build());
}
}
resources:
rule1:
type: tencentcloud:TeoRuleEngine
properties:
zoneId: ${tencentcloud_teo_zone.example.id}
ruleName: test-rule
status: disable
rules:
- actions:
- normalAction:
action: UpstreamUrlRedirect
parameters:
- name: Type
values:
- Path
- name: Action
values:
- addPrefix
- name: Value
values:
- /sss
ors:
- ands:
- operator: equal
target: host
ignoreCase: false
values:
- a.tf-teo-t.xyz
- operator: equal
target: extension
ignoreCase: false
values:
- jpg
- ands:
- operator: equal
target: filename
ignoreCase: false
values:
- test.txt
subRules:
- tags:
- png
rules:
- ors:
- ands:
- operator: notequal
target: host
ignoreCase: false
values:
- a.tf-teo-t.xyz
- operator: equal
target: extension
ignoreCase: false
values:
- png
- ands:
- operator: notequal
target: filename
ignoreCase: false
values:
- test.txt
actions:
- normalAction:
action: UpstreamUrlRedirect
parameters:
- name: Type
values:
- Path
- name: Action
values:
- addPrefix
- name: Value
values:
- /www
Create TeoRuleEngine Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TeoRuleEngine(name: string, args: TeoRuleEngineArgs, opts?: CustomResourceOptions);
@overload
def TeoRuleEngine(resource_name: str,
args: TeoRuleEngineArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TeoRuleEngine(resource_name: str,
opts: Optional[ResourceOptions] = None,
rule_name: Optional[str] = None,
rules: Optional[Sequence[TeoRuleEngineRuleArgs]] = None,
status: Optional[str] = None,
zone_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
teo_rule_engine_id: Optional[str] = None)
func NewTeoRuleEngine(ctx *Context, name string, args TeoRuleEngineArgs, opts ...ResourceOption) (*TeoRuleEngine, error)
public TeoRuleEngine(string name, TeoRuleEngineArgs args, CustomResourceOptions? opts = null)
public TeoRuleEngine(String name, TeoRuleEngineArgs args)
public TeoRuleEngine(String name, TeoRuleEngineArgs args, CustomResourceOptions options)
type: tencentcloud:TeoRuleEngine
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 TeoRuleEngineArgs
- 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 TeoRuleEngineArgs
- 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 TeoRuleEngineArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TeoRuleEngineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TeoRuleEngineArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TeoRuleEngine 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 TeoRuleEngine resource accepts the following input properties:
- Rule
Name string - The rule name (1 to 255 characters).
- Rules
List<Teo
Rule Engine Rule> - Rule items list.
- Status string
- Rule status. Values:
- Zone
Id string - ID of the site.
- List<string>
- rule tag list.
- Teo
Rule stringEngine Id - ID of the resource.
- Rule
Name string - The rule name (1 to 255 characters).
- Rules
[]Teo
Rule Engine Rule Args - Rule items list.
- Status string
- Rule status. Values:
- Zone
Id string - ID of the site.
- []string
- rule tag list.
- Teo
Rule stringEngine Id - ID of the resource.
- rule
Name String - The rule name (1 to 255 characters).
- rules
List<Teo
Rule Engine Rule> - Rule items list.
- status String
- Rule status. Values:
- zone
Id String - ID of the site.
- List<String>
- rule tag list.
- teo
Rule StringEngine Id - ID of the resource.
- rule
Name string - The rule name (1 to 255 characters).
- rules
Teo
Rule Engine Rule[] - Rule items list.
- status string
- Rule status. Values:
- zone
Id string - ID of the site.
- string[]
- rule tag list.
- teo
Rule stringEngine Id - ID of the resource.
- rule_
name str - The rule name (1 to 255 characters).
- rules
Sequence[Teo
Rule Engine Rule Args] - Rule items list.
- status str
- Rule status. Values:
- zone_
id str - ID of the site.
- Sequence[str]
- rule tag list.
- teo_
rule_ strengine_ id - ID of the resource.
- rule
Name String - The rule name (1 to 255 characters).
- rules List<Property Map>
- Rule items list.
- status String
- Rule status. Values:
- zone
Id String - ID of the site.
- List<String>
- rule tag list.
- teo
Rule StringEngine Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TeoRuleEngine resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Rule
Id string - Rule ID.
- Rule
Priority double - Rule priority, the larger the value, the higher the priority, the minimum is 1.
- Id string
- The provider-assigned unique ID for this managed resource.
- Rule
Id string - Rule ID.
- Rule
Priority float64 - Rule priority, the larger the value, the higher the priority, the minimum is 1.
- id String
- The provider-assigned unique ID for this managed resource.
- rule
Id String - Rule ID.
- rule
Priority Double - Rule priority, the larger the value, the higher the priority, the minimum is 1.
- id string
- The provider-assigned unique ID for this managed resource.
- rule
Id string - Rule ID.
- rule
Priority number - Rule priority, the larger the value, the higher the priority, the minimum is 1.
- id str
- The provider-assigned unique ID for this managed resource.
- rule_
id str - Rule ID.
- rule_
priority float - Rule priority, the larger the value, the higher the priority, the minimum is 1.
- id String
- The provider-assigned unique ID for this managed resource.
- rule
Id String - Rule ID.
- rule
Priority Number - Rule priority, the larger the value, the higher the priority, the minimum is 1.
Look up Existing TeoRuleEngine Resource
Get an existing TeoRuleEngine 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?: TeoRuleEngineState, opts?: CustomResourceOptions): TeoRuleEngine
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
rule_id: Optional[str] = None,
rule_name: Optional[str] = None,
rule_priority: Optional[float] = None,
rules: Optional[Sequence[TeoRuleEngineRuleArgs]] = None,
status: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
teo_rule_engine_id: Optional[str] = None,
zone_id: Optional[str] = None) -> TeoRuleEngine
func GetTeoRuleEngine(ctx *Context, name string, id IDInput, state *TeoRuleEngineState, opts ...ResourceOption) (*TeoRuleEngine, error)
public static TeoRuleEngine Get(string name, Input<string> id, TeoRuleEngineState? state, CustomResourceOptions? opts = null)
public static TeoRuleEngine get(String name, Output<String> id, TeoRuleEngineState state, CustomResourceOptions options)
resources: _: type: tencentcloud:TeoRuleEngine 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.
- Rule
Id string - Rule ID.
- Rule
Name string - The rule name (1 to 255 characters).
- Rule
Priority double - Rule priority, the larger the value, the higher the priority, the minimum is 1.
- Rules
List<Teo
Rule Engine Rule> - Rule items list.
- Status string
- Rule status. Values:
- List<string>
- rule tag list.
- Teo
Rule stringEngine Id - ID of the resource.
- Zone
Id string - ID of the site.
- Rule
Id string - Rule ID.
- Rule
Name string - The rule name (1 to 255 characters).
- Rule
Priority float64 - Rule priority, the larger the value, the higher the priority, the minimum is 1.
- Rules
[]Teo
Rule Engine Rule Args - Rule items list.
- Status string
- Rule status. Values:
- []string
- rule tag list.
- Teo
Rule stringEngine Id - ID of the resource.
- Zone
Id string - ID of the site.
- rule
Id String - Rule ID.
- rule
Name String - The rule name (1 to 255 characters).
- rule
Priority Double - Rule priority, the larger the value, the higher the priority, the minimum is 1.
- rules
List<Teo
Rule Engine Rule> - Rule items list.
- status String
- Rule status. Values:
- List<String>
- rule tag list.
- teo
Rule StringEngine Id - ID of the resource.
- zone
Id String - ID of the site.
- rule
Id string - Rule ID.
- rule
Name string - The rule name (1 to 255 characters).
- rule
Priority number - Rule priority, the larger the value, the higher the priority, the minimum is 1.
- rules
Teo
Rule Engine Rule[] - Rule items list.
- status string
- Rule status. Values:
- string[]
- rule tag list.
- teo
Rule stringEngine Id - ID of the resource.
- zone
Id string - ID of the site.
- rule_
id str - Rule ID.
- rule_
name str - The rule name (1 to 255 characters).
- rule_
priority float - Rule priority, the larger the value, the higher the priority, the minimum is 1.
- rules
Sequence[Teo
Rule Engine Rule Args] - Rule items list.
- status str
- Rule status. Values:
- Sequence[str]
- rule tag list.
- teo_
rule_ strengine_ id - ID of the resource.
- zone_
id str - ID of the site.
- rule
Id String - Rule ID.
- rule
Name String - The rule name (1 to 255 characters).
- rule
Priority Number - Rule priority, the larger the value, the higher the priority, the minimum is 1.
- rules List<Property Map>
- Rule items list.
- status String
- Rule status. Values:
- List<String>
- rule tag list.
- teo
Rule StringEngine Id - ID of the resource.
- zone
Id String - ID of the site.
Supporting Types
TeoRuleEngineRule, TeoRuleEngineRuleArgs
- Ors
List<Teo
Rule Engine Rule Or> - OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
- Actions
List<Teo
Rule Engine Rule Action> - Feature to be executed.
- Sub
Rules List<TeoRule Engine Rule Sub Rule> - The nested rule.
- Ors
[]Teo
Rule Engine Rule Or - OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
- Actions
[]Teo
Rule Engine Rule Action - Feature to be executed.
- Sub
Rules []TeoRule Engine Rule Sub Rule - The nested rule.
- ors
List<Teo
Rule Engine Rule Or> - OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
- actions
List<Teo
Rule Engine Rule Action> - Feature to be executed.
- sub
Rules List<TeoRule Engine Rule Sub Rule> - The nested rule.
- ors
Teo
Rule Engine Rule Or[] - OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
- actions
Teo
Rule Engine Rule Action[] - Feature to be executed.
- sub
Rules TeoRule Engine Rule Sub Rule[] - The nested rule.
- ors
Sequence[Teo
Rule Engine Rule Or] - OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
- actions
Sequence[Teo
Rule Engine Rule Action] - Feature to be executed.
- sub_
rules Sequence[TeoRule Engine Rule Sub Rule] - The nested rule.
- ors List<Property Map>
- OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
- actions List<Property Map>
- Feature to be executed.
- sub
Rules List<Property Map> - The nested rule.
TeoRuleEngineRuleAction, TeoRuleEngineRuleActionArgs
- Code
Action TeoRule Engine Rule Action Code Action - Feature operation with a status code. Features of this type include:
ErrorPage
: Custom error page.StatusCodeCache
: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
- Normal
Action TeoRule Engine Rule Action Normal Action - Common operation. Values:
AccessUrlRedirect
: Access URL rewrite.UpstreamUrlRedirect
: Origin-pull URL rewrite.QUIC
: QUIC.WebSocket
: WebSocket.VideoSeek
: Video dragging.Authentication
: Token authentication.CacheKey
: Custom cache key.Cache
: Node cache TTL.MaxAge
: Browser cache TTL.OfflineCache
: Offline cache.SmartRouting
: Smart acceleration.RangeOriginPull
: Range GETs.UpstreamHttp2
: HTTP/2 forwarding.HostHeader
: Host header rewrite.ForceRedirect
: Force HTTPS.OriginPullProtocol
: Origin-pull HTTPS.CachePrefresh
: Cache prefresh.Compression
: Smart compression.Hsts
.ClientIpHeader
.SslTlsSecureConf
.OcspStapling
.Http2
: HTTP/2 access.UpstreamFollowRedirect
: Follow origin redirect.Origin
: Origin. Note: This field may returnnull
, indicating that no valid value can be obtained.
- Rewrite
Action TeoRule Engine Rule Action Rewrite Action - Feature operation with a request/response header. Features of this type include:
RequestHeader
: HTTP request header modification.ResponseHeader
: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
- Code
Action TeoRule Engine Rule Action Code Action - Feature operation with a status code. Features of this type include:
ErrorPage
: Custom error page.StatusCodeCache
: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
- Normal
Action TeoRule Engine Rule Action Normal Action - Common operation. Values:
AccessUrlRedirect
: Access URL rewrite.UpstreamUrlRedirect
: Origin-pull URL rewrite.QUIC
: QUIC.WebSocket
: WebSocket.VideoSeek
: Video dragging.Authentication
: Token authentication.CacheKey
: Custom cache key.Cache
: Node cache TTL.MaxAge
: Browser cache TTL.OfflineCache
: Offline cache.SmartRouting
: Smart acceleration.RangeOriginPull
: Range GETs.UpstreamHttp2
: HTTP/2 forwarding.HostHeader
: Host header rewrite.ForceRedirect
: Force HTTPS.OriginPullProtocol
: Origin-pull HTTPS.CachePrefresh
: Cache prefresh.Compression
: Smart compression.Hsts
.ClientIpHeader
.SslTlsSecureConf
.OcspStapling
.Http2
: HTTP/2 access.UpstreamFollowRedirect
: Follow origin redirect.Origin
: Origin. Note: This field may returnnull
, indicating that no valid value can be obtained.
- Rewrite
Action TeoRule Engine Rule Action Rewrite Action - Feature operation with a request/response header. Features of this type include:
RequestHeader
: HTTP request header modification.ResponseHeader
: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
- code
Action TeoRule Engine Rule Action Code Action - Feature operation with a status code. Features of this type include:
ErrorPage
: Custom error page.StatusCodeCache
: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
- normal
Action TeoRule Engine Rule Action Normal Action - Common operation. Values:
AccessUrlRedirect
: Access URL rewrite.UpstreamUrlRedirect
: Origin-pull URL rewrite.QUIC
: QUIC.WebSocket
: WebSocket.VideoSeek
: Video dragging.Authentication
: Token authentication.CacheKey
: Custom cache key.Cache
: Node cache TTL.MaxAge
: Browser cache TTL.OfflineCache
: Offline cache.SmartRouting
: Smart acceleration.RangeOriginPull
: Range GETs.UpstreamHttp2
: HTTP/2 forwarding.HostHeader
: Host header rewrite.ForceRedirect
: Force HTTPS.OriginPullProtocol
: Origin-pull HTTPS.CachePrefresh
: Cache prefresh.Compression
: Smart compression.Hsts
.ClientIpHeader
.SslTlsSecureConf
.OcspStapling
.Http2
: HTTP/2 access.UpstreamFollowRedirect
: Follow origin redirect.Origin
: Origin. Note: This field may returnnull
, indicating that no valid value can be obtained.
- rewrite
Action TeoRule Engine Rule Action Rewrite Action - Feature operation with a request/response header. Features of this type include:
RequestHeader
: HTTP request header modification.ResponseHeader
: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
- code
Action TeoRule Engine Rule Action Code Action - Feature operation with a status code. Features of this type include:
ErrorPage
: Custom error page.StatusCodeCache
: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
- normal
Action TeoRule Engine Rule Action Normal Action - Common operation. Values:
AccessUrlRedirect
: Access URL rewrite.UpstreamUrlRedirect
: Origin-pull URL rewrite.QUIC
: QUIC.WebSocket
: WebSocket.VideoSeek
: Video dragging.Authentication
: Token authentication.CacheKey
: Custom cache key.Cache
: Node cache TTL.MaxAge
: Browser cache TTL.OfflineCache
: Offline cache.SmartRouting
: Smart acceleration.RangeOriginPull
: Range GETs.UpstreamHttp2
: HTTP/2 forwarding.HostHeader
: Host header rewrite.ForceRedirect
: Force HTTPS.OriginPullProtocol
: Origin-pull HTTPS.CachePrefresh
: Cache prefresh.Compression
: Smart compression.Hsts
.ClientIpHeader
.SslTlsSecureConf
.OcspStapling
.Http2
: HTTP/2 access.UpstreamFollowRedirect
: Follow origin redirect.Origin
: Origin. Note: This field may returnnull
, indicating that no valid value can be obtained.
- rewrite
Action TeoRule Engine Rule Action Rewrite Action - Feature operation with a request/response header. Features of this type include:
RequestHeader
: HTTP request header modification.ResponseHeader
: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
- code_
action TeoRule Engine Rule Action Code Action - Feature operation with a status code. Features of this type include:
ErrorPage
: Custom error page.StatusCodeCache
: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
- normal_
action TeoRule Engine Rule Action Normal Action - Common operation. Values:
AccessUrlRedirect
: Access URL rewrite.UpstreamUrlRedirect
: Origin-pull URL rewrite.QUIC
: QUIC.WebSocket
: WebSocket.VideoSeek
: Video dragging.Authentication
: Token authentication.CacheKey
: Custom cache key.Cache
: Node cache TTL.MaxAge
: Browser cache TTL.OfflineCache
: Offline cache.SmartRouting
: Smart acceleration.RangeOriginPull
: Range GETs.UpstreamHttp2
: HTTP/2 forwarding.HostHeader
: Host header rewrite.ForceRedirect
: Force HTTPS.OriginPullProtocol
: Origin-pull HTTPS.CachePrefresh
: Cache prefresh.Compression
: Smart compression.Hsts
.ClientIpHeader
.SslTlsSecureConf
.OcspStapling
.Http2
: HTTP/2 access.UpstreamFollowRedirect
: Follow origin redirect.Origin
: Origin. Note: This field may returnnull
, indicating that no valid value can be obtained.
- rewrite_
action TeoRule Engine Rule Action Rewrite Action - Feature operation with a request/response header. Features of this type include:
RequestHeader
: HTTP request header modification.ResponseHeader
: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
- code
Action Property Map - Feature operation with a status code. Features of this type include:
ErrorPage
: Custom error page.StatusCodeCache
: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
- normal
Action Property Map - Common operation. Values:
AccessUrlRedirect
: Access URL rewrite.UpstreamUrlRedirect
: Origin-pull URL rewrite.QUIC
: QUIC.WebSocket
: WebSocket.VideoSeek
: Video dragging.Authentication
: Token authentication.CacheKey
: Custom cache key.Cache
: Node cache TTL.MaxAge
: Browser cache TTL.OfflineCache
: Offline cache.SmartRouting
: Smart acceleration.RangeOriginPull
: Range GETs.UpstreamHttp2
: HTTP/2 forwarding.HostHeader
: Host header rewrite.ForceRedirect
: Force HTTPS.OriginPullProtocol
: Origin-pull HTTPS.CachePrefresh
: Cache prefresh.Compression
: Smart compression.Hsts
.ClientIpHeader
.SslTlsSecureConf
.OcspStapling
.Http2
: HTTP/2 access.UpstreamFollowRedirect
: Follow origin redirect.Origin
: Origin. Note: This field may returnnull
, indicating that no valid value can be obtained.
- rewrite
Action Property Map - Feature operation with a request/response header. Features of this type include:
RequestHeader
: HTTP request header modification.ResponseHeader
: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
TeoRuleEngineRuleActionCodeAction, TeoRuleEngineRuleActionCodeActionArgs
- Action string
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- Parameters
List<Teo
Rule Engine Rule Action Code Action Parameter> - Operation parameter.
- Action string
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- Parameters
[]Teo
Rule Engine Rule Action Code Action Parameter - Operation parameter.
- action String
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters
List<Teo
Rule Engine Rule Action Code Action Parameter> - Operation parameter.
- action string
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters
Teo
Rule Engine Rule Action Code Action Parameter[] - Operation parameter.
- action str
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters
Sequence[Teo
Rule Engine Rule Action Code Action Parameter] - Operation parameter.
- action String
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters List<Property Map>
- Operation parameter.
TeoRuleEngineRuleActionCodeActionParameter, TeoRuleEngineRuleActionCodeActionParameterArgs
- Name string
- Parameter name.
- Status
Code double - The status code.
- Values List<string>
- Parameter value.
- Name string
- Parameter name.
- Status
Code float64 - The status code.
- Values []string
- Parameter value.
- name String
- Parameter name.
- status
Code Double - The status code.
- values List<String>
- Parameter value.
- name string
- Parameter name.
- status
Code number - The status code.
- values string[]
- Parameter value.
- name str
- Parameter name.
- status_
code float - The status code.
- values Sequence[str]
- Parameter value.
- name String
- Parameter name.
- status
Code Number - The status code.
- values List<String>
- Parameter value.
TeoRuleEngineRuleActionNormalAction, TeoRuleEngineRuleActionNormalActionArgs
- Action string
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- Parameters
List<Teo
Rule Engine Rule Action Normal Action Parameter> - Parameter.
- Action string
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- Parameters
[]Teo
Rule Engine Rule Action Normal Action Parameter - Parameter.
- action String
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters
List<Teo
Rule Engine Rule Action Normal Action Parameter> - Parameter.
- action string
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters
Teo
Rule Engine Rule Action Normal Action Parameter[] - Parameter.
- action str
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters
Sequence[Teo
Rule Engine Rule Action Normal Action Parameter] - Parameter.
- action String
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters List<Property Map>
- Parameter.
TeoRuleEngineRuleActionNormalActionParameter, TeoRuleEngineRuleActionNormalActionParameterArgs
TeoRuleEngineRuleActionRewriteAction, TeoRuleEngineRuleActionRewriteActionArgs
- Action string
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- Parameters
List<Teo
Rule Engine Rule Action Rewrite Action Parameter> - Parameter.
- Action string
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- Parameters
[]Teo
Rule Engine Rule Action Rewrite Action Parameter - Parameter.
- action String
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters
List<Teo
Rule Engine Rule Action Rewrite Action Parameter> - Parameter.
- action string
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters
Teo
Rule Engine Rule Action Rewrite Action Parameter[] - Parameter.
- action str
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters
Sequence[Teo
Rule Engine Rule Action Rewrite Action Parameter] - Parameter.
- action String
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters List<Property Map>
- Parameter.
TeoRuleEngineRuleActionRewriteActionParameter, TeoRuleEngineRuleActionRewriteActionParameterArgs
- Action string
- Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:
- add: Add the HTTP header.
- set: Rewrite the HTTP header.
- del: Delete the HTTP header.
- Name string
- Parameter name.
- Values List<string>
- Parameter value.
- Action string
- Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:
- add: Add the HTTP header.
- set: Rewrite the HTTP header.
- del: Delete the HTTP header.
- Name string
- Parameter name.
- Values []string
- Parameter value.
- action String
- Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:
- add: Add the HTTP header.
- set: Rewrite the HTTP header.
- del: Delete the HTTP header.
- name String
- Parameter name.
- values List<String>
- Parameter value.
- action string
- Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:
- add: Add the HTTP header.
- set: Rewrite the HTTP header.
- del: Delete the HTTP header.
- name string
- Parameter name.
- values string[]
- Parameter value.
- action str
- Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:
- add: Add the HTTP header.
- set: Rewrite the HTTP header.
- del: Delete the HTTP header.
- name str
- Parameter name.
- values Sequence[str]
- Parameter value.
- action String
- Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:
- add: Add the HTTP header.
- set: Rewrite the HTTP header.
- del: Delete the HTTP header.
- name String
- Parameter name.
- values List<String>
- Parameter value.
TeoRuleEngineRuleOr, TeoRuleEngineRuleOrArgs
- Ands
List<Teo
Rule Engine Rule Or And> - Rule engine condition. This condition will be considered met if all items in the array are met.
- Ands
[]Teo
Rule Engine Rule Or And - Rule engine condition. This condition will be considered met if all items in the array are met.
- ands
List<Teo
Rule Engine Rule Or And> - Rule engine condition. This condition will be considered met if all items in the array are met.
- ands
Teo
Rule Engine Rule Or And[] - Rule engine condition. This condition will be considered met if all items in the array are met.
- ands
Sequence[Teo
Rule Engine Rule Or And] - Rule engine condition. This condition will be considered met if all items in the array are met.
- ands List<Property Map>
- Rule engine condition. This condition will be considered met if all items in the array are met.
TeoRuleEngineRuleOrAnd, TeoRuleEngineRuleOrAndArgs
- Operator string
- Operator. Valid values:
- Target string
- The match type. Values:
- Ignore
Case bool - Whether the parameter value is case insensitive. Default value: false.
- Name string
- The parameter name of the match type. This field is required only when
Target=query_string/request_header
. - Values List<string>
- The parameter value of the match type. It can be an empty string only when
Target=query string/request header
andOperator=exist/notexist
.- When
Target=extension
, enter the file extension, such as "jpg" and "txt". - When
Target=filename
, enter the file name, such as "foo" in "foo.jpg". - When
Target=all
, it indicates any site request. - When
Target=host
, enter the host under the current site, such as "www.maxx55.com". - When
Target=url
, enter the partial URL path under the current site, such as "/example". - When
Target=full_url
, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example". - When
Target=client_country
, enter the ISO-3166 country/region code. - When
Target=query_string
, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1". - When
Target=request_header
, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
- When
- Operator string
- Operator. Valid values:
- Target string
- The match type. Values:
- Ignore
Case bool - Whether the parameter value is case insensitive. Default value: false.
- Name string
- The parameter name of the match type. This field is required only when
Target=query_string/request_header
. - Values []string
- The parameter value of the match type. It can be an empty string only when
Target=query string/request header
andOperator=exist/notexist
.- When
Target=extension
, enter the file extension, such as "jpg" and "txt". - When
Target=filename
, enter the file name, such as "foo" in "foo.jpg". - When
Target=all
, it indicates any site request. - When
Target=host
, enter the host under the current site, such as "www.maxx55.com". - When
Target=url
, enter the partial URL path under the current site, such as "/example". - When
Target=full_url
, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example". - When
Target=client_country
, enter the ISO-3166 country/region code. - When
Target=query_string
, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1". - When
Target=request_header
, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
- When
- operator String
- Operator. Valid values:
- target String
- The match type. Values:
- ignore
Case Boolean - Whether the parameter value is case insensitive. Default value: false.
- name String
- The parameter name of the match type. This field is required only when
Target=query_string/request_header
. - values List<String>
- The parameter value of the match type. It can be an empty string only when
Target=query string/request header
andOperator=exist/notexist
.- When
Target=extension
, enter the file extension, such as "jpg" and "txt". - When
Target=filename
, enter the file name, such as "foo" in "foo.jpg". - When
Target=all
, it indicates any site request. - When
Target=host
, enter the host under the current site, such as "www.maxx55.com". - When
Target=url
, enter the partial URL path under the current site, such as "/example". - When
Target=full_url
, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example". - When
Target=client_country
, enter the ISO-3166 country/region code. - When
Target=query_string
, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1". - When
Target=request_header
, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
- When
- operator string
- Operator. Valid values:
- target string
- The match type. Values:
- ignore
Case boolean - Whether the parameter value is case insensitive. Default value: false.
- name string
- The parameter name of the match type. This field is required only when
Target=query_string/request_header
. - values string[]
- The parameter value of the match type. It can be an empty string only when
Target=query string/request header
andOperator=exist/notexist
.- When
Target=extension
, enter the file extension, such as "jpg" and "txt". - When
Target=filename
, enter the file name, such as "foo" in "foo.jpg". - When
Target=all
, it indicates any site request. - When
Target=host
, enter the host under the current site, such as "www.maxx55.com". - When
Target=url
, enter the partial URL path under the current site, such as "/example". - When
Target=full_url
, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example". - When
Target=client_country
, enter the ISO-3166 country/region code. - When
Target=query_string
, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1". - When
Target=request_header
, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
- When
- operator str
- Operator. Valid values:
- target str
- The match type. Values:
- ignore_
case bool - Whether the parameter value is case insensitive. Default value: false.
- name str
- The parameter name of the match type. This field is required only when
Target=query_string/request_header
. - values Sequence[str]
- The parameter value of the match type. It can be an empty string only when
Target=query string/request header
andOperator=exist/notexist
.- When
Target=extension
, enter the file extension, such as "jpg" and "txt". - When
Target=filename
, enter the file name, such as "foo" in "foo.jpg". - When
Target=all
, it indicates any site request. - When
Target=host
, enter the host under the current site, such as "www.maxx55.com". - When
Target=url
, enter the partial URL path under the current site, such as "/example". - When
Target=full_url
, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example". - When
Target=client_country
, enter the ISO-3166 country/region code. - When
Target=query_string
, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1". - When
Target=request_header
, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
- When
- operator String
- Operator. Valid values:
- target String
- The match type. Values:
- ignore
Case Boolean - Whether the parameter value is case insensitive. Default value: false.
- name String
- The parameter name of the match type. This field is required only when
Target=query_string/request_header
. - values List<String>
- The parameter value of the match type. It can be an empty string only when
Target=query string/request header
andOperator=exist/notexist
.- When
Target=extension
, enter the file extension, such as "jpg" and "txt". - When
Target=filename
, enter the file name, such as "foo" in "foo.jpg". - When
Target=all
, it indicates any site request. - When
Target=host
, enter the host under the current site, such as "www.maxx55.com". - When
Target=url
, enter the partial URL path under the current site, such as "/example". - When
Target=full_url
, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example". - When
Target=client_country
, enter the ISO-3166 country/region code. - When
Target=query_string
, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1". - When
Target=request_header
, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
- When
TeoRuleEngineRuleSubRule, TeoRuleEngineRuleSubRuleArgs
- Rules
List<Teo
Rule Engine Rule Sub Rule Rule> - Nested rule settings.
- List<string>
- Tag of the rule.
- Rules
[]Teo
Rule Engine Rule Sub Rule Rule - Nested rule settings.
- []string
- Tag of the rule.
- rules
List<Teo
Rule Engine Rule Sub Rule Rule> - Nested rule settings.
- List<String>
- Tag of the rule.
- rules
Teo
Rule Engine Rule Sub Rule Rule[] - Nested rule settings.
- string[]
- Tag of the rule.
- rules
Sequence[Teo
Rule Engine Rule Sub Rule Rule] - Nested rule settings.
- Sequence[str]
- Tag of the rule.
- rules List<Property Map>
- Nested rule settings.
- List<String>
- Tag of the rule.
TeoRuleEngineRuleSubRuleRule, TeoRuleEngineRuleSubRuleRuleArgs
- Ors
List<Teo
Rule Engine Rule Sub Rule Rule Or> - OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
- Actions
List<Teo
Rule Engine Rule Sub Rule Rule Action> - Feature to be executed.
- Ors
[]Teo
Rule Engine Rule Sub Rule Rule Or - OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
- Actions
[]Teo
Rule Engine Rule Sub Rule Rule Action - Feature to be executed.
- ors
List<Teo
Rule Engine Rule Sub Rule Rule Or> - OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
- actions
List<Teo
Rule Engine Rule Sub Rule Rule Action> - Feature to be executed.
- ors
Teo
Rule Engine Rule Sub Rule Rule Or[] - OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
- actions
Teo
Rule Engine Rule Sub Rule Rule Action[] - Feature to be executed.
- ors
Sequence[Teo
Rule Engine Rule Sub Rule Rule Or] - OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
- actions
Sequence[Teo
Rule Engine Rule Sub Rule Rule Action] - Feature to be executed.
- ors List<Property Map>
- OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
- actions List<Property Map>
- Feature to be executed.
TeoRuleEngineRuleSubRuleRuleAction, TeoRuleEngineRuleSubRuleRuleActionArgs
- Code
Action TeoRule Engine Rule Sub Rule Rule Action Code Action - Feature operation with a status code. Features of this type include:
ErrorPage
: Custom error page.StatusCodeCache
: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
- Normal
Action TeoRule Engine Rule Sub Rule Rule Action Normal Action - Common operation. Values:
AccessUrlRedirect
: Access URL rewrite.UpstreamUrlRedirect
: Origin-pull URL rewrite.QUIC
: QUIC.WebSocket
: WebSocket.VideoSeek
: Video dragging.Authentication
: Token authentication.CacheKey
: Custom cache key.Cache
: Node cache TTL.MaxAge
: Browser cache TTL.OfflineCache
: Offline cache.SmartRouting
: Smart acceleration.RangeOriginPull
: Range GETs.UpstreamHttp2
: HTTP/2 forwarding.HostHeader
: Host header rewrite.ForceRedirect
: Force HTTPS.OriginPullProtocol
: Origin-pull HTTPS.CachePrefresh
: Cache prefresh.Compression
: Smart compression.Hsts
.ClientIpHeader
.SslTlsSecureConf
.OcspStapling
.Http2
: HTTP/2 access.UpstreamFollowRedirect
: Follow origin redirect.Origin
: Origin. Note: This field may returnnull
, indicating that no valid value can be obtained.
- Rewrite
Action TeoRule Engine Rule Sub Rule Rule Action Rewrite Action - Feature operation with a request/response header. Features of this type include:
RequestHeader
: HTTP request header modification.ResponseHeader
: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
- Code
Action TeoRule Engine Rule Sub Rule Rule Action Code Action - Feature operation with a status code. Features of this type include:
ErrorPage
: Custom error page.StatusCodeCache
: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
- Normal
Action TeoRule Engine Rule Sub Rule Rule Action Normal Action - Common operation. Values:
AccessUrlRedirect
: Access URL rewrite.UpstreamUrlRedirect
: Origin-pull URL rewrite.QUIC
: QUIC.WebSocket
: WebSocket.VideoSeek
: Video dragging.Authentication
: Token authentication.CacheKey
: Custom cache key.Cache
: Node cache TTL.MaxAge
: Browser cache TTL.OfflineCache
: Offline cache.SmartRouting
: Smart acceleration.RangeOriginPull
: Range GETs.UpstreamHttp2
: HTTP/2 forwarding.HostHeader
: Host header rewrite.ForceRedirect
: Force HTTPS.OriginPullProtocol
: Origin-pull HTTPS.CachePrefresh
: Cache prefresh.Compression
: Smart compression.Hsts
.ClientIpHeader
.SslTlsSecureConf
.OcspStapling
.Http2
: HTTP/2 access.UpstreamFollowRedirect
: Follow origin redirect.Origin
: Origin. Note: This field may returnnull
, indicating that no valid value can be obtained.
- Rewrite
Action TeoRule Engine Rule Sub Rule Rule Action Rewrite Action - Feature operation with a request/response header. Features of this type include:
RequestHeader
: HTTP request header modification.ResponseHeader
: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
- code
Action TeoRule Engine Rule Sub Rule Rule Action Code Action - Feature operation with a status code. Features of this type include:
ErrorPage
: Custom error page.StatusCodeCache
: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
- normal
Action TeoRule Engine Rule Sub Rule Rule Action Normal Action - Common operation. Values:
AccessUrlRedirect
: Access URL rewrite.UpstreamUrlRedirect
: Origin-pull URL rewrite.QUIC
: QUIC.WebSocket
: WebSocket.VideoSeek
: Video dragging.Authentication
: Token authentication.CacheKey
: Custom cache key.Cache
: Node cache TTL.MaxAge
: Browser cache TTL.OfflineCache
: Offline cache.SmartRouting
: Smart acceleration.RangeOriginPull
: Range GETs.UpstreamHttp2
: HTTP/2 forwarding.HostHeader
: Host header rewrite.ForceRedirect
: Force HTTPS.OriginPullProtocol
: Origin-pull HTTPS.CachePrefresh
: Cache prefresh.Compression
: Smart compression.Hsts
.ClientIpHeader
.SslTlsSecureConf
.OcspStapling
.Http2
: HTTP/2 access.UpstreamFollowRedirect
: Follow origin redirect.Origin
: Origin. Note: This field may returnnull
, indicating that no valid value can be obtained.
- rewrite
Action TeoRule Engine Rule Sub Rule Rule Action Rewrite Action - Feature operation with a request/response header. Features of this type include:
RequestHeader
: HTTP request header modification.ResponseHeader
: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
- code
Action TeoRule Engine Rule Sub Rule Rule Action Code Action - Feature operation with a status code. Features of this type include:
ErrorPage
: Custom error page.StatusCodeCache
: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
- normal
Action TeoRule Engine Rule Sub Rule Rule Action Normal Action - Common operation. Values:
AccessUrlRedirect
: Access URL rewrite.UpstreamUrlRedirect
: Origin-pull URL rewrite.QUIC
: QUIC.WebSocket
: WebSocket.VideoSeek
: Video dragging.Authentication
: Token authentication.CacheKey
: Custom cache key.Cache
: Node cache TTL.MaxAge
: Browser cache TTL.OfflineCache
: Offline cache.SmartRouting
: Smart acceleration.RangeOriginPull
: Range GETs.UpstreamHttp2
: HTTP/2 forwarding.HostHeader
: Host header rewrite.ForceRedirect
: Force HTTPS.OriginPullProtocol
: Origin-pull HTTPS.CachePrefresh
: Cache prefresh.Compression
: Smart compression.Hsts
.ClientIpHeader
.SslTlsSecureConf
.OcspStapling
.Http2
: HTTP/2 access.UpstreamFollowRedirect
: Follow origin redirect.Origin
: Origin. Note: This field may returnnull
, indicating that no valid value can be obtained.
- rewrite
Action TeoRule Engine Rule Sub Rule Rule Action Rewrite Action - Feature operation with a request/response header. Features of this type include:
RequestHeader
: HTTP request header modification.ResponseHeader
: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
- code_
action TeoRule Engine Rule Sub Rule Rule Action Code Action - Feature operation with a status code. Features of this type include:
ErrorPage
: Custom error page.StatusCodeCache
: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
- normal_
action TeoRule Engine Rule Sub Rule Rule Action Normal Action - Common operation. Values:
AccessUrlRedirect
: Access URL rewrite.UpstreamUrlRedirect
: Origin-pull URL rewrite.QUIC
: QUIC.WebSocket
: WebSocket.VideoSeek
: Video dragging.Authentication
: Token authentication.CacheKey
: Custom cache key.Cache
: Node cache TTL.MaxAge
: Browser cache TTL.OfflineCache
: Offline cache.SmartRouting
: Smart acceleration.RangeOriginPull
: Range GETs.UpstreamHttp2
: HTTP/2 forwarding.HostHeader
: Host header rewrite.ForceRedirect
: Force HTTPS.OriginPullProtocol
: Origin-pull HTTPS.CachePrefresh
: Cache prefresh.Compression
: Smart compression.Hsts
.ClientIpHeader
.SslTlsSecureConf
.OcspStapling
.Http2
: HTTP/2 access.UpstreamFollowRedirect
: Follow origin redirect.Origin
: Origin. Note: This field may returnnull
, indicating that no valid value can be obtained.
- rewrite_
action TeoRule Engine Rule Sub Rule Rule Action Rewrite Action - Feature operation with a request/response header. Features of this type include:
RequestHeader
: HTTP request header modification.ResponseHeader
: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
- code
Action Property Map - Feature operation with a status code. Features of this type include:
ErrorPage
: Custom error page.StatusCodeCache
: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
- normal
Action Property Map - Common operation. Values:
AccessUrlRedirect
: Access URL rewrite.UpstreamUrlRedirect
: Origin-pull URL rewrite.QUIC
: QUIC.WebSocket
: WebSocket.VideoSeek
: Video dragging.Authentication
: Token authentication.CacheKey
: Custom cache key.Cache
: Node cache TTL.MaxAge
: Browser cache TTL.OfflineCache
: Offline cache.SmartRouting
: Smart acceleration.RangeOriginPull
: Range GETs.UpstreamHttp2
: HTTP/2 forwarding.HostHeader
: Host header rewrite.ForceRedirect
: Force HTTPS.OriginPullProtocol
: Origin-pull HTTPS.CachePrefresh
: Cache prefresh.Compression
: Smart compression.Hsts
.ClientIpHeader
.SslTlsSecureConf
.OcspStapling
.Http2
: HTTP/2 access.UpstreamFollowRedirect
: Follow origin redirect.Origin
: Origin. Note: This field may returnnull
, indicating that no valid value can be obtained.
- rewrite
Action Property Map - Feature operation with a request/response header. Features of this type include:
RequestHeader
: HTTP request header modification.ResponseHeader
: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
TeoRuleEngineRuleSubRuleRuleActionCodeAction, TeoRuleEngineRuleSubRuleRuleActionCodeActionArgs
- Action string
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- Parameters
List<Teo
Rule Engine Rule Sub Rule Rule Action Code Action Parameter> - Operation parameter.
- Action string
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- Parameters
[]Teo
Rule Engine Rule Sub Rule Rule Action Code Action Parameter - Operation parameter.
- action String
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters
List<Teo
Rule Engine Rule Sub Rule Rule Action Code Action Parameter> - Operation parameter.
- action string
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters
Teo
Rule Engine Rule Sub Rule Rule Action Code Action Parameter[] - Operation parameter.
- action str
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters
Sequence[Teo
Rule Engine Rule Sub Rule Rule Action Code Action Parameter] - Operation parameter.
- action String
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters List<Property Map>
- Operation parameter.
TeoRuleEngineRuleSubRuleRuleActionCodeActionParameter, TeoRuleEngineRuleSubRuleRuleActionCodeActionParameterArgs
- Name string
- Parameter name.
- Status
Code double - The status code.
- Values List<string>
- Parameter value.
- Name string
- Parameter name.
- Status
Code float64 - The status code.
- Values []string
- Parameter value.
- name String
- Parameter name.
- status
Code Double - The status code.
- values List<String>
- Parameter value.
- name string
- Parameter name.
- status
Code number - The status code.
- values string[]
- Parameter value.
- name str
- Parameter name.
- status_
code float - The status code.
- values Sequence[str]
- Parameter value.
- name String
- Parameter name.
- status
Code Number - The status code.
- values List<String>
- Parameter value.
TeoRuleEngineRuleSubRuleRuleActionNormalAction, TeoRuleEngineRuleSubRuleRuleActionNormalActionArgs
- Action string
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- Parameters
List<Teo
Rule Engine Rule Sub Rule Rule Action Normal Action Parameter> - Parameter.
- Action string
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- Parameters
[]Teo
Rule Engine Rule Sub Rule Rule Action Normal Action Parameter - Parameter.
- action String
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters
List<Teo
Rule Engine Rule Sub Rule Rule Action Normal Action Parameter> - Parameter.
- action string
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters
Teo
Rule Engine Rule Sub Rule Rule Action Normal Action Parameter[] - Parameter.
- action str
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters
Sequence[Teo
Rule Engine Rule Sub Rule Rule Action Normal Action Parameter] - Parameter.
- action String
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters List<Property Map>
- Parameter.
TeoRuleEngineRuleSubRuleRuleActionNormalActionParameter, TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArgs
TeoRuleEngineRuleSubRuleRuleActionRewriteAction, TeoRuleEngineRuleSubRuleRuleActionRewriteActionArgs
- Action string
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- Parameters
List<Teo
Rule Engine Rule Sub Rule Rule Action Rewrite Action Parameter> - Parameter.
- Action string
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- Parameters
[]Teo
Rule Engine Rule Sub Rule Rule Action Rewrite Action Parameter - Parameter.
- action String
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters
List<Teo
Rule Engine Rule Sub Rule Rule Action Rewrite Action Parameter> - Parameter.
- action string
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters
Teo
Rule Engine Rule Sub Rule Rule Action Rewrite Action Parameter[] - Parameter.
- action str
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters
Sequence[Teo
Rule Engine Rule Sub Rule Rule Action Rewrite Action Parameter] - Parameter.
- action String
- Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
- parameters List<Property Map>
- Parameter.
TeoRuleEngineRuleSubRuleRuleActionRewriteActionParameter, TeoRuleEngineRuleSubRuleRuleActionRewriteActionParameterArgs
- Action string
- Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:
- add: Add the HTTP header.
- set: Rewrite the HTTP header.
- del: Delete the HTTP header.
- Name string
- Parameter name.
- Values List<string>
- Parameter value.
- Action string
- Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:
- add: Add the HTTP header.
- set: Rewrite the HTTP header.
- del: Delete the HTTP header.
- Name string
- Parameter name.
- Values []string
- Parameter value.
- action String
- Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:
- add: Add the HTTP header.
- set: Rewrite the HTTP header.
- del: Delete the HTTP header.
- name String
- Parameter name.
- values List<String>
- Parameter value.
- action string
- Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:
- add: Add the HTTP header.
- set: Rewrite the HTTP header.
- del: Delete the HTTP header.
- name string
- Parameter name.
- values string[]
- Parameter value.
- action str
- Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:
- add: Add the HTTP header.
- set: Rewrite the HTTP header.
- del: Delete the HTTP header.
- name str
- Parameter name.
- values Sequence[str]
- Parameter value.
- action String
- Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:
- add: Add the HTTP header.
- set: Rewrite the HTTP header.
- del: Delete the HTTP header.
- name String
- Parameter name.
- values List<String>
- Parameter value.
TeoRuleEngineRuleSubRuleRuleOr, TeoRuleEngineRuleSubRuleRuleOrArgs
- Ands
List<Teo
Rule Engine Rule Sub Rule Rule Or And> - Rule engine condition. This condition will be considered met if all items in the array are met.
- Ands
[]Teo
Rule Engine Rule Sub Rule Rule Or And - Rule engine condition. This condition will be considered met if all items in the array are met.
- ands
List<Teo
Rule Engine Rule Sub Rule Rule Or And> - Rule engine condition. This condition will be considered met if all items in the array are met.
- ands
Teo
Rule Engine Rule Sub Rule Rule Or And[] - Rule engine condition. This condition will be considered met if all items in the array are met.
- ands
Sequence[Teo
Rule Engine Rule Sub Rule Rule Or And] - Rule engine condition. This condition will be considered met if all items in the array are met.
- ands List<Property Map>
- Rule engine condition. This condition will be considered met if all items in the array are met.
TeoRuleEngineRuleSubRuleRuleOrAnd, TeoRuleEngineRuleSubRuleRuleOrAndArgs
- Operator string
- Operator. Valid values:
- Target string
- The match type. Values:
- Ignore
Case bool - Whether the parameter value is case insensitive. Default value: false.
- Name string
- The parameter name of the match type. This field is required only when
Target=query_string/request_header
. - Values List<string>
- The parameter value of the match type. It can be an empty string only when
Target=query string/request header
andOperator=exist/notexist
.- When
Target=extension
, enter the file extension, such as "jpg" and "txt". - When
Target=filename
, enter the file name, such as "foo" in "foo.jpg". - When
Target=all
, it indicates any site request. - When
Target=host
, enter the host under the current site, such as "www.maxx55.com". - When
Target=url
, enter the partial URL path under the current site, such as "/example". - When
Target=full_url
, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example". - When
Target=client_country
, enter the ISO-3166 country/region code. - When
Target=query_string
, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1". - When
Target=request_header
, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
- When
- Operator string
- Operator. Valid values:
- Target string
- The match type. Values:
- Ignore
Case bool - Whether the parameter value is case insensitive. Default value: false.
- Name string
- The parameter name of the match type. This field is required only when
Target=query_string/request_header
. - Values []string
- The parameter value of the match type. It can be an empty string only when
Target=query string/request header
andOperator=exist/notexist
.- When
Target=extension
, enter the file extension, such as "jpg" and "txt". - When
Target=filename
, enter the file name, such as "foo" in "foo.jpg". - When
Target=all
, it indicates any site request. - When
Target=host
, enter the host under the current site, such as "www.maxx55.com". - When
Target=url
, enter the partial URL path under the current site, such as "/example". - When
Target=full_url
, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example". - When
Target=client_country
, enter the ISO-3166 country/region code. - When
Target=query_string
, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1". - When
Target=request_header
, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
- When
- operator String
- Operator. Valid values:
- target String
- The match type. Values:
- ignore
Case Boolean - Whether the parameter value is case insensitive. Default value: false.
- name String
- The parameter name of the match type. This field is required only when
Target=query_string/request_header
. - values List<String>
- The parameter value of the match type. It can be an empty string only when
Target=query string/request header
andOperator=exist/notexist
.- When
Target=extension
, enter the file extension, such as "jpg" and "txt". - When
Target=filename
, enter the file name, such as "foo" in "foo.jpg". - When
Target=all
, it indicates any site request. - When
Target=host
, enter the host under the current site, such as "www.maxx55.com". - When
Target=url
, enter the partial URL path under the current site, such as "/example". - When
Target=full_url
, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example". - When
Target=client_country
, enter the ISO-3166 country/region code. - When
Target=query_string
, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1". - When
Target=request_header
, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
- When
- operator string
- Operator. Valid values:
- target string
- The match type. Values:
- ignore
Case boolean - Whether the parameter value is case insensitive. Default value: false.
- name string
- The parameter name of the match type. This field is required only when
Target=query_string/request_header
. - values string[]
- The parameter value of the match type. It can be an empty string only when
Target=query string/request header
andOperator=exist/notexist
.- When
Target=extension
, enter the file extension, such as "jpg" and "txt". - When
Target=filename
, enter the file name, such as "foo" in "foo.jpg". - When
Target=all
, it indicates any site request. - When
Target=host
, enter the host under the current site, such as "www.maxx55.com". - When
Target=url
, enter the partial URL path under the current site, such as "/example". - When
Target=full_url
, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example". - When
Target=client_country
, enter the ISO-3166 country/region code. - When
Target=query_string
, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1". - When
Target=request_header
, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
- When
- operator str
- Operator. Valid values:
- target str
- The match type. Values:
- ignore_
case bool - Whether the parameter value is case insensitive. Default value: false.
- name str
- The parameter name of the match type. This field is required only when
Target=query_string/request_header
. - values Sequence[str]
- The parameter value of the match type. It can be an empty string only when
Target=query string/request header
andOperator=exist/notexist
.- When
Target=extension
, enter the file extension, such as "jpg" and "txt". - When
Target=filename
, enter the file name, such as "foo" in "foo.jpg". - When
Target=all
, it indicates any site request. - When
Target=host
, enter the host under the current site, such as "www.maxx55.com". - When
Target=url
, enter the partial URL path under the current site, such as "/example". - When
Target=full_url
, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example". - When
Target=client_country
, enter the ISO-3166 country/region code. - When
Target=query_string
, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1". - When
Target=request_header
, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
- When
- operator String
- Operator. Valid values:
- target String
- The match type. Values:
- ignore
Case Boolean - Whether the parameter value is case insensitive. Default value: false.
- name String
- The parameter name of the match type. This field is required only when
Target=query_string/request_header
. - values List<String>
- The parameter value of the match type. It can be an empty string only when
Target=query string/request header
andOperator=exist/notexist
.- When
Target=extension
, enter the file extension, such as "jpg" and "txt". - When
Target=filename
, enter the file name, such as "foo" in "foo.jpg". - When
Target=all
, it indicates any site request. - When
Target=host
, enter the host under the current site, such as "www.maxx55.com". - When
Target=url
, enter the partial URL path under the current site, such as "/example". - When
Target=full_url
, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example". - When
Target=client_country
, enter the ISO-3166 country/region code. - When
Target=query_string
, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1". - When
Target=request_header
, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
- When
Import
teo rule_engine can be imported using the id#rule_id, e.g.
$ pulumi import tencentcloud:index/teoRuleEngine:TeoRuleEngine rule_engine zone-297z8rf93cfw#rule-ajol584a
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.