opentelekomcloud.WafDomainV1
Explore with Pulumi AI
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<Waf
Domain V1Server> - Array of server object. The server object structure is documented below.
The
server
block supports: - Block
Page WafDomain V1Block Page - Alarm page configuration
The
block_page
block supports: - Certificate
Id string - The certificate ID. This parameter is mandatory when
front_protocol
/client_protocol
is set toHTTPS
. - Cipher string
- Cipher suite to use with TLS. Possible values are:
- Policy
Id 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.
- Sip
Header List<string>Lists - 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
isdefault
,sip_header_list
is["X-Forwarded-For"]
. - If
sip_header_name
iscloudflare
,sip_header_list
is["CF-Connecting-IP", "X-Forwarded-For"]
. - If
sip_header_name
isakamai
,sip_header_list
is["True-Client-IP"]
. - If
sip_header_name
iscustom
, you can customize a value.
- If
- Sip
Header stringName - 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
, andcustom
. - Timeouts
Waf
Domain V1Timeouts - Tls string
- Minimum TLS version for accessing the protected domain name if
client_protocol
is set toHTTPS
. Possible values are:TLS v1.1
andTLS v1.2
. - Waf
Domain stringV1Id - 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
[]Waf
Domain V1Server Args - Array of server object. The server object structure is documented below.
The
server
block supports: - Block
Page WafDomain V1Block Page Args - Alarm page configuration
The
block_page
block supports: - Certificate
Id string - The certificate ID. This parameter is mandatory when
front_protocol
/client_protocol
is set toHTTPS
. - Cipher string
- Cipher suite to use with TLS. Possible values are:
- Policy
Id 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.
- Sip
Header []stringLists - 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
isdefault
,sip_header_list
is["X-Forwarded-For"]
. - If
sip_header_name
iscloudflare
,sip_header_list
is["CF-Connecting-IP", "X-Forwarded-For"]
. - If
sip_header_name
isakamai
,sip_header_list
is["True-Client-IP"]
. - If
sip_header_name
iscustom
, you can customize a value.
- If
- Sip
Header stringName - 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
, andcustom
. - Timeouts
Waf
Domain V1Timeouts Args - Tls string
- Minimum TLS version for accessing the protected domain name if
client_protocol
is set toHTTPS
. Possible values are:TLS v1.1
andTLS v1.2
. - Waf
Domain stringV1Id - 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<Waf
Domain V1Server> - Array of server object. The server object structure is documented below.
The
server
block supports: - block
Page WafDomain V1Block Page - Alarm page configuration
The
block_page
block supports: - certificate
Id String - The certificate ID. This parameter is mandatory when
front_protocol
/client_protocol
is set toHTTPS
. - cipher String
- Cipher suite to use with TLS. Possible values are:
- policy
Id 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.
- sip
Header List<String>Lists - 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
isdefault
,sip_header_list
is["X-Forwarded-For"]
. - If
sip_header_name
iscloudflare
,sip_header_list
is["CF-Connecting-IP", "X-Forwarded-For"]
. - If
sip_header_name
isakamai
,sip_header_list
is["True-Client-IP"]
. - If
sip_header_name
iscustom
, you can customize a value.
- If
- sip
Header StringName - 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
, andcustom
. - timeouts
Waf
Domain V1Timeouts - tls String
- Minimum TLS version for accessing the protected domain name if
client_protocol
is set toHTTPS
. Possible values are:TLS v1.1
andTLS v1.2
. - waf
Domain StringV1Id - 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
Waf
Domain V1Server[] - Array of server object. The server object structure is documented below.
The
server
block supports: - block
Page WafDomain V1Block Page - Alarm page configuration
The
block_page
block supports: - certificate
Id string - The certificate ID. This parameter is mandatory when
front_protocol
/client_protocol
is set toHTTPS
. - cipher string
- Cipher suite to use with TLS. Possible values are:
- policy
Id 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.
- sip
Header string[]Lists - 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
isdefault
,sip_header_list
is["X-Forwarded-For"]
. - If
sip_header_name
iscloudflare
,sip_header_list
is["CF-Connecting-IP", "X-Forwarded-For"]
. - If
sip_header_name
isakamai
,sip_header_list
is["True-Client-IP"]
. - If
sip_header_name
iscustom
, you can customize a value.
- If
- sip
Header stringName - 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
, andcustom
. - timeouts
Waf
Domain V1Timeouts - tls string
- Minimum TLS version for accessing the protected domain name if
client_protocol
is set toHTTPS
. Possible values are:TLS v1.1
andTLS v1.2
. - waf
Domain stringV1Id - 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[Waf
Domain V1Server Args] - Array of server object. The server object structure is documented below.
The
server
block supports: - block_
page WafDomain V1Block Page Args - 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 toHTTPS
. - 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_ Sequence[str]lists - 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
isdefault
,sip_header_list
is["X-Forwarded-For"]
. - If
sip_header_name
iscloudflare
,sip_header_list
is["CF-Connecting-IP", "X-Forwarded-For"]
. - If
sip_header_name
isakamai
,sip_header_list
is["True-Client-IP"]
. - If
sip_header_name
iscustom
, you can customize a value.
- If
- sip_
header_ strname - 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
, andcustom
. - timeouts
Waf
Domain V1Timeouts Args - tls str
- Minimum TLS version for accessing the protected domain name if
client_protocol
is set toHTTPS
. Possible values are:TLS v1.1
andTLS v1.2
. - waf_
domain_ strv1_ id - 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: - block
Page Property Map - Alarm page configuration
The
block_page
block supports: - certificate
Id String - The certificate ID. This parameter is mandatory when
front_protocol
/client_protocol
is set toHTTPS
. - cipher String
- Cipher suite to use with TLS. Possible values are:
- policy
Id 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.
- sip
Header List<String>Lists - 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
isdefault
,sip_header_list
is["X-Forwarded-For"]
. - If
sip_header_name
iscloudflare
,sip_header_list
is["CF-Connecting-IP", "X-Forwarded-For"]
. - If
sip_header_name
isakamai
,sip_header_list
is["True-Client-IP"]
. - If
sip_header_name
iscustom
, you can customize a value.
- If
- sip
Header StringName - 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
, andcustom
. - timeouts Property Map
- tls String
- Minimum TLS version for accessing the protected domain name if
client_protocol
is set toHTTPS
. Possible values are:TLS v1.1
andTLS v1.2
. - waf
Domain StringV1Id - ID of the domain.
Outputs
All input properties are implicitly available as output properties. Additionally, the WafDomainV1 resource produces the following output properties:
- Access
Code string - The access code.
- Access
Status 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.
- Protect
Status double - The WAF mode.
-1
:bypassed
,0
:disabled
,1
:enabled
. - Protocol string
- The protocol type of the client. The options are
HTTP
,HTTPS
, andHTTP&HTTPS
. - Sub
Domain string - The subdomain name. This attribute is returned only when proxy is set to
true
. - Txt
Code string - The TXT record. This attribute is returned only when proxy is set to
true
.
- Access
Code string - The access code.
- Access
Status 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.
- Protect
Status float64 - The WAF mode.
-1
:bypassed
,0
:disabled
,1
:enabled
. - Protocol string
- The protocol type of the client. The options are
HTTP
,HTTPS
, andHTTP&HTTPS
. - Sub
Domain string - The subdomain name. This attribute is returned only when proxy is set to
true
. - Txt
Code string - The TXT record. This attribute is returned only when proxy is set to
true
.
- access
Code String - The access code.
- access
Status 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.
- protect
Status Double - The WAF mode.
-1
:bypassed
,0
:disabled
,1
:enabled
. - protocol String
- The protocol type of the client. The options are
HTTP
,HTTPS
, andHTTP&HTTPS
. - sub
Domain String - The subdomain name. This attribute is returned only when proxy is set to
true
. - txt
Code String - The TXT record. This attribute is returned only when proxy is set to
true
.
- access
Code string - The access code.
- access
Status 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.
- protect
Status number - The WAF mode.
-1
:bypassed
,0
:disabled
,1
:enabled
. - protocol string
- The protocol type of the client. The options are
HTTP
,HTTPS
, andHTTP&HTTPS
. - sub
Domain string - The subdomain name. This attribute is returned only when proxy is set to
true
. - txt
Code 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
, andHTTP&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
.
- access
Code String - The access code.
- access
Status 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.
- protect
Status Number - The WAF mode.
-1
:bypassed
,0
:disabled
,1
:enabled
. - protocol String
- The protocol type of the client. The options are
HTTP
,HTTPS
, andHTTP&HTTPS
. - sub
Domain String - The subdomain name. This attribute is returned only when proxy is set to
true
. - txt
Code 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.
- Access
Code string - The access code.
- Access
Status 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. - Block
Page WafDomain V1Block Page - Alarm page configuration
The
block_page
block supports: - Certificate
Id string - The certificate ID. This parameter is mandatory when
front_protocol
/client_protocol
is set toHTTPS
. - 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. - Policy
Id 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.
- Protect
Status double - The WAF mode.
-1
:bypassed
,0
:disabled
,1
:enabled
. - Protocol string
- The protocol type of the client. The options are
HTTP
,HTTPS
, andHTTP&HTTPS
. - Proxy bool
- Specifies whether a proxy is configured.
- Servers
List<Waf
Domain V1Server> - Array of server object. The server object structure is documented below.
The
server
block supports: - Sip
Header List<string>Lists - 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
isdefault
,sip_header_list
is["X-Forwarded-For"]
. - If
sip_header_name
iscloudflare
,sip_header_list
is["CF-Connecting-IP", "X-Forwarded-For"]
. - If
sip_header_name
isakamai
,sip_header_list
is["True-Client-IP"]
. - If
sip_header_name
iscustom
, you can customize a value.
- If
- Sip
Header stringName - 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
, andcustom
. - Sub
Domain string - The subdomain name. This attribute is returned only when proxy is set to
true
. - Timeouts
Waf
Domain V1Timeouts - Tls string
- Minimum TLS version for accessing the protected domain name if
client_protocol
is set toHTTPS
. Possible values are:TLS v1.1
andTLS v1.2
. - Txt
Code string - The TXT record. This attribute is returned only when proxy is set to
true
. - Waf
Domain stringV1Id - ID of the domain.
- Access
Code string - The access code.
- Access
Status 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. - Block
Page WafDomain V1Block Page Args - Alarm page configuration
The
block_page
block supports: - Certificate
Id string - The certificate ID. This parameter is mandatory when
front_protocol
/client_protocol
is set toHTTPS
. - 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. - Policy
Id 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.
- Protect
Status float64 - The WAF mode.
-1
:bypassed
,0
:disabled
,1
:enabled
. - Protocol string
- The protocol type of the client. The options are
HTTP
,HTTPS
, andHTTP&HTTPS
. - Proxy bool
- Specifies whether a proxy is configured.
- Servers
[]Waf
Domain V1Server Args - Array of server object. The server object structure is documented below.
The
server
block supports: - Sip
Header []stringLists - 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
isdefault
,sip_header_list
is["X-Forwarded-For"]
. - If
sip_header_name
iscloudflare
,sip_header_list
is["CF-Connecting-IP", "X-Forwarded-For"]
. - If
sip_header_name
isakamai
,sip_header_list
is["True-Client-IP"]
. - If
sip_header_name
iscustom
, you can customize a value.
- If
- Sip
Header stringName - 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
, andcustom
. - Sub
Domain string - The subdomain name. This attribute is returned only when proxy is set to
true
. - Timeouts
Waf
Domain V1Timeouts Args - Tls string
- Minimum TLS version for accessing the protected domain name if
client_protocol
is set toHTTPS
. Possible values are:TLS v1.1
andTLS v1.2
. - Txt
Code string - The TXT record. This attribute is returned only when proxy is set to
true
. - Waf
Domain stringV1Id - ID of the domain.
- access
Code String - The access code.
- access
Status 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. - block
Page WafDomain V1Block Page - Alarm page configuration
The
block_page
block supports: - certificate
Id String - The certificate ID. This parameter is mandatory when
front_protocol
/client_protocol
is set toHTTPS
. - 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. - policy
Id 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.
- protect
Status Double - The WAF mode.
-1
:bypassed
,0
:disabled
,1
:enabled
. - protocol String
- The protocol type of the client. The options are
HTTP
,HTTPS
, andHTTP&HTTPS
. - proxy Boolean
- Specifies whether a proxy is configured.
- servers
List<Waf
Domain V1Server> - Array of server object. The server object structure is documented below.
The
server
block supports: - sip
Header List<String>Lists - 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
isdefault
,sip_header_list
is["X-Forwarded-For"]
. - If
sip_header_name
iscloudflare
,sip_header_list
is["CF-Connecting-IP", "X-Forwarded-For"]
. - If
sip_header_name
isakamai
,sip_header_list
is["True-Client-IP"]
. - If
sip_header_name
iscustom
, you can customize a value.
- If
- sip
Header StringName - 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
, andcustom
. - sub
Domain String - The subdomain name. This attribute is returned only when proxy is set to
true
. - timeouts
Waf
Domain V1Timeouts - tls String
- Minimum TLS version for accessing the protected domain name if
client_protocol
is set toHTTPS
. Possible values are:TLS v1.1
andTLS v1.2
. - txt
Code String - The TXT record. This attribute is returned only when proxy is set to
true
. - waf
Domain StringV1Id - ID of the domain.
- access
Code string - The access code.
- access
Status 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. - block
Page WafDomain V1Block Page - Alarm page configuration
The
block_page
block supports: - certificate
Id string - The certificate ID. This parameter is mandatory when
front_protocol
/client_protocol
is set toHTTPS
. - 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. - policy
Id 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.
- protect
Status number - The WAF mode.
-1
:bypassed
,0
:disabled
,1
:enabled
. - protocol string
- The protocol type of the client. The options are
HTTP
,HTTPS
, andHTTP&HTTPS
. - proxy boolean
- Specifies whether a proxy is configured.
- servers
Waf
Domain V1Server[] - Array of server object. The server object structure is documented below.
The
server
block supports: - sip
Header string[]Lists - 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
isdefault
,sip_header_list
is["X-Forwarded-For"]
. - If
sip_header_name
iscloudflare
,sip_header_list
is["CF-Connecting-IP", "X-Forwarded-For"]
. - If
sip_header_name
isakamai
,sip_header_list
is["True-Client-IP"]
. - If
sip_header_name
iscustom
, you can customize a value.
- If
- sip
Header stringName - 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
, andcustom
. - sub
Domain string - The subdomain name. This attribute is returned only when proxy is set to
true
. - timeouts
Waf
Domain V1Timeouts - tls string
- Minimum TLS version for accessing the protected domain name if
client_protocol
is set toHTTPS
. Possible values are:TLS v1.1
andTLS v1.2
. - txt
Code string - The TXT record. This attribute is returned only when proxy is set to
true
. - waf
Domain stringV1Id - 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 WafDomain V1Block Page Args - 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 toHTTPS
. - 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
, andHTTP&HTTPS
. - proxy bool
- Specifies whether a proxy is configured.
- servers
Sequence[Waf
Domain V1Server Args] - Array of server object. The server object structure is documented below.
The
server
block supports: - sip_
header_ Sequence[str]lists - 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
isdefault
,sip_header_list
is["X-Forwarded-For"]
. - If
sip_header_name
iscloudflare
,sip_header_list
is["CF-Connecting-IP", "X-Forwarded-For"]
. - If
sip_header_name
isakamai
,sip_header_list
is["True-Client-IP"]
. - If
sip_header_name
iscustom
, you can customize a value.
- If
- sip_
header_ strname - 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
, andcustom
. - sub_
domain str - The subdomain name. This attribute is returned only when proxy is set to
true
. - timeouts
Waf
Domain V1Timeouts Args - tls str
- Minimum TLS version for accessing the protected domain name if
client_protocol
is set toHTTPS
. Possible values are:TLS v1.1
andTLS v1.2
. - txt_
code str - The TXT record. This attribute is returned only when proxy is set to
true
. - waf_
domain_ strv1_ id - ID of the domain.
- access
Code String - The access code.
- access
Status 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. - block
Page Property Map - Alarm page configuration
The
block_page
block supports: - certificate
Id String - The certificate ID. This parameter is mandatory when
front_protocol
/client_protocol
is set toHTTPS
. - 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. - policy
Id 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.
- protect
Status Number - The WAF mode.
-1
:bypassed
,0
:disabled
,1
:enabled
. - protocol String
- The protocol type of the client. The options are
HTTP
,HTTPS
, andHTTP&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: - sip
Header List<String>Lists - 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
isdefault
,sip_header_list
is["X-Forwarded-For"]
. - If
sip_header_name
iscloudflare
,sip_header_list
is["CF-Connecting-IP", "X-Forwarded-For"]
. - If
sip_header_name
isakamai
,sip_header_list
is["True-Client-IP"]
. - If
sip_header_name
iscustom
, you can customize a value.
- If
- sip
Header StringName - 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
, andcustom
. - sub
Domain 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 toHTTPS
. Possible values are:TLS v1.1
andTLS v1.2
. - txt
Code String - The TXT record. This attribute is returned only when proxy is set to
true
. - waf
Domain StringV1Id - ID of the domain.
Supporting Types
WafDomainV1BlockPage, WafDomainV1BlockPageArgs
- Template string
Template name which can be
default
,custom
orredirect
.Redirection arguments (
redirect
template):- Content string
- The page content based on the selected page type.
- Content
Type string - The content type of the custom alarm page.
The value can be
text/html
,text/xml
, orapplication/json
. - Redirect
Url string URL of the redirected page.
Custom alarm page arguments (
custom
template):- Status
Code string - Status Codes for custom.
- Template string
Template name which can be
default
,custom
orredirect
.Redirection arguments (
redirect
template):- Content string
- The page content based on the selected page type.
- Content
Type string - The content type of the custom alarm page.
The value can be
text/html
,text/xml
, orapplication/json
. - Redirect
Url string URL of the redirected page.
Custom alarm page arguments (
custom
template):- Status
Code string - Status Codes for custom.
- template String
Template name which can be
default
,custom
orredirect
.Redirection arguments (
redirect
template):- content String
- The page content based on the selected page type.
- content
Type String - The content type of the custom alarm page.
The value can be
text/html
,text/xml
, orapplication/json
. - redirect
Url String URL of the redirected page.
Custom alarm page arguments (
custom
template):- status
Code String - Status Codes for custom.
- template string
Template name which can be
default
,custom
orredirect
.Redirection arguments (
redirect
template):- content string
- The page content based on the selected page type.
- content
Type string - The content type of the custom alarm page.
The value can be
text/html
,text/xml
, orapplication/json
. - redirect
Url string URL of the redirected page.
Custom alarm page arguments (
custom
template):- status
Code string - Status Codes for custom.
- template str
Template name which can be
default
,custom
orredirect
.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
, orapplication/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
orredirect
.Redirection arguments (
redirect
template):- content String
- The page content based on the selected page type.
- content
Type String - The content type of the custom alarm page.
The value can be
text/html
,text/xml
, orapplication/json
. - redirect
Url String URL of the redirected page.
Custom alarm page arguments (
custom
template):- status
Code 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
orwww.bla-bla.com
. - Port string
- Port number used by the web server. The value ranges from
0
to65535
, for example,8080
. - Back
Protocol string - Client
Protocol string - Protocol type of the client. The options are HTTP and HTTPS.
Required if
front_protocol
is not set - Front
Protocol string - Server
Protocol 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
orwww.bla-bla.com
. - Port string
- Port number used by the web server. The value ranges from
0
to65535
, for example,8080
. - Back
Protocol string - Client
Protocol string - Protocol type of the client. The options are HTTP and HTTPS.
Required if
front_protocol
is not set - Front
Protocol string - Server
Protocol 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
orwww.bla-bla.com
. - port String
- Port number used by the web server. The value ranges from
0
to65535
, for example,8080
. - back
Protocol String - client
Protocol String - Protocol type of the client. The options are HTTP and HTTPS.
Required if
front_protocol
is not set - front
Protocol String - server
Protocol 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
orwww.bla-bla.com
. - port string
- Port number used by the web server. The value ranges from
0
to65535
, for example,8080
. - back
Protocol string - client
Protocol string - Protocol type of the client. The options are HTTP and HTTPS.
Required if
front_protocol
is not set - front
Protocol string - server
Protocol 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
orwww.bla-bla.com
. - port str
- Port number used by the web server. The value ranges from
0
to65535
, for example,8080
. - back_
protocol str - client_
protocol str - Protocol type of the client. The options are HTTP and HTTPS.
Required if
front_protocol
is not set - front_
protocol str - 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
orwww.bla-bla.com
. - port String
- Port number used by the web server. The value ranges from
0
to65535
, for example,8080
. - back
Protocol String - client
Protocol String - Protocol type of the client. The options are HTTP and HTTPS.
Required if
front_protocol
is not set - front
Protocol String - server
Protocol 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
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.