1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. TeoRuleEngine
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

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"],
                            },
                        ],
                    },
                }],
            }],
        }],
    }],
});
Copy
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"],
                            },
                        ],
                    },
                }],
            }],
        }],
    }])
Copy
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
	})
}
Copy
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",
                                                    },
                                                },
                                            },
                                        },
                                    },
                                },
                            },
                        },
                    },
                },
            },
        },
    });

});
Copy
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());

    }
}
Copy
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
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. TeoRuleEngineArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. TeoRuleEngineArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TeoRuleEngineArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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:

RuleName This property is required. string
The rule name (1 to 255 characters).
Rules This property is required. List<TeoRuleEngineRule>
Rule items list.
Status This property is required. string
Rule status. Values:
ZoneId This property is required. string
ID of the site.
Tags List<string>
rule tag list.
TeoRuleEngineId string
ID of the resource.
RuleName This property is required. string
The rule name (1 to 255 characters).
Rules This property is required. []TeoRuleEngineRuleArgs
Rule items list.
Status This property is required. string
Rule status. Values:
ZoneId This property is required. string
ID of the site.
Tags []string
rule tag list.
TeoRuleEngineId string
ID of the resource.
ruleName This property is required. String
The rule name (1 to 255 characters).
rules This property is required. List<TeoRuleEngineRule>
Rule items list.
status This property is required. String
Rule status. Values:
zoneId This property is required. String
ID of the site.
tags List<String>
rule tag list.
teoRuleEngineId String
ID of the resource.
ruleName This property is required. string
The rule name (1 to 255 characters).
rules This property is required. TeoRuleEngineRule[]
Rule items list.
status This property is required. string
Rule status. Values:
zoneId This property is required. string
ID of the site.
tags string[]
rule tag list.
teoRuleEngineId string
ID of the resource.
rule_name This property is required. str
The rule name (1 to 255 characters).
rules This property is required. Sequence[TeoRuleEngineRuleArgs]
Rule items list.
status This property is required. str
Rule status. Values:
zone_id This property is required. str
ID of the site.
tags Sequence[str]
rule tag list.
teo_rule_engine_id str
ID of the resource.
ruleName This property is required. String
The rule name (1 to 255 characters).
rules This property is required. List<Property Map>
Rule items list.
status This property is required. String
Rule status. Values:
zoneId This property is required. String
ID of the site.
tags List<String>
rule tag list.
teoRuleEngineId String
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.
RuleId string
Rule ID.
RulePriority 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.
RuleId string
Rule ID.
RulePriority 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.
ruleId String
Rule ID.
rulePriority 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.
ruleId string
Rule ID.
rulePriority 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.
ruleId String
Rule ID.
rulePriority 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
RuleId string
Rule ID.
RuleName string
The rule name (1 to 255 characters).
RulePriority double
Rule priority, the larger the value, the higher the priority, the minimum is 1.
Rules List<TeoRuleEngineRule>
Rule items list.
Status string
Rule status. Values:
Tags List<string>
rule tag list.
TeoRuleEngineId string
ID of the resource.
ZoneId string
ID of the site.
RuleId string
Rule ID.
RuleName string
The rule name (1 to 255 characters).
RulePriority float64
Rule priority, the larger the value, the higher the priority, the minimum is 1.
Rules []TeoRuleEngineRuleArgs
Rule items list.
Status string
Rule status. Values:
Tags []string
rule tag list.
TeoRuleEngineId string
ID of the resource.
ZoneId string
ID of the site.
ruleId String
Rule ID.
ruleName String
The rule name (1 to 255 characters).
rulePriority Double
Rule priority, the larger the value, the higher the priority, the minimum is 1.
rules List<TeoRuleEngineRule>
Rule items list.
status String
Rule status. Values:
tags List<String>
rule tag list.
teoRuleEngineId String
ID of the resource.
zoneId String
ID of the site.
ruleId string
Rule ID.
ruleName string
The rule name (1 to 255 characters).
rulePriority number
Rule priority, the larger the value, the higher the priority, the minimum is 1.
rules TeoRuleEngineRule[]
Rule items list.
status string
Rule status. Values:
tags string[]
rule tag list.
teoRuleEngineId string
ID of the resource.
zoneId 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[TeoRuleEngineRuleArgs]
Rule items list.
status str
Rule status. Values:
tags Sequence[str]
rule tag list.
teo_rule_engine_id str
ID of the resource.
zone_id str
ID of the site.
ruleId String
Rule ID.
ruleName String
The rule name (1 to 255 characters).
rulePriority 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:
tags List<String>
rule tag list.
teoRuleEngineId String
ID of the resource.
zoneId String
ID of the site.

Supporting Types

TeoRuleEngineRule
, TeoRuleEngineRuleArgs

Ors This property is required. List<TeoRuleEngineRuleOr>
OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
Actions List<TeoRuleEngineRuleAction>
Feature to be executed.
SubRules List<TeoRuleEngineRuleSubRule>
The nested rule.
Ors This property is required. []TeoRuleEngineRuleOr
OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
Actions []TeoRuleEngineRuleAction
Feature to be executed.
SubRules []TeoRuleEngineRuleSubRule
The nested rule.
ors This property is required. List<TeoRuleEngineRuleOr>
OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
actions List<TeoRuleEngineRuleAction>
Feature to be executed.
subRules List<TeoRuleEngineRuleSubRule>
The nested rule.
ors This property is required. TeoRuleEngineRuleOr[]
OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
actions TeoRuleEngineRuleAction[]
Feature to be executed.
subRules TeoRuleEngineRuleSubRule[]
The nested rule.
ors This property is required. Sequence[TeoRuleEngineRuleOr]
OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
actions Sequence[TeoRuleEngineRuleAction]
Feature to be executed.
sub_rules Sequence[TeoRuleEngineRuleSubRule]
The nested rule.
ors This property is required. 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.
subRules List<Property Map>
The nested rule.

TeoRuleEngineRuleAction
, TeoRuleEngineRuleActionArgs

CodeAction TeoRuleEngineRuleActionCodeAction
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.
NormalAction TeoRuleEngineRuleActionNormalAction
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 return null, indicating that no valid value can be obtained.
RewriteAction TeoRuleEngineRuleActionRewriteAction
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.
CodeAction TeoRuleEngineRuleActionCodeAction
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.
NormalAction TeoRuleEngineRuleActionNormalAction
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 return null, indicating that no valid value can be obtained.
RewriteAction TeoRuleEngineRuleActionRewriteAction
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.
codeAction TeoRuleEngineRuleActionCodeAction
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.
normalAction TeoRuleEngineRuleActionNormalAction
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 return null, indicating that no valid value can be obtained.
rewriteAction TeoRuleEngineRuleActionRewriteAction
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.
codeAction TeoRuleEngineRuleActionCodeAction
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.
normalAction TeoRuleEngineRuleActionNormalAction
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 return null, indicating that no valid value can be obtained.
rewriteAction TeoRuleEngineRuleActionRewriteAction
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 TeoRuleEngineRuleActionCodeAction
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 TeoRuleEngineRuleActionNormalAction
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 return null, indicating that no valid value can be obtained.
rewrite_action TeoRuleEngineRuleActionRewriteAction
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.
codeAction 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.
normalAction 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 return null, indicating that no valid value can be obtained.
rewriteAction 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 This property is required. string
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
Parameters This property is required. List<TeoRuleEngineRuleActionCodeActionParameter>
Operation parameter.
Action This property is required. string
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
Parameters This property is required. []TeoRuleEngineRuleActionCodeActionParameter
Operation parameter.
action This property is required. String
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. List<TeoRuleEngineRuleActionCodeActionParameter>
Operation parameter.
action This property is required. string
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. TeoRuleEngineRuleActionCodeActionParameter[]
Operation parameter.
action This property is required. str
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. Sequence[TeoRuleEngineRuleActionCodeActionParameter]
Operation parameter.
action This property is required. String
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. List<Property Map>
Operation parameter.

TeoRuleEngineRuleActionCodeActionParameter
, TeoRuleEngineRuleActionCodeActionParameterArgs

Name This property is required. string
Parameter name.
StatusCode This property is required. double
The status code.
Values This property is required. List<string>
Parameter value.
Name This property is required. string
Parameter name.
StatusCode This property is required. float64
The status code.
Values This property is required. []string
Parameter value.
name This property is required. String
Parameter name.
statusCode This property is required. Double
The status code.
values This property is required. List<String>
Parameter value.
name This property is required. string
Parameter name.
statusCode This property is required. number
The status code.
values This property is required. string[]
Parameter value.
name This property is required. str
Parameter name.
status_code This property is required. float
The status code.
values This property is required. Sequence[str]
Parameter value.
name This property is required. String
Parameter name.
statusCode This property is required. Number
The status code.
values This property is required. List<String>
Parameter value.

TeoRuleEngineRuleActionNormalAction
, TeoRuleEngineRuleActionNormalActionArgs

Action This property is required. string
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
Parameters This property is required. List<TeoRuleEngineRuleActionNormalActionParameter>
Parameter.
Action This property is required. string
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
Parameters This property is required. []TeoRuleEngineRuleActionNormalActionParameter
Parameter.
action This property is required. String
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. List<TeoRuleEngineRuleActionNormalActionParameter>
Parameter.
action This property is required. string
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. TeoRuleEngineRuleActionNormalActionParameter[]
Parameter.
action This property is required. str
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. Sequence[TeoRuleEngineRuleActionNormalActionParameter]
Parameter.
action This property is required. String
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. List<Property Map>
Parameter.

TeoRuleEngineRuleActionNormalActionParameter
, TeoRuleEngineRuleActionNormalActionParameterArgs

Name This property is required. string
Parameter name.
Values This property is required. List<string>
Parameter value.
Name This property is required. string
Parameter name.
Values This property is required. []string
Parameter value.
name This property is required. String
Parameter name.
values This property is required. List<String>
Parameter value.
name This property is required. string
Parameter name.
values This property is required. string[]
Parameter value.
name This property is required. str
Parameter name.
values This property is required. Sequence[str]
Parameter value.
name This property is required. String
Parameter name.
values This property is required. List<String>
Parameter value.

TeoRuleEngineRuleActionRewriteAction
, TeoRuleEngineRuleActionRewriteActionArgs

Action This property is required. string
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
Parameters This property is required. List<TeoRuleEngineRuleActionRewriteActionParameter>
Parameter.
Action This property is required. string
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
Parameters This property is required. []TeoRuleEngineRuleActionRewriteActionParameter
Parameter.
action This property is required. String
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. List<TeoRuleEngineRuleActionRewriteActionParameter>
Parameter.
action This property is required. string
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. TeoRuleEngineRuleActionRewriteActionParameter[]
Parameter.
action This property is required. str
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. Sequence[TeoRuleEngineRuleActionRewriteActionParameter]
Parameter.
action This property is required. String
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. List<Property Map>
Parameter.

TeoRuleEngineRuleActionRewriteActionParameter
, TeoRuleEngineRuleActionRewriteActionParameterArgs

Action This property is required. 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 This property is required. string
Parameter name.
Values This property is required. List<string>
Parameter value.
Action This property is required. 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 This property is required. string
Parameter name.
Values This property is required. []string
Parameter value.
action This property is required. 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 This property is required. String
Parameter name.
values This property is required. List<String>
Parameter value.
action This property is required. 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 This property is required. string
Parameter name.
values This property is required. string[]
Parameter value.
action This property is required. 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 This property is required. str
Parameter name.
values This property is required. Sequence[str]
Parameter value.
action This property is required. 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 This property is required. String
Parameter name.
values This property is required. List<String>
Parameter value.

TeoRuleEngineRuleOr
, TeoRuleEngineRuleOrArgs

Ands This property is required. List<TeoRuleEngineRuleOrAnd>
Rule engine condition. This condition will be considered met if all items in the array are met.
Ands This property is required. []TeoRuleEngineRuleOrAnd
Rule engine condition. This condition will be considered met if all items in the array are met.
ands This property is required. List<TeoRuleEngineRuleOrAnd>
Rule engine condition. This condition will be considered met if all items in the array are met.
ands This property is required. TeoRuleEngineRuleOrAnd[]
Rule engine condition. This condition will be considered met if all items in the array are met.
ands This property is required. Sequence[TeoRuleEngineRuleOrAnd]
Rule engine condition. This condition will be considered met if all items in the array are met.
ands This property is required. List<Property Map>
Rule engine condition. This condition will be considered met if all items in the array are met.

TeoRuleEngineRuleOrAnd
, TeoRuleEngineRuleOrAndArgs

Operator This property is required. string
Operator. Valid values:
Target This property is required. string
The match type. Values:
IgnoreCase 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 and Operator=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.
Operator This property is required. string
Operator. Valid values:
Target This property is required. string
The match type. Values:
IgnoreCase 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 and Operator=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.
operator This property is required. String
Operator. Valid values:
target This property is required. String
The match type. Values:
ignoreCase 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 and Operator=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.
operator This property is required. string
Operator. Valid values:
target This property is required. string
The match type. Values:
ignoreCase 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 and Operator=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.
operator This property is required. str
Operator. Valid values:
target This property is required. 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 and Operator=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.
operator This property is required. String
Operator. Valid values:
target This property is required. String
The match type. Values:
ignoreCase 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 and Operator=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.

TeoRuleEngineRuleSubRule
, TeoRuleEngineRuleSubRuleArgs

Rules This property is required. List<TeoRuleEngineRuleSubRuleRule>
Nested rule settings.
Tags List<string>
Tag of the rule.
Rules This property is required. []TeoRuleEngineRuleSubRuleRule
Nested rule settings.
Tags []string
Tag of the rule.
rules This property is required. List<TeoRuleEngineRuleSubRuleRule>
Nested rule settings.
tags List<String>
Tag of the rule.
rules This property is required. TeoRuleEngineRuleSubRuleRule[]
Nested rule settings.
tags string[]
Tag of the rule.
rules This property is required. Sequence[TeoRuleEngineRuleSubRuleRule]
Nested rule settings.
tags Sequence[str]
Tag of the rule.
rules This property is required. List<Property Map>
Nested rule settings.
tags List<String>
Tag of the rule.

TeoRuleEngineRuleSubRuleRule
, TeoRuleEngineRuleSubRuleRuleArgs

Ors This property is required. List<TeoRuleEngineRuleSubRuleRuleOr>
OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
Actions List<TeoRuleEngineRuleSubRuleRuleAction>
Feature to be executed.
Ors This property is required. []TeoRuleEngineRuleSubRuleRuleOr
OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
Actions []TeoRuleEngineRuleSubRuleRuleAction
Feature to be executed.
ors This property is required. List<TeoRuleEngineRuleSubRuleRuleOr>
OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
actions List<TeoRuleEngineRuleSubRuleRuleAction>
Feature to be executed.
ors This property is required. TeoRuleEngineRuleSubRuleRuleOr[]
OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
actions TeoRuleEngineRuleSubRuleRuleAction[]
Feature to be executed.
ors This property is required. Sequence[TeoRuleEngineRuleSubRuleRuleOr]
OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
actions Sequence[TeoRuleEngineRuleSubRuleRuleAction]
Feature to be executed.
ors This property is required. 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

CodeAction TeoRuleEngineRuleSubRuleRuleActionCodeAction
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.
NormalAction TeoRuleEngineRuleSubRuleRuleActionNormalAction
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 return null, indicating that no valid value can be obtained.
RewriteAction TeoRuleEngineRuleSubRuleRuleActionRewriteAction
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.
CodeAction TeoRuleEngineRuleSubRuleRuleActionCodeAction
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.
NormalAction TeoRuleEngineRuleSubRuleRuleActionNormalAction
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 return null, indicating that no valid value can be obtained.
RewriteAction TeoRuleEngineRuleSubRuleRuleActionRewriteAction
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.
codeAction TeoRuleEngineRuleSubRuleRuleActionCodeAction
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.
normalAction TeoRuleEngineRuleSubRuleRuleActionNormalAction
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 return null, indicating that no valid value can be obtained.
rewriteAction TeoRuleEngineRuleSubRuleRuleActionRewriteAction
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.
codeAction TeoRuleEngineRuleSubRuleRuleActionCodeAction
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.
normalAction TeoRuleEngineRuleSubRuleRuleActionNormalAction
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 return null, indicating that no valid value can be obtained.
rewriteAction TeoRuleEngineRuleSubRuleRuleActionRewriteAction
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 TeoRuleEngineRuleSubRuleRuleActionCodeAction
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 TeoRuleEngineRuleSubRuleRuleActionNormalAction
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 return null, indicating that no valid value can be obtained.
rewrite_action TeoRuleEngineRuleSubRuleRuleActionRewriteAction
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.
codeAction 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.
normalAction 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 return null, indicating that no valid value can be obtained.
rewriteAction 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 This property is required. string
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
Parameters This property is required. List<TeoRuleEngineRuleSubRuleRuleActionCodeActionParameter>
Operation parameter.
Action This property is required. string
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
Parameters This property is required. []TeoRuleEngineRuleSubRuleRuleActionCodeActionParameter
Operation parameter.
action This property is required. String
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. List<TeoRuleEngineRuleSubRuleRuleActionCodeActionParameter>
Operation parameter.
action This property is required. string
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. TeoRuleEngineRuleSubRuleRuleActionCodeActionParameter[]
Operation parameter.
action This property is required. str
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. Sequence[TeoRuleEngineRuleSubRuleRuleActionCodeActionParameter]
Operation parameter.
action This property is required. String
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. List<Property Map>
Operation parameter.

TeoRuleEngineRuleSubRuleRuleActionCodeActionParameter
, TeoRuleEngineRuleSubRuleRuleActionCodeActionParameterArgs

Name This property is required. string
Parameter name.
StatusCode This property is required. double
The status code.
Values This property is required. List<string>
Parameter value.
Name This property is required. string
Parameter name.
StatusCode This property is required. float64
The status code.
Values This property is required. []string
Parameter value.
name This property is required. String
Parameter name.
statusCode This property is required. Double
The status code.
values This property is required. List<String>
Parameter value.
name This property is required. string
Parameter name.
statusCode This property is required. number
The status code.
values This property is required. string[]
Parameter value.
name This property is required. str
Parameter name.
status_code This property is required. float
The status code.
values This property is required. Sequence[str]
Parameter value.
name This property is required. String
Parameter name.
statusCode This property is required. Number
The status code.
values This property is required. List<String>
Parameter value.

TeoRuleEngineRuleSubRuleRuleActionNormalAction
, TeoRuleEngineRuleSubRuleRuleActionNormalActionArgs

Action This property is required. string
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
Parameters This property is required. List<TeoRuleEngineRuleSubRuleRuleActionNormalActionParameter>
Parameter.
Action This property is required. string
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
Parameters This property is required. []TeoRuleEngineRuleSubRuleRuleActionNormalActionParameter
Parameter.
action This property is required. String
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. List<TeoRuleEngineRuleSubRuleRuleActionNormalActionParameter>
Parameter.
action This property is required. string
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. TeoRuleEngineRuleSubRuleRuleActionNormalActionParameter[]
Parameter.
action This property is required. str
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. Sequence[TeoRuleEngineRuleSubRuleRuleActionNormalActionParameter]
Parameter.
action This property is required. String
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. List<Property Map>
Parameter.

TeoRuleEngineRuleSubRuleRuleActionNormalActionParameter
, TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArgs

Name This property is required. string
Parameter name.
Values This property is required. List<string>
Parameter value.
Name This property is required. string
Parameter name.
Values This property is required. []string
Parameter value.
name This property is required. String
Parameter name.
values This property is required. List<String>
Parameter value.
name This property is required. string
Parameter name.
values This property is required. string[]
Parameter value.
name This property is required. str
Parameter name.
values This property is required. Sequence[str]
Parameter value.
name This property is required. String
Parameter name.
values This property is required. List<String>
Parameter value.

TeoRuleEngineRuleSubRuleRuleActionRewriteAction
, TeoRuleEngineRuleSubRuleRuleActionRewriteActionArgs

Action This property is required. string
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
Parameters This property is required. List<TeoRuleEngineRuleSubRuleRuleActionRewriteActionParameter>
Parameter.
Action This property is required. string
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
Parameters This property is required. []TeoRuleEngineRuleSubRuleRuleActionRewriteActionParameter
Parameter.
action This property is required. String
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. List<TeoRuleEngineRuleSubRuleRuleActionRewriteActionParameter>
Parameter.
action This property is required. string
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. TeoRuleEngineRuleSubRuleRuleActionRewriteActionParameter[]
Parameter.
action This property is required. str
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. Sequence[TeoRuleEngineRuleSubRuleRuleActionRewriteActionParameter]
Parameter.
action This property is required. String
Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
parameters This property is required. List<Property Map>
Parameter.

TeoRuleEngineRuleSubRuleRuleActionRewriteActionParameter
, TeoRuleEngineRuleSubRuleRuleActionRewriteActionParameterArgs

Action This property is required. 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 This property is required. string
Parameter name.
Values This property is required. List<string>
Parameter value.
Action This property is required. 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 This property is required. string
Parameter name.
Values This property is required. []string
Parameter value.
action This property is required. 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 This property is required. String
Parameter name.
values This property is required. List<String>
Parameter value.
action This property is required. 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 This property is required. string
Parameter name.
values This property is required. string[]
Parameter value.
action This property is required. 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 This property is required. str
Parameter name.
values This property is required. Sequence[str]
Parameter value.
action This property is required. 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 This property is required. String
Parameter name.
values This property is required. List<String>
Parameter value.

TeoRuleEngineRuleSubRuleRuleOr
, TeoRuleEngineRuleSubRuleRuleOrArgs

Ands This property is required. List<TeoRuleEngineRuleSubRuleRuleOrAnd>
Rule engine condition. This condition will be considered met if all items in the array are met.
Ands This property is required. []TeoRuleEngineRuleSubRuleRuleOrAnd
Rule engine condition. This condition will be considered met if all items in the array are met.
ands This property is required. List<TeoRuleEngineRuleSubRuleRuleOrAnd>
Rule engine condition. This condition will be considered met if all items in the array are met.
ands This property is required. TeoRuleEngineRuleSubRuleRuleOrAnd[]
Rule engine condition. This condition will be considered met if all items in the array are met.
ands This property is required. Sequence[TeoRuleEngineRuleSubRuleRuleOrAnd]
Rule engine condition. This condition will be considered met if all items in the array are met.
ands This property is required. List<Property Map>
Rule engine condition. This condition will be considered met if all items in the array are met.

TeoRuleEngineRuleSubRuleRuleOrAnd
, TeoRuleEngineRuleSubRuleRuleOrAndArgs

Operator This property is required. string
Operator. Valid values:
Target This property is required. string
The match type. Values:
IgnoreCase 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 and Operator=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.
Operator This property is required. string
Operator. Valid values:
Target This property is required. string
The match type. Values:
IgnoreCase 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 and Operator=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.
operator This property is required. String
Operator. Valid values:
target This property is required. String
The match type. Values:
ignoreCase 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 and Operator=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.
operator This property is required. string
Operator. Valid values:
target This property is required. string
The match type. Values:
ignoreCase 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 and Operator=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.
operator This property is required. str
Operator. Valid values:
target This property is required. 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 and Operator=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.
operator This property is required. String
Operator. Valid values:
target This property is required. String
The match type. Values:
ignoreCase 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 and Operator=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.

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
Copy

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.