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

tencentcloud.TseCngwCanaryRule

Explore with Pulumi AI

Provides a resource to create a tse cngw_canary_rule

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const cngwService = new tencentcloud.TseCngwService("cngwService", {
    gatewayId: "gateway-ddbb709b",
    path: "/test",
    protocol: "http",
    retries: 5,
    tags: {
        created: "terraform",
    },
    timeout: 6000,
    upstreamType: "IPList",
    upstreamInfo: {
        algorithm: "round-robin",
        autoScalingCvmPort: 80,
        autoScalingGroupId: "asg-519acdug",
        autoScalingHookStatus: "Normal",
        autoScalingTatCmdStatus: "Normal",
        port: 0,
        slowStart: 20,
        targets: [{
            health: "HEALTHCHECKS_OFF",
            host: "192.168.0.1",
            port: 80,
            weight: 100,
        }],
    },
});
const cngwCanaryRule = new tencentcloud.TseCngwCanaryRule("cngwCanaryRule", {
    gatewayId: cngwService.gatewayId,
    serviceId: cngwService.serviceId,
    tags: {
        created: "terraform",
    },
    canaryRule: {
        enabled: true,
        priority: 100,
        balancedServiceLists: [{
            percent: 100,
            serviceId: cngwService.serviceId,
            serviceName: cngwService.name,
        }],
        conditionLists: [{
            key: "test",
            operator: "eq",
            type: "query",
            value: "1",
        }],
    },
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

cngw_service = tencentcloud.TseCngwService("cngwService",
    gateway_id="gateway-ddbb709b",
    path="/test",
    protocol="http",
    retries=5,
    tags={
        "created": "terraform",
    },
    timeout=6000,
    upstream_type="IPList",
    upstream_info={
        "algorithm": "round-robin",
        "auto_scaling_cvm_port": 80,
        "auto_scaling_group_id": "asg-519acdug",
        "auto_scaling_hook_status": "Normal",
        "auto_scaling_tat_cmd_status": "Normal",
        "port": 0,
        "slow_start": 20,
        "targets": [{
            "health": "HEALTHCHECKS_OFF",
            "host": "192.168.0.1",
            "port": 80,
            "weight": 100,
        }],
    })
cngw_canary_rule = tencentcloud.TseCngwCanaryRule("cngwCanaryRule",
    gateway_id=cngw_service.gateway_id,
    service_id=cngw_service.service_id,
    tags={
        "created": "terraform",
    },
    canary_rule={
        "enabled": True,
        "priority": 100,
        "balanced_service_lists": [{
            "percent": 100,
            "service_id": cngw_service.service_id,
            "service_name": cngw_service.name,
        }],
        "condition_lists": [{
            "key": "test",
            "operator": "eq",
            "type": "query",
            "value": "1",
        }],
    })
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 {
		cngwService, err := tencentcloud.NewTseCngwService(ctx, "cngwService", &tencentcloud.TseCngwServiceArgs{
			GatewayId: pulumi.String("gateway-ddbb709b"),
			Path:      pulumi.String("/test"),
			Protocol:  pulumi.String("http"),
			Retries:   pulumi.Float64(5),
			Tags: pulumi.StringMap{
				"created": pulumi.String("terraform"),
			},
			Timeout:      pulumi.Float64(6000),
			UpstreamType: pulumi.String("IPList"),
			UpstreamInfo: &tencentcloud.TseCngwServiceUpstreamInfoArgs{
				Algorithm:               pulumi.String("round-robin"),
				AutoScalingCvmPort:      pulumi.Float64(80),
				AutoScalingGroupId:      pulumi.String("asg-519acdug"),
				AutoScalingHookStatus:   pulumi.String("Normal"),
				AutoScalingTatCmdStatus: pulumi.String("Normal"),
				Port:                    pulumi.Float64(0),
				SlowStart:               pulumi.Float64(20),
				Targets: tencentcloud.TseCngwServiceUpstreamInfoTargetArray{
					&tencentcloud.TseCngwServiceUpstreamInfoTargetArgs{
						Health: pulumi.String("HEALTHCHECKS_OFF"),
						Host:   pulumi.String("192.168.0.1"),
						Port:   pulumi.Float64(80),
						Weight: pulumi.Float64(100),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = tencentcloud.NewTseCngwCanaryRule(ctx, "cngwCanaryRule", &tencentcloud.TseCngwCanaryRuleArgs{
			GatewayId: cngwService.GatewayId,
			ServiceId: cngwService.ServiceId,
			Tags: pulumi.StringMap{
				"created": pulumi.String("terraform"),
			},
			CanaryRule: &tencentcloud.TseCngwCanaryRuleCanaryRuleArgs{
				Enabled:  pulumi.Bool(true),
				Priority: pulumi.Float64(100),
				BalancedServiceLists: tencentcloud.TseCngwCanaryRuleCanaryRuleBalancedServiceListArray{
					&tencentcloud.TseCngwCanaryRuleCanaryRuleBalancedServiceListArgs{
						Percent:     pulumi.Float64(100),
						ServiceId:   cngwService.ServiceId,
						ServiceName: cngwService.Name,
					},
				},
				ConditionLists: tencentcloud.TseCngwCanaryRuleCanaryRuleConditionListArray{
					&tencentcloud.TseCngwCanaryRuleCanaryRuleConditionListArgs{
						Key:      pulumi.String("test"),
						Operator: pulumi.String("eq"),
						Type:     pulumi.String("query"),
						Value:    pulumi.String("1"),
					},
				},
			},
		})
		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 cngwService = new Tencentcloud.TseCngwService("cngwService", new()
    {
        GatewayId = "gateway-ddbb709b",
        Path = "/test",
        Protocol = "http",
        Retries = 5,
        Tags = 
        {
            { "created", "terraform" },
        },
        Timeout = 6000,
        UpstreamType = "IPList",
        UpstreamInfo = new Tencentcloud.Inputs.TseCngwServiceUpstreamInfoArgs
        {
            Algorithm = "round-robin",
            AutoScalingCvmPort = 80,
            AutoScalingGroupId = "asg-519acdug",
            AutoScalingHookStatus = "Normal",
            AutoScalingTatCmdStatus = "Normal",
            Port = 0,
            SlowStart = 20,
            Targets = new[]
            {
                new Tencentcloud.Inputs.TseCngwServiceUpstreamInfoTargetArgs
                {
                    Health = "HEALTHCHECKS_OFF",
                    Host = "192.168.0.1",
                    Port = 80,
                    Weight = 100,
                },
            },
        },
    });

    var cngwCanaryRule = new Tencentcloud.TseCngwCanaryRule("cngwCanaryRule", new()
    {
        GatewayId = cngwService.GatewayId,
        ServiceId = cngwService.ServiceId,
        Tags = 
        {
            { "created", "terraform" },
        },
        CanaryRule = new Tencentcloud.Inputs.TseCngwCanaryRuleCanaryRuleArgs
        {
            Enabled = true,
            Priority = 100,
            BalancedServiceLists = new[]
            {
                new Tencentcloud.Inputs.TseCngwCanaryRuleCanaryRuleBalancedServiceListArgs
                {
                    Percent = 100,
                    ServiceId = cngwService.ServiceId,
                    ServiceName = cngwService.Name,
                },
            },
            ConditionLists = new[]
            {
                new Tencentcloud.Inputs.TseCngwCanaryRuleCanaryRuleConditionListArgs
                {
                    Key = "test",
                    Operator = "eq",
                    Type = "query",
                    Value = "1",
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TseCngwService;
import com.pulumi.tencentcloud.TseCngwServiceArgs;
import com.pulumi.tencentcloud.inputs.TseCngwServiceUpstreamInfoArgs;
import com.pulumi.tencentcloud.TseCngwCanaryRule;
import com.pulumi.tencentcloud.TseCngwCanaryRuleArgs;
import com.pulumi.tencentcloud.inputs.TseCngwCanaryRuleCanaryRuleArgs;
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 cngwService = new TseCngwService("cngwService", TseCngwServiceArgs.builder()
            .gatewayId("gateway-ddbb709b")
            .path("/test")
            .protocol("http")
            .retries(5)
            .tags(Map.of("created", "terraform"))
            .timeout(6000)
            .upstreamType("IPList")
            .upstreamInfo(TseCngwServiceUpstreamInfoArgs.builder()
                .algorithm("round-robin")
                .autoScalingCvmPort(80)
                .autoScalingGroupId("asg-519acdug")
                .autoScalingHookStatus("Normal")
                .autoScalingTatCmdStatus("Normal")
                .port(0)
                .slowStart(20)
                .targets(TseCngwServiceUpstreamInfoTargetArgs.builder()
                    .health("HEALTHCHECKS_OFF")
                    .host("192.168.0.1")
                    .port(80)
                    .weight(100)
                    .build())
                .build())
            .build());

        var cngwCanaryRule = new TseCngwCanaryRule("cngwCanaryRule", TseCngwCanaryRuleArgs.builder()
            .gatewayId(cngwService.gatewayId())
            .serviceId(cngwService.serviceId())
            .tags(Map.of("created", "terraform"))
            .canaryRule(TseCngwCanaryRuleCanaryRuleArgs.builder()
                .enabled(true)
                .priority(100)
                .balancedServiceLists(TseCngwCanaryRuleCanaryRuleBalancedServiceListArgs.builder()
                    .percent(100)
                    .serviceId(cngwService.serviceId())
                    .serviceName(cngwService.name())
                    .build())
                .conditionLists(TseCngwCanaryRuleCanaryRuleConditionListArgs.builder()
                    .key("test")
                    .operator("eq")
                    .type("query")
                    .value("1")
                    .build())
                .build())
            .build());

    }
}
Copy
resources:
  cngwService:
    type: tencentcloud:TseCngwService
    properties:
      gatewayId: gateway-ddbb709b
      path: /test
      protocol: http
      retries: 5
      tags:
        created: terraform
      timeout: 6000
      upstreamType: IPList
      upstreamInfo:
        algorithm: round-robin
        autoScalingCvmPort: 80
        autoScalingGroupId: asg-519acdug
        autoScalingHookStatus: Normal
        autoScalingTatCmdStatus: Normal
        port: 0
        slowStart: 20
        targets:
          - health: HEALTHCHECKS_OFF
            host: 192.168.0.1
            port: 80
            weight: 100
  cngwCanaryRule:
    type: tencentcloud:TseCngwCanaryRule
    properties:
      gatewayId: ${cngwService.gatewayId}
      serviceId: ${cngwService.serviceId}
      tags:
        created: terraform
      canaryRule:
        enabled: true
        priority: 100
        balancedServiceLists:
          - percent: 100
            serviceId: ${cngwService.serviceId}
            serviceName: ${cngwService.name}
        conditionLists:
          - key: test
            operator: eq
            type: query
            value: '1'
Copy

Create TseCngwCanaryRule Resource

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

Constructor syntax

new TseCngwCanaryRule(name: string, args: TseCngwCanaryRuleArgs, opts?: CustomResourceOptions);
@overload
def TseCngwCanaryRule(resource_name: str,
                      args: TseCngwCanaryRuleArgs,
                      opts: Optional[ResourceOptions] = None)

@overload
def TseCngwCanaryRule(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      canary_rule: Optional[TseCngwCanaryRuleCanaryRuleArgs] = None,
                      gateway_id: Optional[str] = None,
                      service_id: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None,
                      tse_cngw_canary_rule_id: Optional[str] = None)
func NewTseCngwCanaryRule(ctx *Context, name string, args TseCngwCanaryRuleArgs, opts ...ResourceOption) (*TseCngwCanaryRule, error)
public TseCngwCanaryRule(string name, TseCngwCanaryRuleArgs args, CustomResourceOptions? opts = null)
public TseCngwCanaryRule(String name, TseCngwCanaryRuleArgs args)
public TseCngwCanaryRule(String name, TseCngwCanaryRuleArgs args, CustomResourceOptions options)
type: tencentcloud:TseCngwCanaryRule
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. TseCngwCanaryRuleArgs
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. TseCngwCanaryRuleArgs
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. TseCngwCanaryRuleArgs
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. TseCngwCanaryRuleArgs
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. TseCngwCanaryRuleArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

CanaryRule This property is required. TseCngwCanaryRuleCanaryRule
canary rule configuration.
GatewayId This property is required. string
gateway ID.
ServiceId This property is required. string
service ID.
Tags Dictionary<string, string>
Tag description list.
TseCngwCanaryRuleId string
ID of the resource.
CanaryRule This property is required. TseCngwCanaryRuleCanaryRuleArgs
canary rule configuration.
GatewayId This property is required. string
gateway ID.
ServiceId This property is required. string
service ID.
Tags map[string]string
Tag description list.
TseCngwCanaryRuleId string
ID of the resource.
canaryRule This property is required. TseCngwCanaryRuleCanaryRule
canary rule configuration.
gatewayId This property is required. String
gateway ID.
serviceId This property is required. String
service ID.
tags Map<String,String>
Tag description list.
tseCngwCanaryRuleId String
ID of the resource.
canaryRule This property is required. TseCngwCanaryRuleCanaryRule
canary rule configuration.
gatewayId This property is required. string
gateway ID.
serviceId This property is required. string
service ID.
tags {[key: string]: string}
Tag description list.
tseCngwCanaryRuleId string
ID of the resource.
canary_rule This property is required. TseCngwCanaryRuleCanaryRuleArgs
canary rule configuration.
gateway_id This property is required. str
gateway ID.
service_id This property is required. str
service ID.
tags Mapping[str, str]
Tag description list.
tse_cngw_canary_rule_id str
ID of the resource.
canaryRule This property is required. Property Map
canary rule configuration.
gatewayId This property is required. String
gateway ID.
serviceId This property is required. String
service ID.
tags Map<String>
Tag description list.
tseCngwCanaryRuleId String
ID of the resource.

Outputs

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

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

Look up Existing TseCngwCanaryRule Resource

Get an existing TseCngwCanaryRule 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?: TseCngwCanaryRuleState, opts?: CustomResourceOptions): TseCngwCanaryRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        canary_rule: Optional[TseCngwCanaryRuleCanaryRuleArgs] = None,
        gateway_id: Optional[str] = None,
        service_id: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tse_cngw_canary_rule_id: Optional[str] = None) -> TseCngwCanaryRule
func GetTseCngwCanaryRule(ctx *Context, name string, id IDInput, state *TseCngwCanaryRuleState, opts ...ResourceOption) (*TseCngwCanaryRule, error)
public static TseCngwCanaryRule Get(string name, Input<string> id, TseCngwCanaryRuleState? state, CustomResourceOptions? opts = null)
public static TseCngwCanaryRule get(String name, Output<String> id, TseCngwCanaryRuleState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:TseCngwCanaryRule    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:
CanaryRule TseCngwCanaryRuleCanaryRule
canary rule configuration.
GatewayId string
gateway ID.
ServiceId string
service ID.
Tags Dictionary<string, string>
Tag description list.
TseCngwCanaryRuleId string
ID of the resource.
CanaryRule TseCngwCanaryRuleCanaryRuleArgs
canary rule configuration.
GatewayId string
gateway ID.
ServiceId string
service ID.
Tags map[string]string
Tag description list.
TseCngwCanaryRuleId string
ID of the resource.
canaryRule TseCngwCanaryRuleCanaryRule
canary rule configuration.
gatewayId String
gateway ID.
serviceId String
service ID.
tags Map<String,String>
Tag description list.
tseCngwCanaryRuleId String
ID of the resource.
canaryRule TseCngwCanaryRuleCanaryRule
canary rule configuration.
gatewayId string
gateway ID.
serviceId string
service ID.
tags {[key: string]: string}
Tag description list.
tseCngwCanaryRuleId string
ID of the resource.
canary_rule TseCngwCanaryRuleCanaryRuleArgs
canary rule configuration.
gateway_id str
gateway ID.
service_id str
service ID.
tags Mapping[str, str]
Tag description list.
tse_cngw_canary_rule_id str
ID of the resource.
canaryRule Property Map
canary rule configuration.
gatewayId String
gateway ID.
serviceId String
service ID.
tags Map<String>
Tag description list.
tseCngwCanaryRuleId String
ID of the resource.

Supporting Types

TseCngwCanaryRuleCanaryRule
, TseCngwCanaryRuleCanaryRuleArgs

Enabled This property is required. bool
the status of canary rule.
Priority This property is required. double
priority. The value ranges from 0 to 100; the larger the value, the higher the priority; the priority cannot be repeated between different rules.
BalancedServiceLists List<TseCngwCanaryRuleCanaryRuleBalancedServiceList>
service weight configuration.
ConditionLists List<TseCngwCanaryRuleCanaryRuleConditionList>
parameter matching condition list.
ServiceId string
service ID.
ServiceName string
service name.
Enabled This property is required. bool
the status of canary rule.
Priority This property is required. float64
priority. The value ranges from 0 to 100; the larger the value, the higher the priority; the priority cannot be repeated between different rules.
BalancedServiceLists []TseCngwCanaryRuleCanaryRuleBalancedServiceList
service weight configuration.
ConditionLists []TseCngwCanaryRuleCanaryRuleConditionList
parameter matching condition list.
ServiceId string
service ID.
ServiceName string
service name.
enabled This property is required. Boolean
the status of canary rule.
priority This property is required. Double
priority. The value ranges from 0 to 100; the larger the value, the higher the priority; the priority cannot be repeated between different rules.
balancedServiceLists List<TseCngwCanaryRuleCanaryRuleBalancedServiceList>
service weight configuration.
conditionLists List<TseCngwCanaryRuleCanaryRuleConditionList>
parameter matching condition list.
serviceId String
service ID.
serviceName String
service name.
enabled This property is required. boolean
the status of canary rule.
priority This property is required. number
priority. The value ranges from 0 to 100; the larger the value, the higher the priority; the priority cannot be repeated between different rules.
balancedServiceLists TseCngwCanaryRuleCanaryRuleBalancedServiceList[]
service weight configuration.
conditionLists TseCngwCanaryRuleCanaryRuleConditionList[]
parameter matching condition list.
serviceId string
service ID.
serviceName string
service name.
enabled This property is required. bool
the status of canary rule.
priority This property is required. float
priority. The value ranges from 0 to 100; the larger the value, the higher the priority; the priority cannot be repeated between different rules.
balanced_service_lists Sequence[TseCngwCanaryRuleCanaryRuleBalancedServiceList]
service weight configuration.
condition_lists Sequence[TseCngwCanaryRuleCanaryRuleConditionList]
parameter matching condition list.
service_id str
service ID.
service_name str
service name.
enabled This property is required. Boolean
the status of canary rule.
priority This property is required. Number
priority. The value ranges from 0 to 100; the larger the value, the higher the priority; the priority cannot be repeated between different rules.
balancedServiceLists List<Property Map>
service weight configuration.
conditionLists List<Property Map>
parameter matching condition list.
serviceId String
service ID.
serviceName String
service name.

TseCngwCanaryRuleCanaryRuleBalancedServiceList
, TseCngwCanaryRuleCanaryRuleBalancedServiceListArgs

Percent double
percent, 10 is 10%, valid values:0 to 100.
ServiceId string
service ID, required when used as an input parameter.
ServiceName string
service name, meaningless when used as an input parameter.
UpstreamName string
upstream name, meaningless when used as an input parameter.
Percent float64
percent, 10 is 10%, valid values:0 to 100.
ServiceId string
service ID, required when used as an input parameter.
ServiceName string
service name, meaningless when used as an input parameter.
UpstreamName string
upstream name, meaningless when used as an input parameter.
percent Double
percent, 10 is 10%, valid values:0 to 100.
serviceId String
service ID, required when used as an input parameter.
serviceName String
service name, meaningless when used as an input parameter.
upstreamName String
upstream name, meaningless when used as an input parameter.
percent number
percent, 10 is 10%, valid values:0 to 100.
serviceId string
service ID, required when used as an input parameter.
serviceName string
service name, meaningless when used as an input parameter.
upstreamName string
upstream name, meaningless when used as an input parameter.
percent float
percent, 10 is 10%, valid values:0 to 100.
service_id str
service ID, required when used as an input parameter.
service_name str
service name, meaningless when used as an input parameter.
upstream_name str
upstream name, meaningless when used as an input parameter.
percent Number
percent, 10 is 10%, valid values:0 to 100.
serviceId String
service ID, required when used as an input parameter.
serviceName String
service name, meaningless when used as an input parameter.
upstreamName String
upstream name, meaningless when used as an input parameter.

TseCngwCanaryRuleCanaryRuleConditionList
, TseCngwCanaryRuleCanaryRuleConditionListArgs

Type This property is required. string
type.Reference value:path,method,query,header,cookie,body,system.
Delimiter string
delimiter. valid when operator is in or not in, reference value:,, ;,\n.
GlobalConfigId string
global configuration ID.
GlobalConfigName string
global configuration name.
Key string
parameter name.
Operator string
operator.Reference value:le,eq,lt,ne,ge,gt,regex,exists,in,not in,prefix,exact,regex.
Value string
parameter value.
Type This property is required. string
type.Reference value:path,method,query,header,cookie,body,system.
Delimiter string
delimiter. valid when operator is in or not in, reference value:,, ;,\n.
GlobalConfigId string
global configuration ID.
GlobalConfigName string
global configuration name.
Key string
parameter name.
Operator string
operator.Reference value:le,eq,lt,ne,ge,gt,regex,exists,in,not in,prefix,exact,regex.
Value string
parameter value.
type This property is required. String
type.Reference value:path,method,query,header,cookie,body,system.
delimiter String
delimiter. valid when operator is in or not in, reference value:,, ;,\n.
globalConfigId String
global configuration ID.
globalConfigName String
global configuration name.
key String
parameter name.
operator String
operator.Reference value:le,eq,lt,ne,ge,gt,regex,exists,in,not in,prefix,exact,regex.
value String
parameter value.
type This property is required. string
type.Reference value:path,method,query,header,cookie,body,system.
delimiter string
delimiter. valid when operator is in or not in, reference value:,, ;,\n.
globalConfigId string
global configuration ID.
globalConfigName string
global configuration name.
key string
parameter name.
operator string
operator.Reference value:le,eq,lt,ne,ge,gt,regex,exists,in,not in,prefix,exact,regex.
value string
parameter value.
type This property is required. str
type.Reference value:path,method,query,header,cookie,body,system.
delimiter str
delimiter. valid when operator is in or not in, reference value:,, ;,\n.
global_config_id str
global configuration ID.
global_config_name str
global configuration name.
key str
parameter name.
operator str
operator.Reference value:le,eq,lt,ne,ge,gt,regex,exists,in,not in,prefix,exact,regex.
value str
parameter value.
type This property is required. String
type.Reference value:path,method,query,header,cookie,body,system.
delimiter String
delimiter. valid when operator is in or not in, reference value:,, ;,\n.
globalConfigId String
global configuration ID.
globalConfigName String
global configuration name.
key String
parameter name.
operator String
operator.Reference value:le,eq,lt,ne,ge,gt,regex,exists,in,not in,prefix,exact,regex.
value String
parameter value.

Import

tse cngw_canary_rule can be imported using the gatewayId#serviceId#priority, e.g.

$ pulumi import tencentcloud:index/tseCngwCanaryRule:TseCngwCanaryRule cngw_canary_rule gateway-ddbb709b#b6017eaf-2363-481e-9e93-8d65aaf498cd#100
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.