1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. WafDomainV1
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.WafDomainV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for WAF domain you can get at documentation portal

    Manages a WAF domain resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const content = config.requireObject("content");
    const certificate1 = new opentelekomcloud.WafCertificateV1("certificate1", {
        content: "-----BEGIN CERTIFICATE-----MIIDIjCCAougAwIBAgIJALV96mEtVF4EMA0GCSqGSIb3DQEBBQUAMGoxCzAJBgNVBAYTAnh4MQswCQYDVQQIEwJ4eDELMAkGA1UEBxMCeHgxCzAJBgNVBAoTAnh4MQswCQYDVQQLEwJ-----END CERTIFICATE-----",
        key: "-----BEGIN RSA PRIVATE KEY-----MIICXQIBAAKBgQDFPN9ojPndxSC4E1pqWQVKGHCFlXAAGBOxbGfSzXqzsoyacotueqMqXQbxrPSQFATeVmhZPNVEMdvcAMjYsV/mymtAwVqVA6q/OFdX/b3UHO+b/VqLo3J5SrM-----END RSA PRIVATE KEY-----",
    });
    const domain1 = new opentelekomcloud.WafDomainV1("domain1", {
        hostname: "www.example.com",
        servers: [{
            clientProtocol: "HTTPS",
            serverProtocol: "HTTPS",
            address: "80.158.42.162",
            port: "443",
        }],
        certificateId: certificate1.wafCertificateV1Id,
        proxy: true,
        sipHeaderName: "default",
        sipHeaderLists: ["X-Forwarded-For"],
        blockPage: {
            template: "custom",
            statusCode: "200",
            contentType: "application/json",
            content: content,
        },
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    content = config.require_object("content")
    certificate1 = opentelekomcloud.WafCertificateV1("certificate1",
        content="-----BEGIN CERTIFICATE-----MIIDIjCCAougAwIBAgIJALV96mEtVF4EMA0GCSqGSIb3DQEBBQUAMGoxCzAJBgNVBAYTAnh4MQswCQYDVQQIEwJ4eDELMAkGA1UEBxMCeHgxCzAJBgNVBAoTAnh4MQswCQYDVQQLEwJ-----END CERTIFICATE-----",
        key="-----BEGIN RSA PRIVATE KEY-----MIICXQIBAAKBgQDFPN9ojPndxSC4E1pqWQVKGHCFlXAAGBOxbGfSzXqzsoyacotueqMqXQbxrPSQFATeVmhZPNVEMdvcAMjYsV/mymtAwVqVA6q/OFdX/b3UHO+b/VqLo3J5SrM-----END RSA PRIVATE KEY-----")
    domain1 = opentelekomcloud.WafDomainV1("domain1",
        hostname="www.example.com",
        servers=[{
            "client_protocol": "HTTPS",
            "server_protocol": "HTTPS",
            "address": "80.158.42.162",
            "port": "443",
        }],
        certificate_id=certificate1.waf_certificate_v1_id,
        proxy=True,
        sip_header_name="default",
        sip_header_lists=["X-Forwarded-For"],
        block_page={
            "template": "custom",
            "status_code": "200",
            "content_type": "application/json",
            "content": content,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		content := cfg.RequireObject("content")
    		certificate1, err := opentelekomcloud.NewWafCertificateV1(ctx, "certificate1", &opentelekomcloud.WafCertificateV1Args{
    			Content: pulumi.String("-----BEGIN CERTIFICATE-----MIIDIjCCAougAwIBAgIJALV96mEtVF4EMA0GCSqGSIb3DQEBBQUAMGoxCzAJBgNVBAYTAnh4MQswCQYDVQQIEwJ4eDELMAkGA1UEBxMCeHgxCzAJBgNVBAoTAnh4MQswCQYDVQQLEwJ-----END CERTIFICATE-----"),
    			Key:     pulumi.String("-----BEGIN RSA PRIVATE KEY-----MIICXQIBAAKBgQDFPN9ojPndxSC4E1pqWQVKGHCFlXAAGBOxbGfSzXqzsoyacotueqMqXQbxrPSQFATeVmhZPNVEMdvcAMjYsV/mymtAwVqVA6q/OFdX/b3UHO+b/VqLo3J5SrM-----END RSA PRIVATE KEY-----"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewWafDomainV1(ctx, "domain1", &opentelekomcloud.WafDomainV1Args{
    			Hostname: pulumi.String("www.example.com"),
    			Servers: opentelekomcloud.WafDomainV1ServerArray{
    				&opentelekomcloud.WafDomainV1ServerArgs{
    					ClientProtocol: pulumi.String("HTTPS"),
    					ServerProtocol: pulumi.String("HTTPS"),
    					Address:        pulumi.String("80.158.42.162"),
    					Port:           pulumi.String("443"),
    				},
    			},
    			CertificateId: certificate1.WafCertificateV1Id,
    			Proxy:         pulumi.Bool(true),
    			SipHeaderName: pulumi.String("default"),
    			SipHeaderLists: pulumi.StringArray{
    				pulumi.String("X-Forwarded-For"),
    			},
    			BlockPage: &opentelekomcloud.WafDomainV1BlockPageArgs{
    				Template:    pulumi.String("custom"),
    				StatusCode:  pulumi.String("200"),
    				ContentType: pulumi.String("application/json"),
    				Content:     pulumi.Any(content),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var content = config.RequireObject<dynamic>("content");
        var certificate1 = new Opentelekomcloud.WafCertificateV1("certificate1", new()
        {
            Content = "-----BEGIN CERTIFICATE-----MIIDIjCCAougAwIBAgIJALV96mEtVF4EMA0GCSqGSIb3DQEBBQUAMGoxCzAJBgNVBAYTAnh4MQswCQYDVQQIEwJ4eDELMAkGA1UEBxMCeHgxCzAJBgNVBAoTAnh4MQswCQYDVQQLEwJ-----END CERTIFICATE-----",
            Key = "-----BEGIN RSA PRIVATE KEY-----MIICXQIBAAKBgQDFPN9ojPndxSC4E1pqWQVKGHCFlXAAGBOxbGfSzXqzsoyacotueqMqXQbxrPSQFATeVmhZPNVEMdvcAMjYsV/mymtAwVqVA6q/OFdX/b3UHO+b/VqLo3J5SrM-----END RSA PRIVATE KEY-----",
        });
    
        var domain1 = new Opentelekomcloud.WafDomainV1("domain1", new()
        {
            Hostname = "www.example.com",
            Servers = new[]
            {
                new Opentelekomcloud.Inputs.WafDomainV1ServerArgs
                {
                    ClientProtocol = "HTTPS",
                    ServerProtocol = "HTTPS",
                    Address = "80.158.42.162",
                    Port = "443",
                },
            },
            CertificateId = certificate1.WafCertificateV1Id,
            Proxy = true,
            SipHeaderName = "default",
            SipHeaderLists = new[]
            {
                "X-Forwarded-For",
            },
            BlockPage = new Opentelekomcloud.Inputs.WafDomainV1BlockPageArgs
            {
                Template = "custom",
                StatusCode = "200",
                ContentType = "application/json",
                Content = content,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.WafCertificateV1;
    import com.pulumi.opentelekomcloud.WafCertificateV1Args;
    import com.pulumi.opentelekomcloud.WafDomainV1;
    import com.pulumi.opentelekomcloud.WafDomainV1Args;
    import com.pulumi.opentelekomcloud.inputs.WafDomainV1ServerArgs;
    import com.pulumi.opentelekomcloud.inputs.WafDomainV1BlockPageArgs;
    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) {
            final var config = ctx.config();
            final var content = config.get("content");
            var certificate1 = new WafCertificateV1("certificate1", WafCertificateV1Args.builder()
                .content("-----BEGIN CERTIFICATE-----MIIDIjCCAougAwIBAgIJALV96mEtVF4EMA0GCSqGSIb3DQEBBQUAMGoxCzAJBgNVBAYTAnh4MQswCQYDVQQIEwJ4eDELMAkGA1UEBxMCeHgxCzAJBgNVBAoTAnh4MQswCQYDVQQLEwJ-----END CERTIFICATE-----")
                .key("-----BEGIN RSA PRIVATE KEY-----MIICXQIBAAKBgQDFPN9ojPndxSC4E1pqWQVKGHCFlXAAGBOxbGfSzXqzsoyacotueqMqXQbxrPSQFATeVmhZPNVEMdvcAMjYsV/mymtAwVqVA6q/OFdX/b3UHO+b/VqLo3J5SrM-----END RSA PRIVATE KEY-----")
                .build());
    
            var domain1 = new WafDomainV1("domain1", WafDomainV1Args.builder()
                .hostname("www.example.com")
                .servers(WafDomainV1ServerArgs.builder()
                    .clientProtocol("HTTPS")
                    .serverProtocol("HTTPS")
                    .address("80.158.42.162")
                    .port("443")
                    .build())
                .certificateId(certificate1.wafCertificateV1Id())
                .proxy(true)
                .sipHeaderName("default")
                .sipHeaderLists("X-Forwarded-For")
                .blockPage(WafDomainV1BlockPageArgs.builder()
                    .template("custom")
                    .statusCode("200")
                    .contentType("application/json")
                    .content(content)
                    .build())
                .build());
    
        }
    }
    
    configuration:
      content:
        type: dynamic
    resources:
      certificate1:
        type: opentelekomcloud:WafCertificateV1
        properties:
          content: '-----BEGIN CERTIFICATE-----MIIDIjCCAougAwIBAgIJALV96mEtVF4EMA0GCSqGSIb3DQEBBQUAMGoxCzAJBgNVBAYTAnh4MQswCQYDVQQIEwJ4eDELMAkGA1UEBxMCeHgxCzAJBgNVBAoTAnh4MQswCQYDVQQLEwJ-----END CERTIFICATE-----'
          key: '-----BEGIN RSA PRIVATE KEY-----MIICXQIBAAKBgQDFPN9ojPndxSC4E1pqWQVKGHCFlXAAGBOxbGfSzXqzsoyacotueqMqXQbxrPSQFATeVmhZPNVEMdvcAMjYsV/mymtAwVqVA6q/OFdX/b3UHO+b/VqLo3J5SrM-----END RSA PRIVATE KEY-----'
      domain1:
        type: opentelekomcloud:WafDomainV1
        properties:
          hostname: www.example.com
          servers:
            - clientProtocol: HTTPS
              serverProtocol: HTTPS
              address: 80.158.42.162
              port: '443'
          certificateId: ${certificate1.wafCertificateV1Id}
          proxy: true
          sipHeaderName: default
          sipHeaderLists:
            - X-Forwarded-For
          blockPage:
            template: custom
            statusCode: '200'
            contentType: application/json
            content: ${content}
    

    Create WafDomainV1 Resource

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

    Constructor syntax

    new WafDomainV1(name: string, args: WafDomainV1Args, opts?: CustomResourceOptions);
    @overload
    def WafDomainV1(resource_name: str,
                    args: WafDomainV1Args,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def WafDomainV1(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    hostname: Optional[str] = None,
                    proxy: Optional[bool] = None,
                    servers: Optional[Sequence[WafDomainV1ServerArgs]] = None,
                    block_page: Optional[WafDomainV1BlockPageArgs] = None,
                    certificate_id: Optional[str] = None,
                    cipher: Optional[str] = None,
                    policy_id: Optional[str] = None,
                    sip_header_lists: Optional[Sequence[str]] = None,
                    sip_header_name: Optional[str] = None,
                    timeouts: Optional[WafDomainV1TimeoutsArgs] = None,
                    tls: Optional[str] = None,
                    waf_domain_v1_id: Optional[str] = None)
    func NewWafDomainV1(ctx *Context, name string, args WafDomainV1Args, opts ...ResourceOption) (*WafDomainV1, error)
    public WafDomainV1(string name, WafDomainV1Args args, CustomResourceOptions? opts = null)
    public WafDomainV1(String name, WafDomainV1Args args)
    public WafDomainV1(String name, WafDomainV1Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:WafDomainV1
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args WafDomainV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args WafDomainV1Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args WafDomainV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WafDomainV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WafDomainV1Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var wafDomainV1Resource = new Opentelekomcloud.WafDomainV1("wafDomainV1Resource", new()
    {
        Hostname = "string",
        Proxy = false,
        Servers = new[]
        {
            new Opentelekomcloud.Inputs.WafDomainV1ServerArgs
            {
                Address = "string",
                Port = "string",
                ClientProtocol = "string",
                ServerProtocol = "string",
            },
        },
        BlockPage = new Opentelekomcloud.Inputs.WafDomainV1BlockPageArgs
        {
            Template = "string",
            Content = "string",
            ContentType = "string",
            RedirectUrl = "string",
            StatusCode = "string",
        },
        CertificateId = "string",
        Cipher = "string",
        PolicyId = "string",
        SipHeaderLists = new[]
        {
            "string",
        },
        SipHeaderName = "string",
        Timeouts = new Opentelekomcloud.Inputs.WafDomainV1TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        Tls = "string",
        WafDomainV1Id = "string",
    });
    
    example, err := opentelekomcloud.NewWafDomainV1(ctx, "wafDomainV1Resource", &opentelekomcloud.WafDomainV1Args{
    	Hostname: pulumi.String("string"),
    	Proxy:    pulumi.Bool(false),
    	Servers: opentelekomcloud.WafDomainV1ServerArray{
    		&opentelekomcloud.WafDomainV1ServerArgs{
    			Address:        pulumi.String("string"),
    			Port:           pulumi.String("string"),
    			ClientProtocol: pulumi.String("string"),
    			ServerProtocol: pulumi.String("string"),
    		},
    	},
    	BlockPage: &opentelekomcloud.WafDomainV1BlockPageArgs{
    		Template:    pulumi.String("string"),
    		Content:     pulumi.String("string"),
    		ContentType: pulumi.String("string"),
    		RedirectUrl: pulumi.String("string"),
    		StatusCode:  pulumi.String("string"),
    	},
    	CertificateId: pulumi.String("string"),
    	Cipher:        pulumi.String("string"),
    	PolicyId:      pulumi.String("string"),
    	SipHeaderLists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SipHeaderName: pulumi.String("string"),
    	Timeouts: &opentelekomcloud.WafDomainV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	Tls:           pulumi.String("string"),
    	WafDomainV1Id: pulumi.String("string"),
    })
    
    var wafDomainV1Resource = new WafDomainV1("wafDomainV1Resource", WafDomainV1Args.builder()
        .hostname("string")
        .proxy(false)
        .servers(WafDomainV1ServerArgs.builder()
            .address("string")
            .port("string")
            .clientProtocol("string")
            .serverProtocol("string")
            .build())
        .blockPage(WafDomainV1BlockPageArgs.builder()
            .template("string")
            .content("string")
            .contentType("string")
            .redirectUrl("string")
            .statusCode("string")
            .build())
        .certificateId("string")
        .cipher("string")
        .policyId("string")
        .sipHeaderLists("string")
        .sipHeaderName("string")
        .timeouts(WafDomainV1TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .tls("string")
        .wafDomainV1Id("string")
        .build());
    
    waf_domain_v1_resource = opentelekomcloud.WafDomainV1("wafDomainV1Resource",
        hostname="string",
        proxy=False,
        servers=[{
            "address": "string",
            "port": "string",
            "client_protocol": "string",
            "server_protocol": "string",
        }],
        block_page={
            "template": "string",
            "content": "string",
            "content_type": "string",
            "redirect_url": "string",
            "status_code": "string",
        },
        certificate_id="string",
        cipher="string",
        policy_id="string",
        sip_header_lists=["string"],
        sip_header_name="string",
        timeouts={
            "create": "string",
            "delete": "string",
        },
        tls="string",
        waf_domain_v1_id="string")
    
    const wafDomainV1Resource = new opentelekomcloud.WafDomainV1("wafDomainV1Resource", {
        hostname: "string",
        proxy: false,
        servers: [{
            address: "string",
            port: "string",
            clientProtocol: "string",
            serverProtocol: "string",
        }],
        blockPage: {
            template: "string",
            content: "string",
            contentType: "string",
            redirectUrl: "string",
            statusCode: "string",
        },
        certificateId: "string",
        cipher: "string",
        policyId: "string",
        sipHeaderLists: ["string"],
        sipHeaderName: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
        tls: "string",
        wafDomainV1Id: "string",
    });
    
    type: opentelekomcloud:WafDomainV1
    properties:
        blockPage:
            content: string
            contentType: string
            redirectUrl: string
            statusCode: string
            template: string
        certificateId: string
        cipher: string
        hostname: string
        policyId: string
        proxy: false
        servers:
            - address: string
              clientProtocol: string
              port: string
              serverProtocol: string
        sipHeaderLists:
            - string
        sipHeaderName: string
        timeouts:
            create: string
            delete: string
        tls: string
        wafDomainV1Id: string
    

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

    Hostname string
    The domain name. For example, www.example.com or *.example.com. Changing this creates a new domain.
    Proxy bool
    Specifies whether a proxy is configured.
    Servers List<WafDomainV1Server>
    Array of server object. The server object structure is documented below. The server block supports:
    BlockPage WafDomainV1BlockPage
    Alarm page configuration The block_page block supports:
    CertificateId string
    The certificate ID. This parameter is mandatory when front_protocol/client_protocol is set to HTTPS.
    Cipher string
    Cipher suite to use with TLS. Possible values are:
    PolicyId string

    The policy ID associate with the domain.

    -> If no policy ID is defined, default policy will be automatically created and assigned to the domain.

    SipHeaderLists List<string>
    Array of HTTP request header for identifying the real source IP address. This parameter is required only when proxy is set to true.

    • If sip_header_name is default, sip_header_list is ["X-Forwarded-For"].
    • If sip_header_name is cloudflare, sip_header_list is ["CF-Connecting-IP", "X-Forwarded-For"].
    • If sip_header_name is akamai, sip_header_list is ["True-Client-IP"].
    • If sip_header_name is custom, you can customize a value.
    SipHeaderName string
    The type of the source IP header. This parameter is required only when proxy is set to true. The options are as follows: default, cloudflare, akamai, and custom.
    Timeouts WafDomainV1Timeouts
    Tls string
    Minimum TLS version for accessing the protected domain name if client_protocol is set to HTTPS. Possible values are: TLS v1.1 and TLS v1.2.
    WafDomainV1Id string
    ID of the domain.
    Hostname string
    The domain name. For example, www.example.com or *.example.com. Changing this creates a new domain.
    Proxy bool
    Specifies whether a proxy is configured.
    Servers []WafDomainV1ServerArgs
    Array of server object. The server object structure is documented below. The server block supports:
    BlockPage WafDomainV1BlockPageArgs
    Alarm page configuration The block_page block supports:
    CertificateId string
    The certificate ID. This parameter is mandatory when front_protocol/client_protocol is set to HTTPS.
    Cipher string
    Cipher suite to use with TLS. Possible values are:
    PolicyId string

    The policy ID associate with the domain.

    -> If no policy ID is defined, default policy will be automatically created and assigned to the domain.

    SipHeaderLists []string
    Array of HTTP request header for identifying the real source IP address. This parameter is required only when proxy is set to true.

    • If sip_header_name is default, sip_header_list is ["X-Forwarded-For"].
    • If sip_header_name is cloudflare, sip_header_list is ["CF-Connecting-IP", "X-Forwarded-For"].
    • If sip_header_name is akamai, sip_header_list is ["True-Client-IP"].
    • If sip_header_name is custom, you can customize a value.
    SipHeaderName string
    The type of the source IP header. This parameter is required only when proxy is set to true. The options are as follows: default, cloudflare, akamai, and custom.
    Timeouts WafDomainV1TimeoutsArgs
    Tls string
    Minimum TLS version for accessing the protected domain name if client_protocol is set to HTTPS. Possible values are: TLS v1.1 and TLS v1.2.
    WafDomainV1Id string
    ID of the domain.
    hostname String
    The domain name. For example, www.example.com or *.example.com. Changing this creates a new domain.
    proxy Boolean
    Specifies whether a proxy is configured.
    servers List<WafDomainV1Server>
    Array of server object. The server object structure is documented below. The server block supports:
    blockPage WafDomainV1BlockPage
    Alarm page configuration The block_page block supports:
    certificateId String
    The certificate ID. This parameter is mandatory when front_protocol/client_protocol is set to HTTPS.
    cipher String
    Cipher suite to use with TLS. Possible values are:
    policyId String

    The policy ID associate with the domain.

    -> If no policy ID is defined, default policy will be automatically created and assigned to the domain.

    sipHeaderLists List<String>
    Array of HTTP request header for identifying the real source IP address. This parameter is required only when proxy is set to true.

    • If sip_header_name is default, sip_header_list is ["X-Forwarded-For"].
    • If sip_header_name is cloudflare, sip_header_list is ["CF-Connecting-IP", "X-Forwarded-For"].
    • If sip_header_name is akamai, sip_header_list is ["True-Client-IP"].
    • If sip_header_name is custom, you can customize a value.
    sipHeaderName String
    The type of the source IP header. This parameter is required only when proxy is set to true. The options are as follows: default, cloudflare, akamai, and custom.
    timeouts WafDomainV1Timeouts
    tls String
    Minimum TLS version for accessing the protected domain name if client_protocol is set to HTTPS. Possible values are: TLS v1.1 and TLS v1.2.
    wafDomainV1Id String
    ID of the domain.
    hostname string
    The domain name. For example, www.example.com or *.example.com. Changing this creates a new domain.
    proxy boolean
    Specifies whether a proxy is configured.
    servers WafDomainV1Server[]
    Array of server object. The server object structure is documented below. The server block supports:
    blockPage WafDomainV1BlockPage
    Alarm page configuration The block_page block supports:
    certificateId string
    The certificate ID. This parameter is mandatory when front_protocol/client_protocol is set to HTTPS.
    cipher string
    Cipher suite to use with TLS. Possible values are:
    policyId string

    The policy ID associate with the domain.

    -> If no policy ID is defined, default policy will be automatically created and assigned to the domain.

    sipHeaderLists string[]
    Array of HTTP request header for identifying the real source IP address. This parameter is required only when proxy is set to true.

    • If sip_header_name is default, sip_header_list is ["X-Forwarded-For"].
    • If sip_header_name is cloudflare, sip_header_list is ["CF-Connecting-IP", "X-Forwarded-For"].
    • If sip_header_name is akamai, sip_header_list is ["True-Client-IP"].
    • If sip_header_name is custom, you can customize a value.
    sipHeaderName string
    The type of the source IP header. This parameter is required only when proxy is set to true. The options are as follows: default, cloudflare, akamai, and custom.
    timeouts WafDomainV1Timeouts
    tls string
    Minimum TLS version for accessing the protected domain name if client_protocol is set to HTTPS. Possible values are: TLS v1.1 and TLS v1.2.
    wafDomainV1Id string
    ID of the domain.
    hostname str
    The domain name. For example, www.example.com or *.example.com. Changing this creates a new domain.
    proxy bool
    Specifies whether a proxy is configured.
    servers Sequence[WafDomainV1ServerArgs]
    Array of server object. The server object structure is documented below. The server block supports:
    block_page WafDomainV1BlockPageArgs
    Alarm page configuration The block_page block supports:
    certificate_id str
    The certificate ID. This parameter is mandatory when front_protocol/client_protocol is set to HTTPS.
    cipher str
    Cipher suite to use with TLS. Possible values are:
    policy_id str

    The policy ID associate with the domain.

    -> If no policy ID is defined, default policy will be automatically created and assigned to the domain.

    sip_header_lists Sequence[str]
    Array of HTTP request header for identifying the real source IP address. This parameter is required only when proxy is set to true.

    • If sip_header_name is default, sip_header_list is ["X-Forwarded-For"].
    • If sip_header_name is cloudflare, sip_header_list is ["CF-Connecting-IP", "X-Forwarded-For"].
    • If sip_header_name is akamai, sip_header_list is ["True-Client-IP"].
    • If sip_header_name is custom, you can customize a value.
    sip_header_name str
    The type of the source IP header. This parameter is required only when proxy is set to true. The options are as follows: default, cloudflare, akamai, and custom.
    timeouts WafDomainV1TimeoutsArgs
    tls str
    Minimum TLS version for accessing the protected domain name if client_protocol is set to HTTPS. Possible values are: TLS v1.1 and TLS v1.2.
    waf_domain_v1_id str
    ID of the domain.
    hostname String
    The domain name. For example, www.example.com or *.example.com. Changing this creates a new domain.
    proxy Boolean
    Specifies whether a proxy is configured.
    servers List<Property Map>
    Array of server object. The server object structure is documented below. The server block supports:
    blockPage Property Map
    Alarm page configuration The block_page block supports:
    certificateId String
    The certificate ID. This parameter is mandatory when front_protocol/client_protocol is set to HTTPS.
    cipher String
    Cipher suite to use with TLS. Possible values are:
    policyId String

    The policy ID associate with the domain.

    -> If no policy ID is defined, default policy will be automatically created and assigned to the domain.

    sipHeaderLists List<String>
    Array of HTTP request header for identifying the real source IP address. This parameter is required only when proxy is set to true.

    • If sip_header_name is default, sip_header_list is ["X-Forwarded-For"].
    • If sip_header_name is cloudflare, sip_header_list is ["CF-Connecting-IP", "X-Forwarded-For"].
    • If sip_header_name is akamai, sip_header_list is ["True-Client-IP"].
    • If sip_header_name is custom, you can customize a value.
    sipHeaderName String
    The type of the source IP header. This parameter is required only when proxy is set to true. The options are as follows: default, cloudflare, akamai, and custom.
    timeouts Property Map
    tls String
    Minimum TLS version for accessing the protected domain name if client_protocol is set to HTTPS. Possible values are: TLS v1.1 and TLS v1.2.
    wafDomainV1Id String
    ID of the domain.

    Outputs

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

    AccessCode string
    The access code.
    AccessStatus double
    Whether a domain name is connected to WAF. 0: The domain name is not connected to WAF, 1: The domain name is connected to WAF.
    Cname string
    The CNAME value.
    Id string
    The provider-assigned unique ID for this managed resource.
    ProtectStatus double
    The WAF mode. -1: bypassed, 0: disabled, 1: enabled.
    Protocol string
    The protocol type of the client. The options are HTTP, HTTPS, and HTTP&HTTPS.
    SubDomain string
    The subdomain name. This attribute is returned only when proxy is set to true.
    TxtCode string
    The TXT record. This attribute is returned only when proxy is set to true.
    AccessCode string
    The access code.
    AccessStatus float64
    Whether a domain name is connected to WAF. 0: The domain name is not connected to WAF, 1: The domain name is connected to WAF.
    Cname string
    The CNAME value.
    Id string
    The provider-assigned unique ID for this managed resource.
    ProtectStatus float64
    The WAF mode. -1: bypassed, 0: disabled, 1: enabled.
    Protocol string
    The protocol type of the client. The options are HTTP, HTTPS, and HTTP&HTTPS.
    SubDomain string
    The subdomain name. This attribute is returned only when proxy is set to true.
    TxtCode string
    The TXT record. This attribute is returned only when proxy is set to true.
    accessCode String
    The access code.
    accessStatus Double
    Whether a domain name is connected to WAF. 0: The domain name is not connected to WAF, 1: The domain name is connected to WAF.
    cname String
    The CNAME value.
    id String
    The provider-assigned unique ID for this managed resource.
    protectStatus Double
    The WAF mode. -1: bypassed, 0: disabled, 1: enabled.
    protocol String
    The protocol type of the client. The options are HTTP, HTTPS, and HTTP&HTTPS.
    subDomain String
    The subdomain name. This attribute is returned only when proxy is set to true.
    txtCode String
    The TXT record. This attribute is returned only when proxy is set to true.
    accessCode string
    The access code.
    accessStatus number
    Whether a domain name is connected to WAF. 0: The domain name is not connected to WAF, 1: The domain name is connected to WAF.
    cname string
    The CNAME value.
    id string
    The provider-assigned unique ID for this managed resource.
    protectStatus number
    The WAF mode. -1: bypassed, 0: disabled, 1: enabled.
    protocol string
    The protocol type of the client. The options are HTTP, HTTPS, and HTTP&HTTPS.
    subDomain string
    The subdomain name. This attribute is returned only when proxy is set to true.
    txtCode string
    The TXT record. This attribute is returned only when proxy is set to true.
    access_code str
    The access code.
    access_status float
    Whether a domain name is connected to WAF. 0: The domain name is not connected to WAF, 1: The domain name is connected to WAF.
    cname str
    The CNAME value.
    id str
    The provider-assigned unique ID for this managed resource.
    protect_status float
    The WAF mode. -1: bypassed, 0: disabled, 1: enabled.
    protocol str
    The protocol type of the client. The options are HTTP, HTTPS, and HTTP&HTTPS.
    sub_domain str
    The subdomain name. This attribute is returned only when proxy is set to true.
    txt_code str
    The TXT record. This attribute is returned only when proxy is set to true.
    accessCode String
    The access code.
    accessStatus Number
    Whether a domain name is connected to WAF. 0: The domain name is not connected to WAF, 1: The domain name is connected to WAF.
    cname String
    The CNAME value.
    id String
    The provider-assigned unique ID for this managed resource.
    protectStatus Number
    The WAF mode. -1: bypassed, 0: disabled, 1: enabled.
    protocol String
    The protocol type of the client. The options are HTTP, HTTPS, and HTTP&HTTPS.
    subDomain String
    The subdomain name. This attribute is returned only when proxy is set to true.
    txtCode String
    The TXT record. This attribute is returned only when proxy is set to true.

    Look up Existing WafDomainV1 Resource

    Get an existing WafDomainV1 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?: WafDomainV1State, opts?: CustomResourceOptions): WafDomainV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_code: Optional[str] = None,
            access_status: Optional[float] = None,
            block_page: Optional[WafDomainV1BlockPageArgs] = None,
            certificate_id: Optional[str] = None,
            cipher: Optional[str] = None,
            cname: Optional[str] = None,
            hostname: Optional[str] = None,
            policy_id: Optional[str] = None,
            protect_status: Optional[float] = None,
            protocol: Optional[str] = None,
            proxy: Optional[bool] = None,
            servers: Optional[Sequence[WafDomainV1ServerArgs]] = None,
            sip_header_lists: Optional[Sequence[str]] = None,
            sip_header_name: Optional[str] = None,
            sub_domain: Optional[str] = None,
            timeouts: Optional[WafDomainV1TimeoutsArgs] = None,
            tls: Optional[str] = None,
            txt_code: Optional[str] = None,
            waf_domain_v1_id: Optional[str] = None) -> WafDomainV1
    func GetWafDomainV1(ctx *Context, name string, id IDInput, state *WafDomainV1State, opts ...ResourceOption) (*WafDomainV1, error)
    public static WafDomainV1 Get(string name, Input<string> id, WafDomainV1State? state, CustomResourceOptions? opts = null)
    public static WafDomainV1 get(String name, Output<String> id, WafDomainV1State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:WafDomainV1    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccessCode string
    The access code.
    AccessStatus double
    Whether a domain name is connected to WAF. 0: The domain name is not connected to WAF, 1: The domain name is connected to WAF.
    BlockPage WafDomainV1BlockPage
    Alarm page configuration The block_page block supports:
    CertificateId string
    The certificate ID. This parameter is mandatory when front_protocol/client_protocol is set to HTTPS.
    Cipher string
    Cipher suite to use with TLS. Possible values are:
    Cname string
    The CNAME value.
    Hostname string
    The domain name. For example, www.example.com or *.example.com. Changing this creates a new domain.
    PolicyId string

    The policy ID associate with the domain.

    -> If no policy ID is defined, default policy will be automatically created and assigned to the domain.

    ProtectStatus double
    The WAF mode. -1: bypassed, 0: disabled, 1: enabled.
    Protocol string
    The protocol type of the client. The options are HTTP, HTTPS, and HTTP&HTTPS.
    Proxy bool
    Specifies whether a proxy is configured.
    Servers List<WafDomainV1Server>
    Array of server object. The server object structure is documented below. The server block supports:
    SipHeaderLists List<string>
    Array of HTTP request header for identifying the real source IP address. This parameter is required only when proxy is set to true.

    • If sip_header_name is default, sip_header_list is ["X-Forwarded-For"].
    • If sip_header_name is cloudflare, sip_header_list is ["CF-Connecting-IP", "X-Forwarded-For"].
    • If sip_header_name is akamai, sip_header_list is ["True-Client-IP"].
    • If sip_header_name is custom, you can customize a value.
    SipHeaderName string
    The type of the source IP header. This parameter is required only when proxy is set to true. The options are as follows: default, cloudflare, akamai, and custom.
    SubDomain string
    The subdomain name. This attribute is returned only when proxy is set to true.
    Timeouts WafDomainV1Timeouts
    Tls string
    Minimum TLS version for accessing the protected domain name if client_protocol is set to HTTPS. Possible values are: TLS v1.1 and TLS v1.2.
    TxtCode string
    The TXT record. This attribute is returned only when proxy is set to true.
    WafDomainV1Id string
    ID of the domain.
    AccessCode string
    The access code.
    AccessStatus float64
    Whether a domain name is connected to WAF. 0: The domain name is not connected to WAF, 1: The domain name is connected to WAF.
    BlockPage WafDomainV1BlockPageArgs
    Alarm page configuration The block_page block supports:
    CertificateId string
    The certificate ID. This parameter is mandatory when front_protocol/client_protocol is set to HTTPS.
    Cipher string
    Cipher suite to use with TLS. Possible values are:
    Cname string
    The CNAME value.
    Hostname string
    The domain name. For example, www.example.com or *.example.com. Changing this creates a new domain.
    PolicyId string

    The policy ID associate with the domain.

    -> If no policy ID is defined, default policy will be automatically created and assigned to the domain.

    ProtectStatus float64
    The WAF mode. -1: bypassed, 0: disabled, 1: enabled.
    Protocol string
    The protocol type of the client. The options are HTTP, HTTPS, and HTTP&HTTPS.
    Proxy bool
    Specifies whether a proxy is configured.
    Servers []WafDomainV1ServerArgs
    Array of server object. The server object structure is documented below. The server block supports:
    SipHeaderLists []string
    Array of HTTP request header for identifying the real source IP address. This parameter is required only when proxy is set to true.

    • If sip_header_name is default, sip_header_list is ["X-Forwarded-For"].
    • If sip_header_name is cloudflare, sip_header_list is ["CF-Connecting-IP", "X-Forwarded-For"].
    • If sip_header_name is akamai, sip_header_list is ["True-Client-IP"].
    • If sip_header_name is custom, you can customize a value.
    SipHeaderName string
    The type of the source IP header. This parameter is required only when proxy is set to true. The options are as follows: default, cloudflare, akamai, and custom.
    SubDomain string
    The subdomain name. This attribute is returned only when proxy is set to true.
    Timeouts WafDomainV1TimeoutsArgs
    Tls string
    Minimum TLS version for accessing the protected domain name if client_protocol is set to HTTPS. Possible values are: TLS v1.1 and TLS v1.2.
    TxtCode string
    The TXT record. This attribute is returned only when proxy is set to true.
    WafDomainV1Id string
    ID of the domain.
    accessCode String
    The access code.
    accessStatus Double
    Whether a domain name is connected to WAF. 0: The domain name is not connected to WAF, 1: The domain name is connected to WAF.
    blockPage WafDomainV1BlockPage
    Alarm page configuration The block_page block supports:
    certificateId String
    The certificate ID. This parameter is mandatory when front_protocol/client_protocol is set to HTTPS.
    cipher String
    Cipher suite to use with TLS. Possible values are:
    cname String
    The CNAME value.
    hostname String
    The domain name. For example, www.example.com or *.example.com. Changing this creates a new domain.
    policyId String

    The policy ID associate with the domain.

    -> If no policy ID is defined, default policy will be automatically created and assigned to the domain.

    protectStatus Double
    The WAF mode. -1: bypassed, 0: disabled, 1: enabled.
    protocol String
    The protocol type of the client. The options are HTTP, HTTPS, and HTTP&HTTPS.
    proxy Boolean
    Specifies whether a proxy is configured.
    servers List<WafDomainV1Server>
    Array of server object. The server object structure is documented below. The server block supports:
    sipHeaderLists List<String>
    Array of HTTP request header for identifying the real source IP address. This parameter is required only when proxy is set to true.

    • If sip_header_name is default, sip_header_list is ["X-Forwarded-For"].
    • If sip_header_name is cloudflare, sip_header_list is ["CF-Connecting-IP", "X-Forwarded-For"].
    • If sip_header_name is akamai, sip_header_list is ["True-Client-IP"].
    • If sip_header_name is custom, you can customize a value.
    sipHeaderName String
    The type of the source IP header. This parameter is required only when proxy is set to true. The options are as follows: default, cloudflare, akamai, and custom.
    subDomain String
    The subdomain name. This attribute is returned only when proxy is set to true.
    timeouts WafDomainV1Timeouts
    tls String
    Minimum TLS version for accessing the protected domain name if client_protocol is set to HTTPS. Possible values are: TLS v1.1 and TLS v1.2.
    txtCode String
    The TXT record. This attribute is returned only when proxy is set to true.
    wafDomainV1Id String
    ID of the domain.
    accessCode string
    The access code.
    accessStatus number
    Whether a domain name is connected to WAF. 0: The domain name is not connected to WAF, 1: The domain name is connected to WAF.
    blockPage WafDomainV1BlockPage
    Alarm page configuration The block_page block supports:
    certificateId string
    The certificate ID. This parameter is mandatory when front_protocol/client_protocol is set to HTTPS.
    cipher string
    Cipher suite to use with TLS. Possible values are:
    cname string
    The CNAME value.
    hostname string
    The domain name. For example, www.example.com or *.example.com. Changing this creates a new domain.
    policyId string

    The policy ID associate with the domain.

    -> If no policy ID is defined, default policy will be automatically created and assigned to the domain.

    protectStatus number
    The WAF mode. -1: bypassed, 0: disabled, 1: enabled.
    protocol string
    The protocol type of the client. The options are HTTP, HTTPS, and HTTP&HTTPS.
    proxy boolean
    Specifies whether a proxy is configured.
    servers WafDomainV1Server[]
    Array of server object. The server object structure is documented below. The server block supports:
    sipHeaderLists string[]
    Array of HTTP request header for identifying the real source IP address. This parameter is required only when proxy is set to true.

    • If sip_header_name is default, sip_header_list is ["X-Forwarded-For"].
    • If sip_header_name is cloudflare, sip_header_list is ["CF-Connecting-IP", "X-Forwarded-For"].
    • If sip_header_name is akamai, sip_header_list is ["True-Client-IP"].
    • If sip_header_name is custom, you can customize a value.
    sipHeaderName string
    The type of the source IP header. This parameter is required only when proxy is set to true. The options are as follows: default, cloudflare, akamai, and custom.
    subDomain string
    The subdomain name. This attribute is returned only when proxy is set to true.
    timeouts WafDomainV1Timeouts
    tls string
    Minimum TLS version for accessing the protected domain name if client_protocol is set to HTTPS. Possible values are: TLS v1.1 and TLS v1.2.
    txtCode string
    The TXT record. This attribute is returned only when proxy is set to true.
    wafDomainV1Id string
    ID of the domain.
    access_code str
    The access code.
    access_status float
    Whether a domain name is connected to WAF. 0: The domain name is not connected to WAF, 1: The domain name is connected to WAF.
    block_page WafDomainV1BlockPageArgs
    Alarm page configuration The block_page block supports:
    certificate_id str
    The certificate ID. This parameter is mandatory when front_protocol/client_protocol is set to HTTPS.
    cipher str
    Cipher suite to use with TLS. Possible values are:
    cname str
    The CNAME value.
    hostname str
    The domain name. For example, www.example.com or *.example.com. Changing this creates a new domain.
    policy_id str

    The policy ID associate with the domain.

    -> If no policy ID is defined, default policy will be automatically created and assigned to the domain.

    protect_status float
    The WAF mode. -1: bypassed, 0: disabled, 1: enabled.
    protocol str
    The protocol type of the client. The options are HTTP, HTTPS, and HTTP&HTTPS.
    proxy bool
    Specifies whether a proxy is configured.
    servers Sequence[WafDomainV1ServerArgs]
    Array of server object. The server object structure is documented below. The server block supports:
    sip_header_lists Sequence[str]
    Array of HTTP request header for identifying the real source IP address. This parameter is required only when proxy is set to true.

    • If sip_header_name is default, sip_header_list is ["X-Forwarded-For"].
    • If sip_header_name is cloudflare, sip_header_list is ["CF-Connecting-IP", "X-Forwarded-For"].
    • If sip_header_name is akamai, sip_header_list is ["True-Client-IP"].
    • If sip_header_name is custom, you can customize a value.
    sip_header_name str
    The type of the source IP header. This parameter is required only when proxy is set to true. The options are as follows: default, cloudflare, akamai, and custom.
    sub_domain str
    The subdomain name. This attribute is returned only when proxy is set to true.
    timeouts WafDomainV1TimeoutsArgs
    tls str
    Minimum TLS version for accessing the protected domain name if client_protocol is set to HTTPS. Possible values are: TLS v1.1 and TLS v1.2.
    txt_code str
    The TXT record. This attribute is returned only when proxy is set to true.
    waf_domain_v1_id str
    ID of the domain.
    accessCode String
    The access code.
    accessStatus Number
    Whether a domain name is connected to WAF. 0: The domain name is not connected to WAF, 1: The domain name is connected to WAF.
    blockPage Property Map
    Alarm page configuration The block_page block supports:
    certificateId String
    The certificate ID. This parameter is mandatory when front_protocol/client_protocol is set to HTTPS.
    cipher String
    Cipher suite to use with TLS. Possible values are:
    cname String
    The CNAME value.
    hostname String
    The domain name. For example, www.example.com or *.example.com. Changing this creates a new domain.
    policyId String

    The policy ID associate with the domain.

    -> If no policy ID is defined, default policy will be automatically created and assigned to the domain.

    protectStatus Number
    The WAF mode. -1: bypassed, 0: disabled, 1: enabled.
    protocol String
    The protocol type of the client. The options are HTTP, HTTPS, and HTTP&HTTPS.
    proxy Boolean
    Specifies whether a proxy is configured.
    servers List<Property Map>
    Array of server object. The server object structure is documented below. The server block supports:
    sipHeaderLists List<String>
    Array of HTTP request header for identifying the real source IP address. This parameter is required only when proxy is set to true.

    • If sip_header_name is default, sip_header_list is ["X-Forwarded-For"].
    • If sip_header_name is cloudflare, sip_header_list is ["CF-Connecting-IP", "X-Forwarded-For"].
    • If sip_header_name is akamai, sip_header_list is ["True-Client-IP"].
    • If sip_header_name is custom, you can customize a value.
    sipHeaderName String
    The type of the source IP header. This parameter is required only when proxy is set to true. The options are as follows: default, cloudflare, akamai, and custom.
    subDomain String
    The subdomain name. This attribute is returned only when proxy is set to true.
    timeouts Property Map
    tls String
    Minimum TLS version for accessing the protected domain name if client_protocol is set to HTTPS. Possible values are: TLS v1.1 and TLS v1.2.
    txtCode String
    The TXT record. This attribute is returned only when proxy is set to true.
    wafDomainV1Id String
    ID of the domain.

    Supporting Types

    WafDomainV1BlockPage, WafDomainV1BlockPageArgs

    Template string

    Template name which can be default, custom or redirect.

    Redirection arguments (redirect template):

    Content string
    The page content based on the selected page type.
    ContentType string
    The content type of the custom alarm page. The value can be text/html, text/xml, or application/json.
    RedirectUrl string

    URL of the redirected page.

    Custom alarm page arguments (custom template):

    StatusCode string
    Status Codes for custom.
    Template string

    Template name which can be default, custom or redirect.

    Redirection arguments (redirect template):

    Content string
    The page content based on the selected page type.
    ContentType string
    The content type of the custom alarm page. The value can be text/html, text/xml, or application/json.
    RedirectUrl string

    URL of the redirected page.

    Custom alarm page arguments (custom template):

    StatusCode string
    Status Codes for custom.
    template String

    Template name which can be default, custom or redirect.

    Redirection arguments (redirect template):

    content String
    The page content based on the selected page type.
    contentType String
    The content type of the custom alarm page. The value can be text/html, text/xml, or application/json.
    redirectUrl String

    URL of the redirected page.

    Custom alarm page arguments (custom template):

    statusCode String
    Status Codes for custom.
    template string

    Template name which can be default, custom or redirect.

    Redirection arguments (redirect template):

    content string
    The page content based on the selected page type.
    contentType string
    The content type of the custom alarm page. The value can be text/html, text/xml, or application/json.
    redirectUrl string

    URL of the redirected page.

    Custom alarm page arguments (custom template):

    statusCode string
    Status Codes for custom.
    template str

    Template name which can be default, custom or redirect.

    Redirection arguments (redirect template):

    content str
    The page content based on the selected page type.
    content_type str
    The content type of the custom alarm page. The value can be text/html, text/xml, or application/json.
    redirect_url str

    URL of the redirected page.

    Custom alarm page arguments (custom template):

    status_code str
    Status Codes for custom.
    template String

    Template name which can be default, custom or redirect.

    Redirection arguments (redirect template):

    content String
    The page content based on the selected page type.
    contentType String
    The content type of the custom alarm page. The value can be text/html, text/xml, or application/json.
    redirectUrl String

    URL of the redirected page.

    Custom alarm page arguments (custom template):

    statusCode String
    Status Codes for custom.

    WafDomainV1Server, WafDomainV1ServerArgs

    Address string
    IP address or domain name of the web server that the client accesses. For example, 192.168.1.1 or www.bla-bla.com.
    Port string
    Port number used by the web server. The value ranges from 0 to 65535, for example, 8080.
    BackProtocol string

    Deprecated: Deprecated

    ClientProtocol string
    Protocol type of the client. The options are HTTP and HTTPS. Required if front_protocol is not set
    FrontProtocol string

    Deprecated: Deprecated

    ServerProtocol string
    Protocol used by WAF to forward client requests to the server. The options are HTTP and HTTPS. Required if back_protocol is not set.
    Address string
    IP address or domain name of the web server that the client accesses. For example, 192.168.1.1 or www.bla-bla.com.
    Port string
    Port number used by the web server. The value ranges from 0 to 65535, for example, 8080.
    BackProtocol string

    Deprecated: Deprecated

    ClientProtocol string
    Protocol type of the client. The options are HTTP and HTTPS. Required if front_protocol is not set
    FrontProtocol string

    Deprecated: Deprecated

    ServerProtocol string
    Protocol used by WAF to forward client requests to the server. The options are HTTP and HTTPS. Required if back_protocol is not set.
    address String
    IP address or domain name of the web server that the client accesses. For example, 192.168.1.1 or www.bla-bla.com.
    port String
    Port number used by the web server. The value ranges from 0 to 65535, for example, 8080.
    backProtocol String

    Deprecated: Deprecated

    clientProtocol String
    Protocol type of the client. The options are HTTP and HTTPS. Required if front_protocol is not set
    frontProtocol String

    Deprecated: Deprecated

    serverProtocol String
    Protocol used by WAF to forward client requests to the server. The options are HTTP and HTTPS. Required if back_protocol is not set.
    address string
    IP address or domain name of the web server that the client accesses. For example, 192.168.1.1 or www.bla-bla.com.
    port string
    Port number used by the web server. The value ranges from 0 to 65535, for example, 8080.
    backProtocol string

    Deprecated: Deprecated

    clientProtocol string
    Protocol type of the client. The options are HTTP and HTTPS. Required if front_protocol is not set
    frontProtocol string

    Deprecated: Deprecated

    serverProtocol string
    Protocol used by WAF to forward client requests to the server. The options are HTTP and HTTPS. Required if back_protocol is not set.
    address str
    IP address or domain name of the web server that the client accesses. For example, 192.168.1.1 or www.bla-bla.com.
    port str
    Port number used by the web server. The value ranges from 0 to 65535, for example, 8080.
    back_protocol str

    Deprecated: Deprecated

    client_protocol str
    Protocol type of the client. The options are HTTP and HTTPS. Required if front_protocol is not set
    front_protocol str

    Deprecated: Deprecated

    server_protocol str
    Protocol used by WAF to forward client requests to the server. The options are HTTP and HTTPS. Required if back_protocol is not set.
    address String
    IP address or domain name of the web server that the client accesses. For example, 192.168.1.1 or www.bla-bla.com.
    port String
    Port number used by the web server. The value ranges from 0 to 65535, for example, 8080.
    backProtocol String

    Deprecated: Deprecated

    clientProtocol String
    Protocol type of the client. The options are HTTP and HTTPS. Required if front_protocol is not set
    frontProtocol String

    Deprecated: Deprecated

    serverProtocol String
    Protocol used by WAF to forward client requests to the server. The options are HTTP and HTTPS. Required if back_protocol is not set.

    WafDomainV1Timeouts, WafDomainV1TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    Domains can be imported using the id, e.g.

    $ pulumi import opentelekomcloud:index/wafDomainV1:WafDomainV1 dom_1 7117d38e-4c8f-4624-a505-bd96b97d024c
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud