1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. wafv3
  5. getDomains
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.wafv3.getDomains

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:wafv3/getDomains:getDomains
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    The WAF instance ID.
    Backend string
    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 string
    The name of the domain name to query.
    EnableDetails bool
    Default to false. Set it to true can output more details about resource attributes.
    Ids List<string>
    A list of domain IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    InstanceId string
    The WAF instance ID.
    Backend string
    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 string
    The name of the domain name to query.
    EnableDetails bool
    Default to false. Set it to true can output more details about resource attributes.
    Ids []string
    A list of domain IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    instanceId String
    The WAF instance ID.
    backend String
    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 String
    The name of the domain name to query.
    enableDetails Boolean
    Default to false. Set it to true can output more details about resource attributes.
    ids List<String>
    A list of domain IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Integer
    pageSize Integer
    instanceId string
    The WAF instance ID.
    backend string
    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 string
    The name of the domain name to query.
    enableDetails boolean
    Default to false. Set it to true can output more details about resource attributes.
    ids string[]
    A list of domain IDs.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    pageNumber number
    pageSize number
    instance_id str
    The WAF instance ID.
    backend str
    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 str
    The name of the domain name to query.
    enable_details bool
    Default to false. Set it to true can output more details about resource attributes.
    ids Sequence[str]
    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
    instanceId String
    The WAF instance ID.
    backend String
    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 String
    The name of the domain name to query.
    enableDetails Boolean
    Default to false. Set it to true can output more details about resource attributes.
    ids List<String>
    A list of domain IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Number
    pageSize Number

    getDomains Result

    The following output properties are available:

    Domains List<Pulumi.AliCloud.Wafv3.Outputs.GetDomainsDomain>
    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>
    InstanceId string
    Backend string
    Domain string
    The name of the domain.
    EnableDetails bool
    OutputFile string
    PageNumber int
    PageSize int
    Domains []GetDomainsDomain
    A list of Domain Entries. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    InstanceId string
    Backend string
    Domain string
    The name of the domain.
    EnableDetails bool
    OutputFile string
    PageNumber int
    PageSize int
    domains List<GetDomainsDomain>
    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>
    instanceId String
    backend String
    domain String
    The name of the domain.
    enableDetails Boolean
    outputFile String
    pageNumber Integer
    pageSize Integer
    domains GetDomainsDomain[]
    A list of Domain Entries. Each element contains the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    instanceId string
    backend string
    domain string
    The name of the domain.
    enableDetails boolean
    outputFile string
    pageNumber number
    pageSize number
    domains Sequence[GetDomainsDomain]
    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>
    instanceId String
    backend String
    domain String
    The name of the domain.
    enableDetails Boolean
    outputFile String
    pageNumber Number
    pageSize Number

    Supporting Types

    GetDomainsDomain

    Domain string
    The name of the domain name to query.
    Id string
    The ID of the domain. It formats as <instance_id>:<domain>.
    Listens List<Pulumi.AliCloud.Wafv3.Inputs.GetDomainsDomainListen>
    Configure listening information
    Redirects List<Pulumi.AliCloud.Wafv3.Inputs.GetDomainsDomainRedirect>
    Configure forwarding information.
    ResourceManagerResourceGroupId string
    The ID of the resource group.
    Status string
    The status of the domain.
    Domain string
    The name of the domain name to query.
    Id string
    The ID of the domain. It formats as <instance_id>:<domain>.
    Listens []GetDomainsDomainListen
    Configure listening information
    Redirects []GetDomainsDomainRedirect
    Configure forwarding information.
    ResourceManagerResourceGroupId string
    The ID of the resource group.
    Status string
    The status of the domain.
    domain String
    The name of the domain name to query.
    id String
    The ID of the domain. It formats as <instance_id>:<domain>.
    listens List<GetDomainsDomainListen>
    Configure listening information
    redirects List<GetDomainsDomainRedirect>
    Configure forwarding information.
    resourceManagerResourceGroupId String
    The ID of the resource group.
    status String
    The status of the domain.
    domain string
    The name of the domain name to query.
    id string
    The ID of the domain. It formats as <instance_id>:<domain>.
    listens GetDomainsDomainListen[]
    Configure listening information
    redirects GetDomainsDomainRedirect[]
    Configure forwarding information.
    resourceManagerResourceGroupId string
    The ID of the resource group.
    status string
    The status of the domain.
    domain str
    The name of the domain name to query.
    id str
    The ID of the domain. It formats as <instance_id>:<domain>.
    listens Sequence[GetDomainsDomainListen]
    Configure listening information
    redirects Sequence[GetDomainsDomainRedirect]
    Configure forwarding information.
    resource_manager_resource_group_id str
    The ID of the resource group.
    status str
    The status of the domain.
    domain String
    The name of the domain name to query.
    id String
    The ID of the domain. It formats as <instance_id>:<domain>.
    listens List<Property Map>
    Configure listening information
    redirects List<Property Map>
    Configure forwarding information.
    resourceManagerResourceGroupId String
    The ID of the resource group.
    status String
    The status of the domain.

    GetDomainsDomainListen

    CertId 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).
    CipherSuite 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).
    CustomCiphers List<string>
    The specific custom encryption suite to add.
    EnableTlsv3 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).
    ExclusiveIp 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).
    FocusHttps 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 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).
    HttpPorts List<int>
    The listening port of the HTTP protocol.
    HttpsPorts List<int>
    The listening port of the HTTPS protocol.
    Ipv6Enabled bool
    Whether IPv6 is turned on.
    ProtectionResource string
    The type of protection resource to use.
    TlsVersion 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).
    XffHeaderMode int
    WAF obtains the real IP address of the client.
    XffHeaders List<string>
    Set the list of custom fields used to obtain the client IP address.
    CertId 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).
    CipherSuite 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).
    CustomCiphers []string
    The specific custom encryption suite to add.
    EnableTlsv3 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).
    ExclusiveIp 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).
    FocusHttps 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 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).
    HttpPorts []int
    The listening port of the HTTP protocol.
    HttpsPorts []int
    The listening port of the HTTPS protocol.
    Ipv6Enabled bool
    Whether IPv6 is turned on.
    ProtectionResource string
    The type of protection resource to use.
    TlsVersion 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).
    XffHeaderMode int
    WAF obtains the real IP address of the client.
    XffHeaders []string
    Set the list of custom fields used to obtain the client IP address.
    certId 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).
    cipherSuite 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).
    customCiphers List<String>
    The specific custom encryption suite to add.
    enableTlsv3 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).
    exclusiveIp 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).
    focusHttps 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 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).
    httpPorts List<Integer>
    The listening port of the HTTP protocol.
    httpsPorts List<Integer>
    The listening port of the HTTPS protocol.
    ipv6Enabled Boolean
    Whether IPv6 is turned on.
    protectionResource String
    The type of protection resource to use.
    tlsVersion 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).
    xffHeaderMode Integer
    WAF obtains the real IP address of the client.
    xffHeaders List<String>
    Set the list of custom fields used to obtain the client IP address.
    certId 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).
    cipherSuite 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).
    customCiphers string[]
    The specific custom encryption suite to add.
    enableTlsv3 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).
    exclusiveIp 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).
    focusHttps 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 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).
    httpPorts number[]
    The listening port of the HTTP protocol.
    httpsPorts number[]
    The listening port of the HTTPS protocol.
    ipv6Enabled boolean
    Whether IPv6 is turned on.
    protectionResource string
    The type of protection resource to use.
    tlsVersion 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).
    xffHeaderMode number
    WAF obtains the real IP address of the client.
    xffHeaders string[]
    Set the list of custom fields used to obtain the client IP address.
    cert_id 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 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 Sequence[str]
    The specific custom encryption suite to add.
    enable_tlsv3 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 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 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 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 Sequence[int]
    The listening port of the HTTP protocol.
    https_ports Sequence[int]
    The listening port of the HTTPS protocol.
    ipv6_enabled bool
    Whether IPv6 is turned on.
    protection_resource str
    The type of protection resource to use.
    tls_version 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 int
    WAF obtains the real IP address of the client.
    xff_headers Sequence[str]
    Set the list of custom fields used to obtain the client IP address.
    certId 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).
    cipherSuite 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).
    customCiphers List<String>
    The specific custom encryption suite to add.
    enableTlsv3 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).
    exclusiveIp 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).
    focusHttps 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 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).
    httpPorts List<Number>
    The listening port of the HTTP protocol.
    httpsPorts List<Number>
    The listening port of the HTTPS protocol.
    ipv6Enabled Boolean
    Whether IPv6 is turned on.
    protectionResource String
    The type of protection resource to use.
    tlsVersion 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).
    xffHeaderMode Number
    WAF obtains the real IP address of the client.
    xffHeaders List<String>
    Set the list of custom fields used to obtain the client IP address.

    GetDomainsDomainRedirect

    Backends List<string>
    The IP address of the origin server corresponding to the domain name or the back-to-origin domain name of the server.
    ConnectTimeout int
    Connection timeout, Unit: seconds, value range: 5~120.
    FocusHttpBackend 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 bool
    Open long connection, default true.
    KeepaliveRequests int
    Number of long connections, default: 60. range :60-1000.
    KeepaliveTimeout int
    Long connection over time, default: 15. Range: 1-60.
    Loadbalance string
    The load balancing algorithm used when returning to the source.
    ReadTimeout int
    Read timeout duration. Unit: seconds, Value range: 5~1800.
    RequestHeaders List<Pulumi.AliCloud.Wafv3.Inputs.GetDomainsDomainRedirectRequestHeader>
    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 bool
    Back to Source Retry. default true, retry 3 times by default.
    SniEnabled 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).
    SniHost 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).
    WriteTimeout int
    Write timeout duration. Unit: seconds, Value range:5~1800.
    Backends []string
    The IP address of the origin server corresponding to the domain name or the back-to-origin domain name of the server.
    ConnectTimeout int
    Connection timeout, Unit: seconds, value range: 5~120.
    FocusHttpBackend 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 bool
    Open long connection, default true.
    KeepaliveRequests int
    Number of long connections, default: 60. range :60-1000.
    KeepaliveTimeout int
    Long connection over time, default: 15. Range: 1-60.
    Loadbalance string
    The load balancing algorithm used when returning to the source.
    ReadTimeout int
    Read timeout duration. Unit: seconds, Value range: 5~1800.
    RequestHeaders []GetDomainsDomainRedirectRequestHeader
    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 bool
    Back to Source Retry. default true, retry 3 times by default.
    SniEnabled 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).
    SniHost 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).
    WriteTimeout int
    Write timeout duration. Unit: seconds, Value range:5~1800.
    backends List<String>
    The IP address of the origin server corresponding to the domain name or the back-to-origin domain name of the server.
    connectTimeout Integer
    Connection timeout, Unit: seconds, value range: 5~120.
    focusHttpBackend 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 Boolean
    Open long connection, default true.
    keepaliveRequests Integer
    Number of long connections, default: 60. range :60-1000.
    keepaliveTimeout Integer
    Long connection over time, default: 15. Range: 1-60.
    loadbalance String
    The load balancing algorithm used when returning to the source.
    readTimeout Integer
    Read timeout duration. Unit: seconds, Value range: 5~1800.
    requestHeaders List<GetDomainsDomainRedirectRequestHeader>
    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 Boolean
    Back to Source Retry. default true, retry 3 times by default.
    sniEnabled 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).
    sniHost 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).
    writeTimeout Integer
    Write timeout duration. Unit: seconds, Value range:5~1800.
    backends string[]
    The IP address of the origin server corresponding to the domain name or the back-to-origin domain name of the server.
    connectTimeout number
    Connection timeout, Unit: seconds, value range: 5~120.
    focusHttpBackend 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 boolean
    Open long connection, default true.
    keepaliveRequests number
    Number of long connections, default: 60. range :60-1000.
    keepaliveTimeout number
    Long connection over time, default: 15. Range: 1-60.
    loadbalance string
    The load balancing algorithm used when returning to the source.
    readTimeout number
    Read timeout duration. Unit: seconds, Value range: 5~1800.
    requestHeaders GetDomainsDomainRedirectRequestHeader[]
    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 boolean
    Back to Source Retry. default true, retry 3 times by default.
    sniEnabled 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).
    sniHost 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).
    writeTimeout number
    Write timeout duration. Unit: seconds, Value range:5~1800.
    backends 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 int
    Connection timeout, Unit: seconds, value range: 5~120.
    focus_http_backend 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 bool
    Open long connection, default true.
    keepalive_requests int
    Number of long connections, default: 60. range :60-1000.
    keepalive_timeout int
    Long connection over time, default: 15. Range: 1-60.
    loadbalance str
    The load balancing algorithm used when returning to the source.
    read_timeout int
    Read timeout duration. Unit: seconds, Value range: 5~1800.
    request_headers Sequence[GetDomainsDomainRedirectRequestHeader]
    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 bool
    Back to Source Retry. default true, retry 3 times by default.
    sni_enabled 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 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 int
    Write timeout duration. Unit: seconds, Value range:5~1800.
    backends List<String>
    The IP address of the origin server corresponding to the domain name or the back-to-origin domain name of the server.
    connectTimeout Number
    Connection timeout, Unit: seconds, value range: 5~120.
    focusHttpBackend 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 Boolean
    Open long connection, default true.
    keepaliveRequests Number
    Number of long connections, default: 60. range :60-1000.
    keepaliveTimeout Number
    Long connection over time, default: 15. Range: 1-60.
    loadbalance String
    The load balancing algorithm used when returning to the source.
    readTimeout Number
    Read timeout duration. Unit: seconds, Value range: 5~1800.
    requestHeaders 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 Boolean
    Back to Source Retry. default true, retry 3 times by default.
    sniEnabled 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).
    sniHost 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).
    writeTimeout Number
    Write timeout duration. Unit: seconds, Value range:5~1800.

    GetDomainsDomainRedirectRequestHeader

    Key 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 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 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 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 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 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 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 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 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 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 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 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.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi