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

tencentcloud.WafClbDomain

Explore with Pulumi AI

Provides a resource to create a waf clb_domain

Example Usage

Create a basic waf clb domain

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

const example = new tencentcloud.WafClbDomain("example", {
    albType: "clb",
    domain: "test.com",
    instanceId: "waf_2kxtlbky00b2v1fn",
    loadBalancerSets: [{
        listenerId: "lbl-nonkgvc2",
        listenerName: "dsadasd",
        loadBalancerId: "lb-5dnrkgry",
        loadBalancerName: "keep-listener-clb",
        loadBalancerType: "OPEN",
        numericalVpcId: 5232945,
        protocol: "HTTP",
        region: "gz",
        vip: "106.55.220.8",
        vport: 80,
        zone: "ap-guangzhou-6",
    }],
    region: "gz",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

example = tencentcloud.WafClbDomain("example",
    alb_type="clb",
    domain="test.com",
    instance_id="waf_2kxtlbky00b2v1fn",
    load_balancer_sets=[{
        "listener_id": "lbl-nonkgvc2",
        "listener_name": "dsadasd",
        "load_balancer_id": "lb-5dnrkgry",
        "load_balancer_name": "keep-listener-clb",
        "load_balancer_type": "OPEN",
        "numerical_vpc_id": 5232945,
        "protocol": "HTTP",
        "region": "gz",
        "vip": "106.55.220.8",
        "vport": 80,
        "zone": "ap-guangzhou-6",
    }],
    region="gz")
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.NewWafClbDomain(ctx, "example", &tencentcloud.WafClbDomainArgs{
			AlbType:    pulumi.String("clb"),
			Domain:     pulumi.String("test.com"),
			InstanceId: pulumi.String("waf_2kxtlbky00b2v1fn"),
			LoadBalancerSets: tencentcloud.WafClbDomainLoadBalancerSetArray{
				&tencentcloud.WafClbDomainLoadBalancerSetArgs{
					ListenerId:       pulumi.String("lbl-nonkgvc2"),
					ListenerName:     pulumi.String("dsadasd"),
					LoadBalancerId:   pulumi.String("lb-5dnrkgry"),
					LoadBalancerName: pulumi.String("keep-listener-clb"),
					LoadBalancerType: pulumi.String("OPEN"),
					NumericalVpcId:   pulumi.Float64(5232945),
					Protocol:         pulumi.String("HTTP"),
					Region:           pulumi.String("gz"),
					Vip:              pulumi.String("106.55.220.8"),
					Vport:            pulumi.Float64(80),
					Zone:             pulumi.String("ap-guangzhou-6"),
				},
			},
			Region: pulumi.String("gz"),
		})
		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 example = new Tencentcloud.WafClbDomain("example", new()
    {
        AlbType = "clb",
        Domain = "test.com",
        InstanceId = "waf_2kxtlbky00b2v1fn",
        LoadBalancerSets = new[]
        {
            new Tencentcloud.Inputs.WafClbDomainLoadBalancerSetArgs
            {
                ListenerId = "lbl-nonkgvc2",
                ListenerName = "dsadasd",
                LoadBalancerId = "lb-5dnrkgry",
                LoadBalancerName = "keep-listener-clb",
                LoadBalancerType = "OPEN",
                NumericalVpcId = 5232945,
                Protocol = "HTTP",
                Region = "gz",
                Vip = "106.55.220.8",
                Vport = 80,
                Zone = "ap-guangzhou-6",
            },
        },
        Region = "gz",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.WafClbDomain;
import com.pulumi.tencentcloud.WafClbDomainArgs;
import com.pulumi.tencentcloud.inputs.WafClbDomainLoadBalancerSetArgs;
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 example = new WafClbDomain("example", WafClbDomainArgs.builder()
            .albType("clb")
            .domain("test.com")
            .instanceId("waf_2kxtlbky00b2v1fn")
            .loadBalancerSets(WafClbDomainLoadBalancerSetArgs.builder()
                .listenerId("lbl-nonkgvc2")
                .listenerName("dsadasd")
                .loadBalancerId("lb-5dnrkgry")
                .loadBalancerName("keep-listener-clb")
                .loadBalancerType("OPEN")
                .numericalVpcId("5232945")
                .protocol("HTTP")
                .region("gz")
                .vip("106.55.220.8")
                .vport("80")
                .zone("ap-guangzhou-6")
                .build())
            .region("gz")
            .build());

    }
}
Copy
resources:
  example:
    type: tencentcloud:WafClbDomain
    properties:
      albType: clb
      domain: test.com
      instanceId: waf_2kxtlbky00b2v1fn
      loadBalancerSets:
        - listenerId: lbl-nonkgvc2
          listenerName: dsadasd
          loadBalancerId: lb-5dnrkgry
          loadBalancerName: keep-listener-clb
          loadBalancerType: OPEN
          numericalVpcId: '5232945'
          protocol: HTTP
          region: gz
          vip: 106.55.220.8
          vport: '80'
          zone: ap-guangzhou-6
      region: gz
Copy

Create a complete waf clb domain

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

const example = new tencentcloud.WafClbDomain("example", {
    albType: "clb",
    apiSafeStatus: 1,
    botStatus: 1,
    domain: "test.com",
    engine: 21,
    flowMode: 1,
    instanceId: "waf_2kxtlbky00b2v1fn",
    ipHeaders: [
        "headers_1",
        "headers_2",
        "headers_3",
    ],
    isCdn: 3,
    loadBalancerSets: [{
        listenerId: "lbl-nonkgvc2",
        listenerName: "dsadasd",
        loadBalancerId: "lb-5dnrkgry",
        loadBalancerName: "keep-listener-clb",
        loadBalancerType: "OPEN",
        numericalVpcId: 5232945,
        protocol: "HTTP",
        region: "gz",
        vip: "106.55.220.8",
        vport: 80,
        zone: "ap-guangzhou-6",
    }],
    region: "gz",
    status: 1,
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

example = tencentcloud.WafClbDomain("example",
    alb_type="clb",
    api_safe_status=1,
    bot_status=1,
    domain="test.com",
    engine=21,
    flow_mode=1,
    instance_id="waf_2kxtlbky00b2v1fn",
    ip_headers=[
        "headers_1",
        "headers_2",
        "headers_3",
    ],
    is_cdn=3,
    load_balancer_sets=[{
        "listener_id": "lbl-nonkgvc2",
        "listener_name": "dsadasd",
        "load_balancer_id": "lb-5dnrkgry",
        "load_balancer_name": "keep-listener-clb",
        "load_balancer_type": "OPEN",
        "numerical_vpc_id": 5232945,
        "protocol": "HTTP",
        "region": "gz",
        "vip": "106.55.220.8",
        "vport": 80,
        "zone": "ap-guangzhou-6",
    }],
    region="gz",
    status=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 {
		_, err := tencentcloud.NewWafClbDomain(ctx, "example", &tencentcloud.WafClbDomainArgs{
			AlbType:       pulumi.String("clb"),
			ApiSafeStatus: pulumi.Float64(1),
			BotStatus:     pulumi.Float64(1),
			Domain:        pulumi.String("test.com"),
			Engine:        pulumi.Float64(21),
			FlowMode:      pulumi.Float64(1),
			InstanceId:    pulumi.String("waf_2kxtlbky00b2v1fn"),
			IpHeaders: pulumi.StringArray{
				pulumi.String("headers_1"),
				pulumi.String("headers_2"),
				pulumi.String("headers_3"),
			},
			IsCdn: pulumi.Float64(3),
			LoadBalancerSets: tencentcloud.WafClbDomainLoadBalancerSetArray{
				&tencentcloud.WafClbDomainLoadBalancerSetArgs{
					ListenerId:       pulumi.String("lbl-nonkgvc2"),
					ListenerName:     pulumi.String("dsadasd"),
					LoadBalancerId:   pulumi.String("lb-5dnrkgry"),
					LoadBalancerName: pulumi.String("keep-listener-clb"),
					LoadBalancerType: pulumi.String("OPEN"),
					NumericalVpcId:   pulumi.Float64(5232945),
					Protocol:         pulumi.String("HTTP"),
					Region:           pulumi.String("gz"),
					Vip:              pulumi.String("106.55.220.8"),
					Vport:            pulumi.Float64(80),
					Zone:             pulumi.String("ap-guangzhou-6"),
				},
			},
			Region: pulumi.String("gz"),
			Status: pulumi.Float64(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 example = new Tencentcloud.WafClbDomain("example", new()
    {
        AlbType = "clb",
        ApiSafeStatus = 1,
        BotStatus = 1,
        Domain = "test.com",
        Engine = 21,
        FlowMode = 1,
        InstanceId = "waf_2kxtlbky00b2v1fn",
        IpHeaders = new[]
        {
            "headers_1",
            "headers_2",
            "headers_3",
        },
        IsCdn = 3,
        LoadBalancerSets = new[]
        {
            new Tencentcloud.Inputs.WafClbDomainLoadBalancerSetArgs
            {
                ListenerId = "lbl-nonkgvc2",
                ListenerName = "dsadasd",
                LoadBalancerId = "lb-5dnrkgry",
                LoadBalancerName = "keep-listener-clb",
                LoadBalancerType = "OPEN",
                NumericalVpcId = 5232945,
                Protocol = "HTTP",
                Region = "gz",
                Vip = "106.55.220.8",
                Vport = 80,
                Zone = "ap-guangzhou-6",
            },
        },
        Region = "gz",
        Status = 1,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.WafClbDomain;
import com.pulumi.tencentcloud.WafClbDomainArgs;
import com.pulumi.tencentcloud.inputs.WafClbDomainLoadBalancerSetArgs;
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 example = new WafClbDomain("example", WafClbDomainArgs.builder()
            .albType("clb")
            .apiSafeStatus(1)
            .botStatus(1)
            .domain("test.com")
            .engine(21)
            .flowMode(1)
            .instanceId("waf_2kxtlbky00b2v1fn")
            .ipHeaders(            
                "headers_1",
                "headers_2",
                "headers_3")
            .isCdn(3)
            .loadBalancerSets(WafClbDomainLoadBalancerSetArgs.builder()
                .listenerId("lbl-nonkgvc2")
                .listenerName("dsadasd")
                .loadBalancerId("lb-5dnrkgry")
                .loadBalancerName("keep-listener-clb")
                .loadBalancerType("OPEN")
                .numericalVpcId("5232945")
                .protocol("HTTP")
                .region("gz")
                .vip("106.55.220.8")
                .vport("80")
                .zone("ap-guangzhou-6")
                .build())
            .region("gz")
            .status(1)
            .build());

    }
}
Copy
resources:
  example:
    type: tencentcloud:WafClbDomain
    properties:
      albType: clb
      apiSafeStatus: 1
      botStatus: 1
      domain: test.com
      engine: 21
      flowMode: 1
      instanceId: waf_2kxtlbky00b2v1fn
      ipHeaders:
        - headers_1
        - headers_2
        - headers_3
      isCdn: 3
      loadBalancerSets:
        - listenerId: lbl-nonkgvc2
          listenerName: dsadasd
          loadBalancerId: lb-5dnrkgry
          loadBalancerName: keep-listener-clb
          loadBalancerType: OPEN
          numericalVpcId: '5232945'
          protocol: HTTP
          region: gz
          vip: 106.55.220.8
          vport: '80'
          zone: ap-guangzhou-6
      region: gz
      status: 1
Copy

Create a complete waf tsegw domain

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

const example = new tencentcloud.WafClbDomain("example", {
    albType: "tsegw",
    apiSafeStatus: 0,
    botStatus: 0,
    domain: "xxx.com",
    engine: 12,
    flowMode: 0,
    instanceId: "waf_2kxtlbky00b2v1fn",
    isCdn: 0,
    region: "gz",
    status: 1,
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

example = tencentcloud.WafClbDomain("example",
    alb_type="tsegw",
    api_safe_status=0,
    bot_status=0,
    domain="xxx.com",
    engine=12,
    flow_mode=0,
    instance_id="waf_2kxtlbky00b2v1fn",
    is_cdn=0,
    region="gz",
    status=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 {
		_, err := tencentcloud.NewWafClbDomain(ctx, "example", &tencentcloud.WafClbDomainArgs{
			AlbType:       pulumi.String("tsegw"),
			ApiSafeStatus: pulumi.Float64(0),
			BotStatus:     pulumi.Float64(0),
			Domain:        pulumi.String("xxx.com"),
			Engine:        pulumi.Float64(12),
			FlowMode:      pulumi.Float64(0),
			InstanceId:    pulumi.String("waf_2kxtlbky00b2v1fn"),
			IsCdn:         pulumi.Float64(0),
			Region:        pulumi.String("gz"),
			Status:        pulumi.Float64(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 example = new Tencentcloud.WafClbDomain("example", new()
    {
        AlbType = "tsegw",
        ApiSafeStatus = 0,
        BotStatus = 0,
        Domain = "xxx.com",
        Engine = 12,
        FlowMode = 0,
        InstanceId = "waf_2kxtlbky00b2v1fn",
        IsCdn = 0,
        Region = "gz",
        Status = 1,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.WafClbDomain;
import com.pulumi.tencentcloud.WafClbDomainArgs;
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 example = new WafClbDomain("example", WafClbDomainArgs.builder()
            .albType("tsegw")
            .apiSafeStatus(0)
            .botStatus(0)
            .domain("xxx.com")
            .engine(12)
            .flowMode(0)
            .instanceId("waf_2kxtlbky00b2v1fn")
            .isCdn(0)
            .region("gz")
            .status(1)
            .build());

    }
}
Copy
resources:
  example:
    type: tencentcloud:WafClbDomain
    properties:
      albType: tsegw
      apiSafeStatus: 0
      botStatus: 0
      domain: xxx.com
      engine: 12
      flowMode: 0
      instanceId: waf_2kxtlbky00b2v1fn
      isCdn: 0
      region: gz
      status: 1
Copy

Create a complete waf apisix domain

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

const example = new tencentcloud.WafClbDomain("example", {
    albType: "apisix",
    apiSafeStatus: 0,
    botStatus: 0,
    domain: "xxx.com",
    engine: 12,
    flowMode: 0,
    instanceId: "waf_2kxtlbky00b2v1fn",
    isCdn: 0,
    region: "gz",
    status: 1,
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

example = tencentcloud.WafClbDomain("example",
    alb_type="apisix",
    api_safe_status=0,
    bot_status=0,
    domain="xxx.com",
    engine=12,
    flow_mode=0,
    instance_id="waf_2kxtlbky00b2v1fn",
    is_cdn=0,
    region="gz",
    status=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 {
		_, err := tencentcloud.NewWafClbDomain(ctx, "example", &tencentcloud.WafClbDomainArgs{
			AlbType:       pulumi.String("apisix"),
			ApiSafeStatus: pulumi.Float64(0),
			BotStatus:     pulumi.Float64(0),
			Domain:        pulumi.String("xxx.com"),
			Engine:        pulumi.Float64(12),
			FlowMode:      pulumi.Float64(0),
			InstanceId:    pulumi.String("waf_2kxtlbky00b2v1fn"),
			IsCdn:         pulumi.Float64(0),
			Region:        pulumi.String("gz"),
			Status:        pulumi.Float64(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 example = new Tencentcloud.WafClbDomain("example", new()
    {
        AlbType = "apisix",
        ApiSafeStatus = 0,
        BotStatus = 0,
        Domain = "xxx.com",
        Engine = 12,
        FlowMode = 0,
        InstanceId = "waf_2kxtlbky00b2v1fn",
        IsCdn = 0,
        Region = "gz",
        Status = 1,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.WafClbDomain;
import com.pulumi.tencentcloud.WafClbDomainArgs;
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 example = new WafClbDomain("example", WafClbDomainArgs.builder()
            .albType("apisix")
            .apiSafeStatus(0)
            .botStatus(0)
            .domain("xxx.com")
            .engine(12)
            .flowMode(0)
            .instanceId("waf_2kxtlbky00b2v1fn")
            .isCdn(0)
            .region("gz")
            .status(1)
            .build());

    }
}
Copy
resources:
  example:
    type: tencentcloud:WafClbDomain
    properties:
      albType: apisix
      apiSafeStatus: 0
      botStatus: 0
      domain: xxx.com
      engine: 12
      flowMode: 0
      instanceId: waf_2kxtlbky00b2v1fn
      isCdn: 0
      region: gz
      status: 1
Copy

Create WafClbDomain Resource

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

Constructor syntax

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

@overload
def WafClbDomain(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 domain: Optional[str] = None,
                 region: Optional[str] = None,
                 instance_id: Optional[str] = None,
                 flow_mode: Optional[float] = None,
                 cls_status: Optional[float] = None,
                 engine: Optional[float] = None,
                 alb_type: Optional[str] = None,
                 bot_status: Optional[float] = None,
                 ip_headers: Optional[Sequence[str]] = None,
                 is_cdn: Optional[float] = None,
                 load_balancer_sets: Optional[Sequence[WafClbDomainLoadBalancerSetArgs]] = None,
                 api_safe_status: Optional[float] = None,
                 status: Optional[float] = None,
                 waf_clb_domain_id: Optional[str] = None)
func NewWafClbDomain(ctx *Context, name string, args WafClbDomainArgs, opts ...ResourceOption) (*WafClbDomain, error)
public WafClbDomain(string name, WafClbDomainArgs args, CustomResourceOptions? opts = null)
public WafClbDomain(String name, WafClbDomainArgs args)
public WafClbDomain(String name, WafClbDomainArgs args, CustomResourceOptions options)
type: tencentcloud:WafClbDomain
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. WafClbDomainArgs
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. WafClbDomainArgs
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. WafClbDomainArgs
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. WafClbDomainArgs
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. WafClbDomainArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

Domain This property is required. string
Domain name.
InstanceId This property is required. string
Instance unique ID.
Region This property is required. string
Regions of LB bound by domain.
AlbType string
Load balancer type: clb, apisix or tsegw, default clb.
ApiSafeStatus double
Whether to enable api safe, 1 enable, 0 disable.
BotStatus double
Whether to enable bot, 1 enable, 0 disable.
ClsStatus double
Whether to enable access logs, 1 enable, 0 disable.
Engine double
Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
FlowMode double
WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
IpHeaders List<string>
When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
IsCdn double
Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
LoadBalancerSets List<WafClbDomainLoadBalancerSet>
List of bound LB.
Status double
Binding status between waf and LB, 0:not bind, 1:binding.
WafClbDomainId string
ID of the resource.
Domain This property is required. string
Domain name.
InstanceId This property is required. string
Instance unique ID.
Region This property is required. string
Regions of LB bound by domain.
AlbType string
Load balancer type: clb, apisix or tsegw, default clb.
ApiSafeStatus float64
Whether to enable api safe, 1 enable, 0 disable.
BotStatus float64
Whether to enable bot, 1 enable, 0 disable.
ClsStatus float64
Whether to enable access logs, 1 enable, 0 disable.
Engine float64
Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
FlowMode float64
WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
IpHeaders []string
When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
IsCdn float64
Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
LoadBalancerSets []WafClbDomainLoadBalancerSetArgs
List of bound LB.
Status float64
Binding status between waf and LB, 0:not bind, 1:binding.
WafClbDomainId string
ID of the resource.
domain This property is required. String
Domain name.
instanceId This property is required. String
Instance unique ID.
region This property is required. String
Regions of LB bound by domain.
albType String
Load balancer type: clb, apisix or tsegw, default clb.
apiSafeStatus Double
Whether to enable api safe, 1 enable, 0 disable.
botStatus Double
Whether to enable bot, 1 enable, 0 disable.
clsStatus Double
Whether to enable access logs, 1 enable, 0 disable.
engine Double
Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
flowMode Double
WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
ipHeaders List<String>
When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
isCdn Double
Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
loadBalancerSets List<WafClbDomainLoadBalancerSet>
List of bound LB.
status Double
Binding status between waf and LB, 0:not bind, 1:binding.
wafClbDomainId String
ID of the resource.
domain This property is required. string
Domain name.
instanceId This property is required. string
Instance unique ID.
region This property is required. string
Regions of LB bound by domain.
albType string
Load balancer type: clb, apisix or tsegw, default clb.
apiSafeStatus number
Whether to enable api safe, 1 enable, 0 disable.
botStatus number
Whether to enable bot, 1 enable, 0 disable.
clsStatus number
Whether to enable access logs, 1 enable, 0 disable.
engine number
Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
flowMode number
WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
ipHeaders string[]
When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
isCdn number
Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
loadBalancerSets WafClbDomainLoadBalancerSet[]
List of bound LB.
status number
Binding status between waf and LB, 0:not bind, 1:binding.
wafClbDomainId string
ID of the resource.
domain This property is required. str
Domain name.
instance_id This property is required. str
Instance unique ID.
region This property is required. str
Regions of LB bound by domain.
alb_type str
Load balancer type: clb, apisix or tsegw, default clb.
api_safe_status float
Whether to enable api safe, 1 enable, 0 disable.
bot_status float
Whether to enable bot, 1 enable, 0 disable.
cls_status float
Whether to enable access logs, 1 enable, 0 disable.
engine float
Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
flow_mode float
WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
ip_headers Sequence[str]
When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
is_cdn float
Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
load_balancer_sets Sequence[WafClbDomainLoadBalancerSetArgs]
List of bound LB.
status float
Binding status between waf and LB, 0:not bind, 1:binding.
waf_clb_domain_id str
ID of the resource.
domain This property is required. String
Domain name.
instanceId This property is required. String
Instance unique ID.
region This property is required. String
Regions of LB bound by domain.
albType String
Load balancer type: clb, apisix or tsegw, default clb.
apiSafeStatus Number
Whether to enable api safe, 1 enable, 0 disable.
botStatus Number
Whether to enable bot, 1 enable, 0 disable.
clsStatus Number
Whether to enable access logs, 1 enable, 0 disable.
engine Number
Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
flowMode Number
WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
ipHeaders List<String>
When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
isCdn Number
Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
loadBalancerSets List<Property Map>
List of bound LB.
status Number
Binding status between waf and LB, 0:not bind, 1:binding.
wafClbDomainId String
ID of the resource.

Outputs

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

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

Look up Existing WafClbDomain Resource

Get an existing WafClbDomain 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?: WafClbDomainState, opts?: CustomResourceOptions): WafClbDomain
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        alb_type: Optional[str] = None,
        api_safe_status: Optional[float] = None,
        bot_status: Optional[float] = None,
        cls_status: Optional[float] = None,
        domain: Optional[str] = None,
        domain_id: Optional[str] = None,
        engine: Optional[float] = None,
        flow_mode: Optional[float] = None,
        instance_id: Optional[str] = None,
        ip_headers: Optional[Sequence[str]] = None,
        is_cdn: Optional[float] = None,
        load_balancer_sets: Optional[Sequence[WafClbDomainLoadBalancerSetArgs]] = None,
        region: Optional[str] = None,
        status: Optional[float] = None,
        waf_clb_domain_id: Optional[str] = None) -> WafClbDomain
func GetWafClbDomain(ctx *Context, name string, id IDInput, state *WafClbDomainState, opts ...ResourceOption) (*WafClbDomain, error)
public static WafClbDomain Get(string name, Input<string> id, WafClbDomainState? state, CustomResourceOptions? opts = null)
public static WafClbDomain get(String name, Output<String> id, WafClbDomainState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:WafClbDomain    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:
AlbType string
Load balancer type: clb, apisix or tsegw, default clb.
ApiSafeStatus double
Whether to enable api safe, 1 enable, 0 disable.
BotStatus double
Whether to enable bot, 1 enable, 0 disable.
ClsStatus double
Whether to enable access logs, 1 enable, 0 disable.
Domain string
Domain name.
DomainId string
Domain id.
Engine double
Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
FlowMode double
WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
InstanceId string
Instance unique ID.
IpHeaders List<string>
When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
IsCdn double
Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
LoadBalancerSets List<WafClbDomainLoadBalancerSet>
List of bound LB.
Region string
Regions of LB bound by domain.
Status double
Binding status between waf and LB, 0:not bind, 1:binding.
WafClbDomainId string
ID of the resource.
AlbType string
Load balancer type: clb, apisix or tsegw, default clb.
ApiSafeStatus float64
Whether to enable api safe, 1 enable, 0 disable.
BotStatus float64
Whether to enable bot, 1 enable, 0 disable.
ClsStatus float64
Whether to enable access logs, 1 enable, 0 disable.
Domain string
Domain name.
DomainId string
Domain id.
Engine float64
Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
FlowMode float64
WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
InstanceId string
Instance unique ID.
IpHeaders []string
When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
IsCdn float64
Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
LoadBalancerSets []WafClbDomainLoadBalancerSetArgs
List of bound LB.
Region string
Regions of LB bound by domain.
Status float64
Binding status between waf and LB, 0:not bind, 1:binding.
WafClbDomainId string
ID of the resource.
albType String
Load balancer type: clb, apisix or tsegw, default clb.
apiSafeStatus Double
Whether to enable api safe, 1 enable, 0 disable.
botStatus Double
Whether to enable bot, 1 enable, 0 disable.
clsStatus Double
Whether to enable access logs, 1 enable, 0 disable.
domain String
Domain name.
domainId String
Domain id.
engine Double
Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
flowMode Double
WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
instanceId String
Instance unique ID.
ipHeaders List<String>
When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
isCdn Double
Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
loadBalancerSets List<WafClbDomainLoadBalancerSet>
List of bound LB.
region String
Regions of LB bound by domain.
status Double
Binding status between waf and LB, 0:not bind, 1:binding.
wafClbDomainId String
ID of the resource.
albType string
Load balancer type: clb, apisix or tsegw, default clb.
apiSafeStatus number
Whether to enable api safe, 1 enable, 0 disable.
botStatus number
Whether to enable bot, 1 enable, 0 disable.
clsStatus number
Whether to enable access logs, 1 enable, 0 disable.
domain string
Domain name.
domainId string
Domain id.
engine number
Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
flowMode number
WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
instanceId string
Instance unique ID.
ipHeaders string[]
When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
isCdn number
Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
loadBalancerSets WafClbDomainLoadBalancerSet[]
List of bound LB.
region string
Regions of LB bound by domain.
status number
Binding status between waf and LB, 0:not bind, 1:binding.
wafClbDomainId string
ID of the resource.
alb_type str
Load balancer type: clb, apisix or tsegw, default clb.
api_safe_status float
Whether to enable api safe, 1 enable, 0 disable.
bot_status float
Whether to enable bot, 1 enable, 0 disable.
cls_status float
Whether to enable access logs, 1 enable, 0 disable.
domain str
Domain name.
domain_id str
Domain id.
engine float
Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
flow_mode float
WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
instance_id str
Instance unique ID.
ip_headers Sequence[str]
When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
is_cdn float
Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
load_balancer_sets Sequence[WafClbDomainLoadBalancerSetArgs]
List of bound LB.
region str
Regions of LB bound by domain.
status float
Binding status between waf and LB, 0:not bind, 1:binding.
waf_clb_domain_id str
ID of the resource.
albType String
Load balancer type: clb, apisix or tsegw, default clb.
apiSafeStatus Number
Whether to enable api safe, 1 enable, 0 disable.
botStatus Number
Whether to enable bot, 1 enable, 0 disable.
clsStatus Number
Whether to enable access logs, 1 enable, 0 disable.
domain String
Domain name.
domainId String
Domain id.
engine Number
Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
flowMode Number
WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
instanceId String
Instance unique ID.
ipHeaders List<String>
When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
isCdn Number
Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
loadBalancerSets List<Property Map>
List of bound LB.
region String
Regions of LB bound by domain.
status Number
Binding status between waf and LB, 0:not bind, 1:binding.
wafClbDomainId String
ID of the resource.

Supporting Types

WafClbDomainLoadBalancerSet
, WafClbDomainLoadBalancerSetArgs

ListenerId This property is required. string
Unique ID of listener in LB.
ListenerName This property is required. string
Listener name.
LoadBalancerId This property is required. string
LoadBalancer unique ID.
LoadBalancerName This property is required. string
LoadBalancer name.
Protocol This property is required. string
Protocol of listener, http or https.
Region This property is required. string
LoadBalancer region.
Vip This property is required. string
LoadBalancer IP.
Vport This property is required. double
LoadBalancer port.
Zone This property is required. string
LoadBalancer zone.
LoadBalancerType string
Network type for load balancer.
NumericalVpcId double
VPCID for load balancer, public network is -1, and internal network is filled in according to actual conditions.
ListenerId This property is required. string
Unique ID of listener in LB.
ListenerName This property is required. string
Listener name.
LoadBalancerId This property is required. string
LoadBalancer unique ID.
LoadBalancerName This property is required. string
LoadBalancer name.
Protocol This property is required. string
Protocol of listener, http or https.
Region This property is required. string
LoadBalancer region.
Vip This property is required. string
LoadBalancer IP.
Vport This property is required. float64
LoadBalancer port.
Zone This property is required. string
LoadBalancer zone.
LoadBalancerType string
Network type for load balancer.
NumericalVpcId float64
VPCID for load balancer, public network is -1, and internal network is filled in according to actual conditions.
listenerId This property is required. String
Unique ID of listener in LB.
listenerName This property is required. String
Listener name.
loadBalancerId This property is required. String
LoadBalancer unique ID.
loadBalancerName This property is required. String
LoadBalancer name.
protocol This property is required. String
Protocol of listener, http or https.
region This property is required. String
LoadBalancer region.
vip This property is required. String
LoadBalancer IP.
vport This property is required. Double
LoadBalancer port.
zone This property is required. String
LoadBalancer zone.
loadBalancerType String
Network type for load balancer.
numericalVpcId Double
VPCID for load balancer, public network is -1, and internal network is filled in according to actual conditions.
listenerId This property is required. string
Unique ID of listener in LB.
listenerName This property is required. string
Listener name.
loadBalancerId This property is required. string
LoadBalancer unique ID.
loadBalancerName This property is required. string
LoadBalancer name.
protocol This property is required. string
Protocol of listener, http or https.
region This property is required. string
LoadBalancer region.
vip This property is required. string
LoadBalancer IP.
vport This property is required. number
LoadBalancer port.
zone This property is required. string
LoadBalancer zone.
loadBalancerType string
Network type for load balancer.
numericalVpcId number
VPCID for load balancer, public network is -1, and internal network is filled in according to actual conditions.
listener_id This property is required. str
Unique ID of listener in LB.
listener_name This property is required. str
Listener name.
load_balancer_id This property is required. str
LoadBalancer unique ID.
load_balancer_name This property is required. str
LoadBalancer name.
protocol This property is required. str
Protocol of listener, http or https.
region This property is required. str
LoadBalancer region.
vip This property is required. str
LoadBalancer IP.
vport This property is required. float
LoadBalancer port.
zone This property is required. str
LoadBalancer zone.
load_balancer_type str
Network type for load balancer.
numerical_vpc_id float
VPCID for load balancer, public network is -1, and internal network is filled in according to actual conditions.
listenerId This property is required. String
Unique ID of listener in LB.
listenerName This property is required. String
Listener name.
loadBalancerId This property is required. String
LoadBalancer unique ID.
loadBalancerName This property is required. String
LoadBalancer name.
protocol This property is required. String
Protocol of listener, http or https.
region This property is required. String
LoadBalancer region.
vip This property is required. String
LoadBalancer IP.
vport This property is required. Number
LoadBalancer port.
zone This property is required. String
LoadBalancer zone.
loadBalancerType String
Network type for load balancer.
numericalVpcId Number
VPCID for load balancer, public network is -1, and internal network is filled in according to actual conditions.

Import

waf clb_domain can be imported using the id, e.g.

$ pulumi import tencentcloud:index/wafClbDomain:WafClbDomain example waf_2kxtlbky00b2v1fn#test.com#waf-0FSehoRU
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.