Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi
alicloud.wafv3.getDomains
Explore with Pulumi AI
This data source provides the Wafv3 Domains of the current Alibaba Cloud user.
NOTE: Available since v1.200.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = alicloud.wafv3.getInstances({});
const ids = _default.then(_default => alicloud.wafv3.getDomains({
instanceId: _default.ids?.[0],
ids: ["example_id"],
}));
export const wafv3DomainsId1 = ids.then(ids => ids.domains?.[0]?.id);
const defaultGetDomains = _default.then(_default => alicloud.wafv3.getDomains({
instanceId: _default.ids?.[0],
domain: "zctest12.wafqax.top",
}));
export const wafv3DomainsId2 = defaultGetDomains.then(defaultGetDomains => defaultGetDomains.domains?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.wafv3.get_instances()
ids = alicloud.wafv3.get_domains(instance_id=default.ids[0],
ids=["example_id"])
pulumi.export("wafv3DomainsId1", ids.domains[0].id)
default_get_domains = alicloud.wafv3.get_domains(instance_id=default.ids[0],
domain="zctest12.wafqax.top")
pulumi.export("wafv3DomainsId2", default_get_domains.domains[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/wafv3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := wafv3.GetInstances(ctx, &wafv3.GetInstancesArgs{}, nil)
if err != nil {
return err
}
ids, err := wafv3.GetDomains(ctx, &wafv3.GetDomainsArgs{
InstanceId: _default.Ids[0],
Ids: []string{
"example_id",
},
}, nil)
if err != nil {
return err
}
ctx.Export("wafv3DomainsId1", ids.Domains[0].Id)
defaultGetDomains, err := wafv3.GetDomains(ctx, &wafv3.GetDomainsArgs{
InstanceId: _default.Ids[0],
Domain: pulumi.StringRef("zctest12.wafqax.top"),
}, nil)
if err != nil {
return err
}
ctx.Export("wafv3DomainsId2", defaultGetDomains.Domains[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.Wafv3.GetInstances.Invoke();
var ids = AliCloud.Wafv3.GetDomains.Invoke(new()
{
InstanceId = @default.Apply(getInstancesResult => getInstancesResult.Ids[0]),
Ids = new[]
{
"example_id",
},
});
var defaultGetDomains = AliCloud.Wafv3.GetDomains.Invoke(new()
{
InstanceId = @default.Apply(getInstancesResult => getInstancesResult.Ids[0]),
Domain = "zctest12.wafqax.top",
});
return new Dictionary<string, object?>
{
["wafv3DomainsId1"] = ids.Apply(getDomainsResult => getDomainsResult.Domains[0]?.Id),
["wafv3DomainsId2"] = defaultGetDomains.Apply(getDomainsResult => getDomainsResult.Domains[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.wafv3.Wafv3Functions;
import com.pulumi.alicloud.wafv3.inputs.GetInstancesArgs;
import com.pulumi.alicloud.wafv3.inputs.GetDomainsArgs;
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 default = Wafv3Functions.getInstances();
final var ids = Wafv3Functions.getDomains(GetDomainsArgs.builder()
.instanceId(default_.ids()[0])
.ids("example_id")
.build());
ctx.export("wafv3DomainsId1", ids.applyValue(getDomainsResult -> getDomainsResult.domains()[0].id()));
final var defaultGetDomains = Wafv3Functions.getDomains(GetDomainsArgs.builder()
.instanceId(default_.ids()[0])
.domain("zctest12.wafqax.top")
.build());
ctx.export("wafv3DomainsId2", defaultGetDomains.applyValue(getDomainsResult -> getDomainsResult.domains()[0].id()));
}
}
variables:
default:
fn::invoke:
function: alicloud:wafv3:getInstances
arguments: {}
ids:
fn::invoke:
function: alicloud:wafv3:getDomains
arguments:
instanceId: ${default.ids[0]}
ids:
- example_id
defaultGetDomains:
fn::invoke:
function: alicloud:wafv3:getDomains
arguments:
instanceId: ${default.ids[0]}
domain: zctest12.wafqax.top
outputs:
wafv3DomainsId1: ${ids.domains[0].id}
wafv3DomainsId2: ${defaultGetDomains.domains[0].id}
Using getDomains
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDomains(args: GetDomainsArgs, opts?: InvokeOptions): Promise<GetDomainsResult>
function getDomainsOutput(args: GetDomainsOutputArgs, opts?: InvokeOptions): Output<GetDomainsResult>
def get_domains(backend: Optional[str] = None,
domain: Optional[str] = None,
enable_details: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
instance_id: Optional[str] = None,
output_file: Optional[str] = None,
page_number: Optional[int] = None,
page_size: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetDomainsResult
def get_domains_output(backend: Optional[pulumi.Input[str]] = None,
domain: Optional[pulumi.Input[str]] = None,
enable_details: Optional[pulumi.Input[bool]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
page_number: Optional[pulumi.Input[int]] = None,
page_size: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDomainsResult]
func GetDomains(ctx *Context, args *GetDomainsArgs, opts ...InvokeOption) (*GetDomainsResult, error)
func GetDomainsOutput(ctx *Context, args *GetDomainsOutputArgs, opts ...InvokeOption) GetDomainsResultOutput
> Note: This function is named GetDomains
in the Go SDK.
public static class GetDomains
{
public static Task<GetDomainsResult> InvokeAsync(GetDomainsArgs args, InvokeOptions? opts = null)
public static Output<GetDomainsResult> Invoke(GetDomainsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDomainsResult> getDomains(GetDomainsArgs args, InvokeOptions options)
public static Output<GetDomainsResult> getDomains(GetDomainsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:wafv3/getDomains:getDomains
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id This property is required. Changes to this property will trigger replacement.
- The WAF instance ID.
- Backend
Changes to this property will trigger replacement.
- The address type of the origin server. The address can be an IP address or a domain name. You can specify only one type of address.
- Domain
Changes to this property will trigger replacement.
- The name of the domain name to query.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids
Changes to this property will trigger replacement.
- A list of domain IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Page
Number int - Page
Size int
- Instance
Id This property is required. Changes to this property will trigger replacement.
- The WAF instance ID.
- Backend
Changes to this property will trigger replacement.
- The address type of the origin server. The address can be an IP address or a domain name. You can specify only one type of address.
- Domain
Changes to this property will trigger replacement.
- The name of the domain name to query.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids
Changes to this property will trigger replacement.
- A list of domain IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Page
Number int - Page
Size int
- instance
Id This property is required. Changes to this property will trigger replacement.
- The WAF instance ID.
- backend
Changes to this property will trigger replacement.
- The address type of the origin server. The address can be an IP address or a domain name. You can specify only one type of address.
- domain
Changes to this property will trigger replacement.
- The name of the domain name to query.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids
Changes to this property will trigger replacement.
- A list of domain IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Integer - page
Size Integer
- instance
Id This property is required. Changes to this property will trigger replacement.
- The WAF instance ID.
- backend
Changes to this property will trigger replacement.
- The address type of the origin server. The address can be an IP address or a domain name. You can specify only one type of address.
- domain
Changes to this property will trigger replacement.
- The name of the domain name to query.
- enable
Details boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids
Changes to this property will trigger replacement.
- A list of domain IDs.
- output
File string - File name where to save data source results (after running
pulumi preview
). - page
Number number - page
Size number
- instance_
id This property is required. Changes to this property will trigger replacement.
- The WAF instance ID.
- backend
Changes to this property will trigger replacement.
- The address type of the origin server. The address can be an IP address or a domain name. You can specify only one type of address.
- domain
Changes to this property will trigger replacement.
- The name of the domain name to query.
- enable_
details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - ids
Changes to this property will trigger replacement.
- A list of domain IDs.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - page_
number int - page_
size int
- instance
Id This property is required. Changes to this property will trigger replacement.
- The WAF instance ID.
- backend
Changes to this property will trigger replacement.
- The address type of the origin server. The address can be an IP address or a domain name. You can specify only one type of address.
- domain
Changes to this property will trigger replacement.
- The name of the domain name to query.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids
Changes to this property will trigger replacement.
- A list of domain IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Number - page
Size Number
getDomains Result
The following output properties are available:
- Domains
List<Pulumi.
Ali Cloud. Wafv3. Outputs. Get Domains Domain> - A list of Domain Entries. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Instance
Id string - Backend string
- Domain string
- The name of the domain.
- Enable
Details bool - Output
File string - Page
Number int - Page
Size int
- Domains
[]Get
Domains Domain - A list of Domain Entries. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Instance
Id string - Backend string
- Domain string
- The name of the domain.
- Enable
Details bool - Output
File string - Page
Number int - Page
Size int
- domains
List<Get
Domains Domain> - A list of Domain Entries. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- instance
Id String - backend String
- domain String
- The name of the domain.
- enable
Details Boolean - output
File String - page
Number Integer - page
Size Integer
- domains
Get
Domains Domain[] - A list of Domain Entries. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- instance
Id string - backend string
- domain string
- The name of the domain.
- enable
Details boolean - output
File string - page
Number number - page
Size number
- domains
Sequence[Get
Domains Domain] - A list of Domain Entries. Each element contains the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- instance_
id str - backend str
- domain str
- The name of the domain.
- enable_
details bool - output_
file str - page_
number int - page_
size int
- domains List<Property Map>
- A list of Domain Entries. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- instance
Id String - backend String
- domain String
- The name of the domain.
- enable
Details Boolean - output
File String - page
Number Number - page
Size Number
Supporting Types
GetDomainsDomain
- Domain
This property is required. string - The name of the domain name to query.
- Id
This property is required. string - The ID of the domain. It formats as
<instance_id>:<domain>
. - Listens
This property is required. List<Pulumi.Ali Cloud. Wafv3. Inputs. Get Domains Domain Listen> - Configure listening information
- Redirects
This property is required. List<Pulumi.Ali Cloud. Wafv3. Inputs. Get Domains Domain Redirect> - Configure forwarding information.
- Resource
Manager Resource Group Id This property is required. string - The ID of the resource group.
- Status
This property is required. string - The status of the domain.
- Domain
This property is required. string - The name of the domain name to query.
- Id
This property is required. string - The ID of the domain. It formats as
<instance_id>:<domain>
. - Listens
This property is required. []GetDomains Domain Listen - Configure listening information
- Redirects
This property is required. []GetDomains Domain Redirect - Configure forwarding information.
- Resource
Manager Resource Group Id This property is required. string - The ID of the resource group.
- Status
This property is required. string - The status of the domain.
- domain
This property is required. String - The name of the domain name to query.
- id
This property is required. String - The ID of the domain. It formats as
<instance_id>:<domain>
. - listens
This property is required. List<GetDomains Domain Listen> - Configure listening information
- redirects
This property is required. List<GetDomains Domain Redirect> - Configure forwarding information.
- resource
Manager Resource Group Id This property is required. String - The ID of the resource group.
- status
This property is required. String - The status of the domain.
- domain
This property is required. string - The name of the domain name to query.
- id
This property is required. string - The ID of the domain. It formats as
<instance_id>:<domain>
. - listens
This property is required. GetDomains Domain Listen[] - Configure listening information
- redirects
This property is required. GetDomains Domain Redirect[] - Configure forwarding information.
- resource
Manager Resource Group Id This property is required. string - The ID of the resource group.
- status
This property is required. string - The status of the domain.
- domain
This property is required. str - The name of the domain name to query.
- id
This property is required. str - The ID of the domain. It formats as
<instance_id>:<domain>
. - listens
This property is required. Sequence[GetDomains Domain Listen] - Configure listening information
- redirects
This property is required. Sequence[GetDomains Domain Redirect] - Configure forwarding information.
- resource_
manager_ resource_ group_ id This property is required. str - The ID of the resource group.
- status
This property is required. str - The status of the domain.
- domain
This property is required. String - The name of the domain name to query.
- id
This property is required. String - The ID of the domain. It formats as
<instance_id>:<domain>
. - listens
This property is required. List<Property Map> - Configure listening information
- redirects
This property is required. List<Property Map> - Configure forwarding information.
- resource
Manager Resource Group Id This property is required. String - The ID of the resource group.
- status
This property is required. String - The status of the domain.
GetDomainsDomainListen
- Cert
Id This property is required. string - The ID of the certificate to be added. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- Cipher
Suite This property is required. int - The type of encryption suite to add. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- Custom
Ciphers This property is required. List<string> - The specific custom encryption suite to add.
- Enable
Tlsv3 This property is required. bool - Whether TSL1.3 version is supported. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- Exclusive
Ip This property is required. bool - Whether to enable exclusive IP address. This parameter is used only when the value of ipv6_enabled is false (indicating that IPv6 is not enabled) and the value of protection_resource is share (indicating that a shared cluster is used).
- Focus
Https This property is required. bool - Whether to enable the forced jump of HTTPS. This parameter is used only when the value of
https_ports
is not empty (indicating that the domain name uses HTTPS protocol) and the value of httports is empty (indicating that the domain name does not use HTTP protocol). - Http2Enabled
This property is required. bool - Whether to turn on http2. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- Http
Ports This property is required. List<int> - The listening port of the HTTP protocol.
- Https
Ports This property is required. List<int> - The listening port of the HTTPS protocol.
- Ipv6Enabled
This property is required. bool - Whether IPv6 is turned on.
- Protection
Resource This property is required. string - The type of protection resource to use.
- Tls
Version This property is required. string - The version of TLS to add. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- Xff
Header Mode This property is required. int - WAF obtains the real IP address of the client.
- Xff
Headers This property is required. List<string> - Set the list of custom fields used to obtain the client IP address.
- Cert
Id This property is required. string - The ID of the certificate to be added. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- Cipher
Suite This property is required. int - The type of encryption suite to add. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- Custom
Ciphers This property is required. []string - The specific custom encryption suite to add.
- Enable
Tlsv3 This property is required. bool - Whether TSL1.3 version is supported. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- Exclusive
Ip This property is required. bool - Whether to enable exclusive IP address. This parameter is used only when the value of ipv6_enabled is false (indicating that IPv6 is not enabled) and the value of protection_resource is share (indicating that a shared cluster is used).
- Focus
Https This property is required. bool - Whether to enable the forced jump of HTTPS. This parameter is used only when the value of
https_ports
is not empty (indicating that the domain name uses HTTPS protocol) and the value of httports is empty (indicating that the domain name does not use HTTP protocol). - Http2Enabled
This property is required. bool - Whether to turn on http2. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- Http
Ports This property is required. []int - The listening port of the HTTP protocol.
- Https
Ports This property is required. []int - The listening port of the HTTPS protocol.
- Ipv6Enabled
This property is required. bool - Whether IPv6 is turned on.
- Protection
Resource This property is required. string - The type of protection resource to use.
- Tls
Version This property is required. string - The version of TLS to add. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- Xff
Header Mode This property is required. int - WAF obtains the real IP address of the client.
- Xff
Headers This property is required. []string - Set the list of custom fields used to obtain the client IP address.
- cert
Id This property is required. String - The ID of the certificate to be added. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- cipher
Suite This property is required. Integer - The type of encryption suite to add. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- custom
Ciphers This property is required. List<String> - The specific custom encryption suite to add.
- enable
Tlsv3 This property is required. Boolean - Whether TSL1.3 version is supported. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- exclusive
Ip This property is required. Boolean - Whether to enable exclusive IP address. This parameter is used only when the value of ipv6_enabled is false (indicating that IPv6 is not enabled) and the value of protection_resource is share (indicating that a shared cluster is used).
- focus
Https This property is required. Boolean - Whether to enable the forced jump of HTTPS. This parameter is used only when the value of
https_ports
is not empty (indicating that the domain name uses HTTPS protocol) and the value of httports is empty (indicating that the domain name does not use HTTP protocol). - http2Enabled
This property is required. Boolean - Whether to turn on http2. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- http
Ports This property is required. List<Integer> - The listening port of the HTTP protocol.
- https
Ports This property is required. List<Integer> - The listening port of the HTTPS protocol.
- ipv6Enabled
This property is required. Boolean - Whether IPv6 is turned on.
- protection
Resource This property is required. String - The type of protection resource to use.
- tls
Version This property is required. String - The version of TLS to add. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- xff
Header Mode This property is required. Integer - WAF obtains the real IP address of the client.
- xff
Headers This property is required. List<String> - Set the list of custom fields used to obtain the client IP address.
- cert
Id This property is required. string - The ID of the certificate to be added. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- cipher
Suite This property is required. number - The type of encryption suite to add. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- custom
Ciphers This property is required. string[] - The specific custom encryption suite to add.
- enable
Tlsv3 This property is required. boolean - Whether TSL1.3 version is supported. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- exclusive
Ip This property is required. boolean - Whether to enable exclusive IP address. This parameter is used only when the value of ipv6_enabled is false (indicating that IPv6 is not enabled) and the value of protection_resource is share (indicating that a shared cluster is used).
- focus
Https This property is required. boolean - Whether to enable the forced jump of HTTPS. This parameter is used only when the value of
https_ports
is not empty (indicating that the domain name uses HTTPS protocol) and the value of httports is empty (indicating that the domain name does not use HTTP protocol). - http2Enabled
This property is required. boolean - Whether to turn on http2. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- http
Ports This property is required. number[] - The listening port of the HTTP protocol.
- https
Ports This property is required. number[] - The listening port of the HTTPS protocol.
- ipv6Enabled
This property is required. boolean - Whether IPv6 is turned on.
- protection
Resource This property is required. string - The type of protection resource to use.
- tls
Version This property is required. string - The version of TLS to add. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- xff
Header Mode This property is required. number - WAF obtains the real IP address of the client.
- xff
Headers This property is required. string[] - Set the list of custom fields used to obtain the client IP address.
- cert_
id This property is required. str - The ID of the certificate to be added. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- cipher_
suite This property is required. int - The type of encryption suite to add. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- custom_
ciphers This property is required. Sequence[str] - The specific custom encryption suite to add.
- enable_
tlsv3 This property is required. bool - Whether TSL1.3 version is supported. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- exclusive_
ip This property is required. bool - Whether to enable exclusive IP address. This parameter is used only when the value of ipv6_enabled is false (indicating that IPv6 is not enabled) and the value of protection_resource is share (indicating that a shared cluster is used).
- focus_
https This property is required. bool - Whether to enable the forced jump of HTTPS. This parameter is used only when the value of
https_ports
is not empty (indicating that the domain name uses HTTPS protocol) and the value of httports is empty (indicating that the domain name does not use HTTP protocol). - http2_
enabled This property is required. bool - Whether to turn on http2. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- http_
ports This property is required. Sequence[int] - The listening port of the HTTP protocol.
- https_
ports This property is required. Sequence[int] - The listening port of the HTTPS protocol.
- ipv6_
enabled This property is required. bool - Whether IPv6 is turned on.
- protection_
resource This property is required. str - The type of protection resource to use.
- tls_
version This property is required. str - The version of TLS to add. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- xff_
header_ mode This property is required. int - WAF obtains the real IP address of the client.
- xff_
headers This property is required. Sequence[str] - Set the list of custom fields used to obtain the client IP address.
- cert
Id This property is required. String - The ID of the certificate to be added. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- cipher
Suite This property is required. Number - The type of encryption suite to add. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- custom
Ciphers This property is required. List<String> - The specific custom encryption suite to add.
- enable
Tlsv3 This property is required. Boolean - Whether TSL1.3 version is supported. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- exclusive
Ip This property is required. Boolean - Whether to enable exclusive IP address. This parameter is used only when the value of ipv6_enabled is false (indicating that IPv6 is not enabled) and the value of protection_resource is share (indicating that a shared cluster is used).
- focus
Https This property is required. Boolean - Whether to enable the forced jump of HTTPS. This parameter is used only when the value of
https_ports
is not empty (indicating that the domain name uses HTTPS protocol) and the value of httports is empty (indicating that the domain name does not use HTTP protocol). - http2Enabled
This property is required. Boolean - Whether to turn on http2. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- http
Ports This property is required. List<Number> - The listening port of the HTTP protocol.
- https
Ports This property is required. List<Number> - The listening port of the HTTPS protocol.
- ipv6Enabled
This property is required. Boolean - Whether IPv6 is turned on.
- protection
Resource This property is required. String - The type of protection resource to use.
- tls
Version This property is required. String - The version of TLS to add. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- xff
Header Mode This property is required. Number - WAF obtains the real IP address of the client.
- xff
Headers This property is required. List<String> - Set the list of custom fields used to obtain the client IP address.
GetDomainsDomainRedirect
- Backends
This property is required. List<string> - The IP address of the origin server corresponding to the domain name or the back-to-origin domain name of the server.
- Connect
Timeout This property is required. int - Connection timeout, Unit: seconds, value range: 5~120.
- Focus
Http Backend This property is required. bool - Whether to enable forced HTTP back-to-origin. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- Keepalive
This property is required. bool - Open long connection, default true.
- Keepalive
Requests This property is required. int - Number of long connections, default:
60
. range :60-1000. - Keepalive
Timeout This property is required. int - Long connection over time, default:
15
. Range: 1-60. - Loadbalance
This property is required. string - The load balancing algorithm used when returning to the source.
- Read
Timeout This property is required. int - Read timeout duration. Unit: seconds, Value range: 5~1800.
- Request
Headers This property is required. List<Pulumi.Ali Cloud. Wafv3. Inputs. Get Domains Domain Redirect Request Header> - The traffic tag field and value of the domain name, which is used to mark the traffic processed by WAF. the format of this parameter value is [{" k ":"key"," v ":"value"}]. where_key_represents the specified custom request header field, and_value_represents the value set for this field.By specifying the custom request header field and the corresponding value, when the access traffic of the domain name passes through WAF, WAF automatically adds the specified custom field value to the request header as the traffic mark, which is convenient for backend service statistics.Explain that if the custom header field already exists in the request, the system will overwrite the value of the custom field in the request with the set traffic tag value.
- Retry
This property is required. bool - Back to Source Retry. default
true
, retry 3 times by default. - Sni
Enabled This property is required. bool - Whether to enable back-to-source SNI. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- Sni
Host This property is required. string - Sets the value of the custom SNI extension field. If this parameter is not set, the value of the Host field in the request header is used as the value of the SNI extension field by default.In general, you do not need to customize SNI unless your business has special configuration requirements. You want WAF to use SNI that is inconsistent with the actual request Host in the back-to-origin request (that is, the custom SNI set here).> This parameter is required only when sni_enalbed is set to true (indicating that back-to-source SNI is enabled).
- Write
Timeout This property is required. int - Write timeout duration. Unit: seconds, Value range:5~1800.
- Backends
This property is required. []string - The IP address of the origin server corresponding to the domain name or the back-to-origin domain name of the server.
- Connect
Timeout This property is required. int - Connection timeout, Unit: seconds, value range: 5~120.
- Focus
Http Backend This property is required. bool - Whether to enable forced HTTP back-to-origin. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- Keepalive
This property is required. bool - Open long connection, default true.
- Keepalive
Requests This property is required. int - Number of long connections, default:
60
. range :60-1000. - Keepalive
Timeout This property is required. int - Long connection over time, default:
15
. Range: 1-60. - Loadbalance
This property is required. string - The load balancing algorithm used when returning to the source.
- Read
Timeout This property is required. int - Read timeout duration. Unit: seconds, Value range: 5~1800.
- Request
Headers This property is required. []GetDomains Domain Redirect Request Header - The traffic tag field and value of the domain name, which is used to mark the traffic processed by WAF. the format of this parameter value is [{" k ":"key"," v ":"value"}]. where_key_represents the specified custom request header field, and_value_represents the value set for this field.By specifying the custom request header field and the corresponding value, when the access traffic of the domain name passes through WAF, WAF automatically adds the specified custom field value to the request header as the traffic mark, which is convenient for backend service statistics.Explain that if the custom header field already exists in the request, the system will overwrite the value of the custom field in the request with the set traffic tag value.
- Retry
This property is required. bool - Back to Source Retry. default
true
, retry 3 times by default. - Sni
Enabled This property is required. bool - Whether to enable back-to-source SNI. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- Sni
Host This property is required. string - Sets the value of the custom SNI extension field. If this parameter is not set, the value of the Host field in the request header is used as the value of the SNI extension field by default.In general, you do not need to customize SNI unless your business has special configuration requirements. You want WAF to use SNI that is inconsistent with the actual request Host in the back-to-origin request (that is, the custom SNI set here).> This parameter is required only when sni_enalbed is set to true (indicating that back-to-source SNI is enabled).
- Write
Timeout This property is required. int - Write timeout duration. Unit: seconds, Value range:5~1800.
- backends
This property is required. List<String> - The IP address of the origin server corresponding to the domain name or the back-to-origin domain name of the server.
- connect
Timeout This property is required. Integer - Connection timeout, Unit: seconds, value range: 5~120.
- focus
Http Backend This property is required. Boolean - Whether to enable forced HTTP back-to-origin. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- keepalive
This property is required. Boolean - Open long connection, default true.
- keepalive
Requests This property is required. Integer - Number of long connections, default:
60
. range :60-1000. - keepalive
Timeout This property is required. Integer - Long connection over time, default:
15
. Range: 1-60. - loadbalance
This property is required. String - The load balancing algorithm used when returning to the source.
- read
Timeout This property is required. Integer - Read timeout duration. Unit: seconds, Value range: 5~1800.
- request
Headers This property is required. List<GetDomains Domain Redirect Request Header> - The traffic tag field and value of the domain name, which is used to mark the traffic processed by WAF. the format of this parameter value is [{" k ":"key"," v ":"value"}]. where_key_represents the specified custom request header field, and_value_represents the value set for this field.By specifying the custom request header field and the corresponding value, when the access traffic of the domain name passes through WAF, WAF automatically adds the specified custom field value to the request header as the traffic mark, which is convenient for backend service statistics.Explain that if the custom header field already exists in the request, the system will overwrite the value of the custom field in the request with the set traffic tag value.
- retry
This property is required. Boolean - Back to Source Retry. default
true
, retry 3 times by default. - sni
Enabled This property is required. Boolean - Whether to enable back-to-source SNI. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- sni
Host This property is required. String - Sets the value of the custom SNI extension field. If this parameter is not set, the value of the Host field in the request header is used as the value of the SNI extension field by default.In general, you do not need to customize SNI unless your business has special configuration requirements. You want WAF to use SNI that is inconsistent with the actual request Host in the back-to-origin request (that is, the custom SNI set here).> This parameter is required only when sni_enalbed is set to true (indicating that back-to-source SNI is enabled).
- write
Timeout This property is required. Integer - Write timeout duration. Unit: seconds, Value range:5~1800.
- backends
This property is required. string[] - The IP address of the origin server corresponding to the domain name or the back-to-origin domain name of the server.
- connect
Timeout This property is required. number - Connection timeout, Unit: seconds, value range: 5~120.
- focus
Http Backend This property is required. boolean - Whether to enable forced HTTP back-to-origin. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- keepalive
This property is required. boolean - Open long connection, default true.
- keepalive
Requests This property is required. number - Number of long connections, default:
60
. range :60-1000. - keepalive
Timeout This property is required. number - Long connection over time, default:
15
. Range: 1-60. - loadbalance
This property is required. string - The load balancing algorithm used when returning to the source.
- read
Timeout This property is required. number - Read timeout duration. Unit: seconds, Value range: 5~1800.
- request
Headers This property is required. GetDomains Domain Redirect Request Header[] - The traffic tag field and value of the domain name, which is used to mark the traffic processed by WAF. the format of this parameter value is [{" k ":"key"," v ":"value"}]. where_key_represents the specified custom request header field, and_value_represents the value set for this field.By specifying the custom request header field and the corresponding value, when the access traffic of the domain name passes through WAF, WAF automatically adds the specified custom field value to the request header as the traffic mark, which is convenient for backend service statistics.Explain that if the custom header field already exists in the request, the system will overwrite the value of the custom field in the request with the set traffic tag value.
- retry
This property is required. boolean - Back to Source Retry. default
true
, retry 3 times by default. - sni
Enabled This property is required. boolean - Whether to enable back-to-source SNI. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- sni
Host This property is required. string - Sets the value of the custom SNI extension field. If this parameter is not set, the value of the Host field in the request header is used as the value of the SNI extension field by default.In general, you do not need to customize SNI unless your business has special configuration requirements. You want WAF to use SNI that is inconsistent with the actual request Host in the back-to-origin request (that is, the custom SNI set here).> This parameter is required only when sni_enalbed is set to true (indicating that back-to-source SNI is enabled).
- write
Timeout This property is required. number - Write timeout duration. Unit: seconds, Value range:5~1800.
- backends
This property is required. Sequence[str] - The IP address of the origin server corresponding to the domain name or the back-to-origin domain name of the server.
- connect_
timeout This property is required. int - Connection timeout, Unit: seconds, value range: 5~120.
- focus_
http_ backend This property is required. bool - Whether to enable forced HTTP back-to-origin. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- keepalive
This property is required. bool - Open long connection, default true.
- keepalive_
requests This property is required. int - Number of long connections, default:
60
. range :60-1000. - keepalive_
timeout This property is required. int - Long connection over time, default:
15
. Range: 1-60. - loadbalance
This property is required. str - The load balancing algorithm used when returning to the source.
- read_
timeout This property is required. int - Read timeout duration. Unit: seconds, Value range: 5~1800.
- request_
headers This property is required. Sequence[GetDomains Domain Redirect Request Header] - The traffic tag field and value of the domain name, which is used to mark the traffic processed by WAF. the format of this parameter value is [{" k ":"key"," v ":"value"}]. where_key_represents the specified custom request header field, and_value_represents the value set for this field.By specifying the custom request header field and the corresponding value, when the access traffic of the domain name passes through WAF, WAF automatically adds the specified custom field value to the request header as the traffic mark, which is convenient for backend service statistics.Explain that if the custom header field already exists in the request, the system will overwrite the value of the custom field in the request with the set traffic tag value.
- retry
This property is required. bool - Back to Source Retry. default
true
, retry 3 times by default. - sni_
enabled This property is required. bool - Whether to enable back-to-source SNI. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- sni_
host This property is required. str - Sets the value of the custom SNI extension field. If this parameter is not set, the value of the Host field in the request header is used as the value of the SNI extension field by default.In general, you do not need to customize SNI unless your business has special configuration requirements. You want WAF to use SNI that is inconsistent with the actual request Host in the back-to-origin request (that is, the custom SNI set here).> This parameter is required only when sni_enalbed is set to true (indicating that back-to-source SNI is enabled).
- write_
timeout This property is required. int - Write timeout duration. Unit: seconds, Value range:5~1800.
- backends
This property is required. List<String> - The IP address of the origin server corresponding to the domain name or the back-to-origin domain name of the server.
- connect
Timeout This property is required. Number - Connection timeout, Unit: seconds, value range: 5~120.
- focus
Http Backend This property is required. Boolean - Whether to enable forced HTTP back-to-origin. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- keepalive
This property is required. Boolean - Open long connection, default true.
- keepalive
Requests This property is required. Number - Number of long connections, default:
60
. range :60-1000. - keepalive
Timeout This property is required. Number - Long connection over time, default:
15
. Range: 1-60. - loadbalance
This property is required. String - The load balancing algorithm used when returning to the source.
- read
Timeout This property is required. Number - Read timeout duration. Unit: seconds, Value range: 5~1800.
- request
Headers This property is required. List<Property Map> - The traffic tag field and value of the domain name, which is used to mark the traffic processed by WAF. the format of this parameter value is [{" k ":"key"," v ":"value"}]. where_key_represents the specified custom request header field, and_value_represents the value set for this field.By specifying the custom request header field and the corresponding value, when the access traffic of the domain name passes through WAF, WAF automatically adds the specified custom field value to the request header as the traffic mark, which is convenient for backend service statistics.Explain that if the custom header field already exists in the request, the system will overwrite the value of the custom field in the request with the set traffic tag value.
- retry
This property is required. Boolean - Back to Source Retry. default
true
, retry 3 times by default. - sni
Enabled This property is required. Boolean - Whether to enable back-to-source SNI. This parameter is used only if the value of https_ports is not empty (indicating that the domain name uses the HTTPS protocol).
- sni
Host This property is required. String - Sets the value of the custom SNI extension field. If this parameter is not set, the value of the Host field in the request header is used as the value of the SNI extension field by default.In general, you do not need to customize SNI unless your business has special configuration requirements. You want WAF to use SNI that is inconsistent with the actual request Host in the back-to-origin request (that is, the custom SNI set here).> This parameter is required only when sni_enalbed is set to true (indicating that back-to-source SNI is enabled).
- write
Timeout This property is required. Number - Write timeout duration. Unit: seconds, Value range:5~1800.
GetDomainsDomainRedirectRequestHeader
- Key
This property is required. string - The traffic tag field and value of the domain name, which is used to mark the traffic processed by WAF. the format of this parameter value is [{" k ":"key"," v ":"value"}]. where_key_represents the specified custom request header field, and_value_represents the value set for this field.By specifying the custom request header field and the corresponding value, when the access traffic of the domain name passes through WAF, WAF automatically adds the specified custom field value to the request header as the traffic mark, which is convenient for backend service statistics.Explain that if the custom header field already exists in the request, the system will overwrite the value of the custom field in the request with the set traffic tag value.
- Value
This property is required. string - The traffic tag field and value of the domain name, which is used to mark the traffic processed by WAF. the format of this parameter value is [{" k ":"key"," v ":"value"}]. where_key_represents the specified custom request header field, and_value_represents the value set for this field.By specifying the custom request header field and the corresponding value, when the access traffic of the domain name passes through WAF, WAF automatically adds the specified custom field value to the request header as the traffic mark, which is convenient for backend service statistics.Explain that if the custom header field already exists in the request, the system will overwrite the value of the custom field in the request with the set traffic tag value.
- Key
This property is required. string - The traffic tag field and value of the domain name, which is used to mark the traffic processed by WAF. the format of this parameter value is [{" k ":"key"," v ":"value"}]. where_key_represents the specified custom request header field, and_value_represents the value set for this field.By specifying the custom request header field and the corresponding value, when the access traffic of the domain name passes through WAF, WAF automatically adds the specified custom field value to the request header as the traffic mark, which is convenient for backend service statistics.Explain that if the custom header field already exists in the request, the system will overwrite the value of the custom field in the request with the set traffic tag value.
- Value
This property is required. string - The traffic tag field and value of the domain name, which is used to mark the traffic processed by WAF. the format of this parameter value is [{" k ":"key"," v ":"value"}]. where_key_represents the specified custom request header field, and_value_represents the value set for this field.By specifying the custom request header field and the corresponding value, when the access traffic of the domain name passes through WAF, WAF automatically adds the specified custom field value to the request header as the traffic mark, which is convenient for backend service statistics.Explain that if the custom header field already exists in the request, the system will overwrite the value of the custom field in the request with the set traffic tag value.
- key
This property is required. String - The traffic tag field and value of the domain name, which is used to mark the traffic processed by WAF. the format of this parameter value is [{" k ":"key"," v ":"value"}]. where_key_represents the specified custom request header field, and_value_represents the value set for this field.By specifying the custom request header field and the corresponding value, when the access traffic of the domain name passes through WAF, WAF automatically adds the specified custom field value to the request header as the traffic mark, which is convenient for backend service statistics.Explain that if the custom header field already exists in the request, the system will overwrite the value of the custom field in the request with the set traffic tag value.
- value
This property is required. String - The traffic tag field and value of the domain name, which is used to mark the traffic processed by WAF. the format of this parameter value is [{" k ":"key"," v ":"value"}]. where_key_represents the specified custom request header field, and_value_represents the value set for this field.By specifying the custom request header field and the corresponding value, when the access traffic of the domain name passes through WAF, WAF automatically adds the specified custom field value to the request header as the traffic mark, which is convenient for backend service statistics.Explain that if the custom header field already exists in the request, the system will overwrite the value of the custom field in the request with the set traffic tag value.
- key
This property is required. string - The traffic tag field and value of the domain name, which is used to mark the traffic processed by WAF. the format of this parameter value is [{" k ":"key"," v ":"value"}]. where_key_represents the specified custom request header field, and_value_represents the value set for this field.By specifying the custom request header field and the corresponding value, when the access traffic of the domain name passes through WAF, WAF automatically adds the specified custom field value to the request header as the traffic mark, which is convenient for backend service statistics.Explain that if the custom header field already exists in the request, the system will overwrite the value of the custom field in the request with the set traffic tag value.
- value
This property is required. string - The traffic tag field and value of the domain name, which is used to mark the traffic processed by WAF. the format of this parameter value is [{" k ":"key"," v ":"value"}]. where_key_represents the specified custom request header field, and_value_represents the value set for this field.By specifying the custom request header field and the corresponding value, when the access traffic of the domain name passes through WAF, WAF automatically adds the specified custom field value to the request header as the traffic mark, which is convenient for backend service statistics.Explain that if the custom header field already exists in the request, the system will overwrite the value of the custom field in the request with the set traffic tag value.
- key
This property is required. str - The traffic tag field and value of the domain name, which is used to mark the traffic processed by WAF. the format of this parameter value is [{" k ":"key"," v ":"value"}]. where_key_represents the specified custom request header field, and_value_represents the value set for this field.By specifying the custom request header field and the corresponding value, when the access traffic of the domain name passes through WAF, WAF automatically adds the specified custom field value to the request header as the traffic mark, which is convenient for backend service statistics.Explain that if the custom header field already exists in the request, the system will overwrite the value of the custom field in the request with the set traffic tag value.
- value
This property is required. str - The traffic tag field and value of the domain name, which is used to mark the traffic processed by WAF. the format of this parameter value is [{" k ":"key"," v ":"value"}]. where_key_represents the specified custom request header field, and_value_represents the value set for this field.By specifying the custom request header field and the corresponding value, when the access traffic of the domain name passes through WAF, WAF automatically adds the specified custom field value to the request header as the traffic mark, which is convenient for backend service statistics.Explain that if the custom header field already exists in the request, the system will overwrite the value of the custom field in the request with the set traffic tag value.
- key
This property is required. String - The traffic tag field and value of the domain name, which is used to mark the traffic processed by WAF. the format of this parameter value is [{" k ":"key"," v ":"value"}]. where_key_represents the specified custom request header field, and_value_represents the value set for this field.By specifying the custom request header field and the corresponding value, when the access traffic of the domain name passes through WAF, WAF automatically adds the specified custom field value to the request header as the traffic mark, which is convenient for backend service statistics.Explain that if the custom header field already exists in the request, the system will overwrite the value of the custom field in the request with the set traffic tag value.
- value
This property is required. String - The traffic tag field and value of the domain name, which is used to mark the traffic processed by WAF. the format of this parameter value is [{" k ":"key"," v ":"value"}]. where_key_represents the specified custom request header field, and_value_represents the value set for this field.By specifying the custom request header field and the corresponding value, when the access traffic of the domain name passes through WAF, WAF automatically adds the specified custom field value to the request header as the traffic mark, which is convenient for backend service statistics.Explain that if the custom header field already exists in the request, the system will overwrite the value of the custom field in the request with the set traffic tag value.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.