1. Packages
  2. Incapsula Provider
  3. API Docs
  4. getDataCenter
incapsula 3.33.0 published on Wednesday, Apr 30, 2025 by imperva

incapsula.getDataCenter

Explore with Pulumi AI

incapsula logo
incapsula 3.33.0 published on Wednesday, Apr 30, 2025 by imperva

    Provides filtering of a single Data Center in specific site. Then its id can be referenced by other resources such as incapsula_incap_rule.

    Filtering by site id is mandatory. All other filters are optional. A logical AND is applied on all specified filters.

    Exactly one Data Center must be qualified or an error will be raised.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as incapsula from "@pulumi/incapsula";
    
    const example_two_data_centers_configuration = new incapsula.DataCentersConfiguration("example-two-data-centers-configuration", {
        siteId: incapsula_site["example-site"].id,
        siteTopology: "MULTIPLE_DC",
        dataCenters: [
            {
                name: "AD Forward Rules DC",
                isContent: true,
                originServers: [{
                    address: "55.66.77.123",
                }],
            },
            {
                name: "Main DC",
                originServers: [{
                    address: "54.74.193.120",
                }],
            },
        ],
    });
    const contentDc = incapsula.getDataCenterOutput({
        siteId: example_two_data_centers_configuration.dataCentersConfigurationId,
        filterByIsContent: true,
    });
    // Incap Rule: Forward to Data Center (ADR)
    const example_incap_rule_fwd_to_data_center = new incapsula.IncapRule("example-incap-rule-fwd-to-data-center", {
        siteId: incapsula_site["example-site"].id,
        action: "RULE_ACTION_FORWARD_TO_DC",
        filter: "Full-URL == \"/someurl\"",
        dcId: contentDc.apply(contentDc => contentDc.id),
    });
    
    import pulumi
    import pulumi_incapsula as incapsula
    
    example_two_data_centers_configuration = incapsula.DataCentersConfiguration("example-two-data-centers-configuration",
        site_id=incapsula_site["example-site"]["id"],
        site_topology="MULTIPLE_DC",
        data_centers=[
            {
                "name": "AD Forward Rules DC",
                "is_content": True,
                "origin_servers": [{
                    "address": "55.66.77.123",
                }],
            },
            {
                "name": "Main DC",
                "origin_servers": [{
                    "address": "54.74.193.120",
                }],
            },
        ])
    content_dc = incapsula.get_data_center_output(site_id=example_two_data_centers_configuration.data_centers_configuration_id,
        filter_by_is_content=True)
    # Incap Rule: Forward to Data Center (ADR)
    example_incap_rule_fwd_to_data_center = incapsula.IncapRule("example-incap-rule-fwd-to-data-center",
        site_id=incapsula_site["example-site"]["id"],
        action="RULE_ACTION_FORWARD_TO_DC",
        filter="Full-URL == \"/someurl\"",
        dc_id=content_dc.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/incapsula/v3/incapsula"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example_two_data_centers_configuration, err := incapsula.NewDataCentersConfiguration(ctx, "example-two-data-centers-configuration", &incapsula.DataCentersConfigurationArgs{
    			SiteId:       pulumi.Any(incapsula_site.ExampleSite.Id),
    			SiteTopology: pulumi.String("MULTIPLE_DC"),
    			DataCenters: incapsula.DataCentersConfigurationDataCenterArray{
    				&incapsula.DataCentersConfigurationDataCenterArgs{
    					Name:      pulumi.String("AD Forward Rules DC"),
    					IsContent: pulumi.Bool(true),
    					OriginServers: incapsula.DataCentersConfigurationDataCenterOriginServerArray{
    						&incapsula.DataCentersConfigurationDataCenterOriginServerArgs{
    							Address: pulumi.String("55.66.77.123"),
    						},
    					},
    				},
    				&incapsula.DataCentersConfigurationDataCenterArgs{
    					Name: pulumi.String("Main DC"),
    					OriginServers: incapsula.DataCentersConfigurationDataCenterOriginServerArray{
    						&incapsula.DataCentersConfigurationDataCenterOriginServerArgs{
    							Address: pulumi.String("54.74.193.120"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		contentDc := incapsula.LookupDataCenterOutput(ctx, incapsula.GetDataCenterOutputArgs{
    			SiteId:            example_two_data_centers_configuration.DataCentersConfigurationId,
    			FilterByIsContent: pulumi.Bool(true),
    		}, nil)
    		// Incap Rule: Forward to Data Center (ADR)
    		_, err = incapsula.NewIncapRule(ctx, "example-incap-rule-fwd-to-data-center", &incapsula.IncapRuleArgs{
    			SiteId: pulumi.Any(incapsula_site.ExampleSite.Id),
    			Action: pulumi.String("RULE_ACTION_FORWARD_TO_DC"),
    			Filter: pulumi.String("Full-URL == \"/someurl\""),
    			DcId: pulumi.Float64(contentDc.ApplyT(func(contentDc incapsula.GetDataCenterResult) (*string, error) {
    				return &contentDc.Id, nil
    			}).(pulumi.StringPtrOutput)),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Incapsula = Pulumi.Incapsula;
    
    return await Deployment.RunAsync(() => 
    {
        var example_two_data_centers_configuration = new Incapsula.DataCentersConfiguration("example-two-data-centers-configuration", new()
        {
            SiteId = incapsula_site.Example_site.Id,
            SiteTopology = "MULTIPLE_DC",
            DataCenters = new[]
            {
                new Incapsula.Inputs.DataCentersConfigurationDataCenterArgs
                {
                    Name = "AD Forward Rules DC",
                    IsContent = true,
                    OriginServers = new[]
                    {
                        new Incapsula.Inputs.DataCentersConfigurationDataCenterOriginServerArgs
                        {
                            Address = "55.66.77.123",
                        },
                    },
                },
                new Incapsula.Inputs.DataCentersConfigurationDataCenterArgs
                {
                    Name = "Main DC",
                    OriginServers = new[]
                    {
                        new Incapsula.Inputs.DataCentersConfigurationDataCenterOriginServerArgs
                        {
                            Address = "54.74.193.120",
                        },
                    },
                },
            },
        });
    
        var contentDc = Incapsula.GetDataCenter.Invoke(new()
        {
            SiteId = example_two_data_centers_configuration.DataCentersConfigurationId,
            FilterByIsContent = true,
        });
    
        // Incap Rule: Forward to Data Center (ADR)
        var example_incap_rule_fwd_to_data_center = new Incapsula.IncapRule("example-incap-rule-fwd-to-data-center", new()
        {
            SiteId = incapsula_site.Example_site.Id,
            Action = "RULE_ACTION_FORWARD_TO_DC",
            Filter = "Full-URL == \"/someurl\"",
            DcId = contentDc.Apply(getDataCenterResult => getDataCenterResult.Id),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.incapsula.DataCentersConfiguration;
    import com.pulumi.incapsula.DataCentersConfigurationArgs;
    import com.pulumi.incapsula.inputs.DataCentersConfigurationDataCenterArgs;
    import com.pulumi.incapsula.IncapsulaFunctions;
    import com.pulumi.incapsula.inputs.GetDataCenterArgs;
    import com.pulumi.incapsula.IncapRule;
    import com.pulumi.incapsula.IncapRuleArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example_two_data_centers_configuration = new DataCentersConfiguration("example-two-data-centers-configuration", DataCentersConfigurationArgs.builder()
                .siteId(incapsula_site.example-site().id())
                .siteTopology("MULTIPLE_DC")
                .dataCenters(            
                    DataCentersConfigurationDataCenterArgs.builder()
                        .name("AD Forward Rules DC")
                        .isContent(true)
                        .originServers(DataCentersConfigurationDataCenterOriginServerArgs.builder()
                            .address("55.66.77.123")
                            .build())
                        .build(),
                    DataCentersConfigurationDataCenterArgs.builder()
                        .name("Main DC")
                        .originServers(DataCentersConfigurationDataCenterOriginServerArgs.builder()
                            .address("54.74.193.120")
                            .build())
                        .build())
                .build());
    
            final var contentDc = IncapsulaFunctions.getDataCenter(GetDataCenterArgs.builder()
                .siteId(example_two_data_centers_configuration.dataCentersConfigurationId())
                .filterByIsContent(true)
                .build());
    
            // Incap Rule: Forward to Data Center (ADR)
            var example_incap_rule_fwd_to_data_center = new IncapRule("example-incap-rule-fwd-to-data-center", IncapRuleArgs.builder()
                .siteId(incapsula_site.example-site().id())
                .action("RULE_ACTION_FORWARD_TO_DC")
                .filter("Full-URL == \"/someurl\"")
                .dcId(contentDc.applyValue(getDataCenterResult -> getDataCenterResult).applyValue(contentDc -> contentDc.applyValue(getDataCenterResult -> getDataCenterResult.id())))
                .build());
    
        }
    }
    
    resources:
      example-two-data-centers-configuration:
        type: incapsula:DataCentersConfiguration
        properties:
          siteId: ${incapsula_site"example-site"[%!s(MISSING)].id}
          siteTopology: MULTIPLE_DC
          dataCenters:
            - name: AD Forward Rules DC
              isContent: true
              originServers:
                - address: 55.66.77.123
            - name: Main DC
              originServers:
                - address: 54.74.193.120
      # Incap Rule: Forward to Data Center (ADR)
      example-incap-rule-fwd-to-data-center:
        type: incapsula:IncapRule
        properties:
          siteId: ${incapsula_site"example-site"[%!s(MISSING)].id}
          action: RULE_ACTION_FORWARD_TO_DC
          filter: Full-URL == "/someurl"
          dcId: ${contentDc.id}
    variables:
      contentDc:
        fn::invoke:
          function: incapsula:getDataCenter
          arguments:
            siteId: ${["example-two-data-centers-configuration"].dataCentersConfigurationId}
            filterByIsContent: true
    

    If more than one content Data Center is defined for the site, you may add filters. E.g.

    import * as pulumi from "@pulumi/pulumi";
    import * as incapsula from "@pulumi/incapsula";
    
    const contentDc = incapsula.getDataCenter({
        siteId: incapsula_data_centers_configuration["example-two-data-centers-configuration"].id,
        filterByIsContent: true,
        filterByName: "AD Forward Rules DC",
    });
    
    import pulumi
    import pulumi_incapsula as incapsula
    
    content_dc = incapsula.get_data_center(site_id=incapsula_data_centers_configuration["example-two-data-centers-configuration"]["id"],
        filter_by_is_content=True,
        filter_by_name="AD Forward Rules DC")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/incapsula/v3/incapsula"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := incapsula.LookupDataCenter(ctx, &incapsula.LookupDataCenterArgs{
    			SiteId:            incapsula_data_centers_configuration.ExampleTwoDataCentersConfiguration.Id,
    			FilterByIsContent: pulumi.BoolRef(true),
    			FilterByName:      pulumi.StringRef("AD Forward Rules DC"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Incapsula = Pulumi.Incapsula;
    
    return await Deployment.RunAsync(() => 
    {
        var contentDc = Incapsula.GetDataCenter.Invoke(new()
        {
            SiteId = incapsula_data_centers_configuration.Example_two_data_centers_configuration.Id,
            FilterByIsContent = true,
            FilterByName = "AD Forward Rules DC",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.incapsula.IncapsulaFunctions;
    import com.pulumi.incapsula.inputs.GetDataCenterArgs;
    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 contentDc = IncapsulaFunctions.getDataCenter(GetDataCenterArgs.builder()
                .siteId(incapsula_data_centers_configuration.example-two-data-centers-configuration().id())
                .filterByIsContent(true)
                .filterByName("AD Forward Rules DC")
                .build());
    
        }
    }
    
    variables:
      contentDc:
        fn::invoke:
          function: incapsula:getDataCenter
          arguments:
            siteId: ${incapsula_data_centers_configuration"example-two-data-centers-configuration"[%!s(MISSING)].id}
            filterByIsContent: true
            filterByName: AD Forward Rules DC
    

    Using getDataCenter

    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 getDataCenter(args: GetDataCenterArgs, opts?: InvokeOptions): Promise<GetDataCenterResult>
    function getDataCenterOutput(args: GetDataCenterOutputArgs, opts?: InvokeOptions): Output<GetDataCenterResult>
    def get_data_center(filter_by_geo_location: Optional[str] = None,
                        filter_by_id: Optional[float] = None,
                        filter_by_is_active: Optional[bool] = None,
                        filter_by_is_content: Optional[bool] = None,
                        filter_by_is_enabled: Optional[bool] = None,
                        filter_by_is_rest_of_the_world: Optional[bool] = None,
                        filter_by_is_standby: Optional[bool] = None,
                        filter_by_name: Optional[str] = None,
                        id: Optional[str] = None,
                        site_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetDataCenterResult
    def get_data_center_output(filter_by_geo_location: Optional[pulumi.Input[str]] = None,
                        filter_by_id: Optional[pulumi.Input[float]] = None,
                        filter_by_is_active: Optional[pulumi.Input[bool]] = None,
                        filter_by_is_content: Optional[pulumi.Input[bool]] = None,
                        filter_by_is_enabled: Optional[pulumi.Input[bool]] = None,
                        filter_by_is_rest_of_the_world: Optional[pulumi.Input[bool]] = None,
                        filter_by_is_standby: Optional[pulumi.Input[bool]] = None,
                        filter_by_name: Optional[pulumi.Input[str]] = None,
                        id: Optional[pulumi.Input[str]] = None,
                        site_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetDataCenterResult]
    func LookupDataCenter(ctx *Context, args *LookupDataCenterArgs, opts ...InvokeOption) (*LookupDataCenterResult, error)
    func LookupDataCenterOutput(ctx *Context, args *LookupDataCenterOutputArgs, opts ...InvokeOption) LookupDataCenterResultOutput

    > Note: This function is named LookupDataCenter in the Go SDK.

    public static class GetDataCenter 
    {
        public static Task<GetDataCenterResult> InvokeAsync(GetDataCenterArgs args, InvokeOptions? opts = null)
        public static Output<GetDataCenterResult> Invoke(GetDataCenterInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDataCenterResult> getDataCenter(GetDataCenterArgs args, InvokeOptions options)
    public static Output<GetDataCenterResult> getDataCenter(GetDataCenterArgs args, InvokeOptions options)
    
    fn::invoke:
      function: incapsula:index/getDataCenter:getDataCenter
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SiteId string
    Reference to resource incapsula_data_centers_configuration.resource_name.id
    FilterByGeoLocation string

    string value - One of: EUROPE, AUSTRALIA, US_EAST, US_WEST, AFRICA, ASIA, SOUTH_AMERICA, NORTH_AMERICA. If no DC is assigned to handle traffic from the specified region, then qualify the the single rest-of-the-world DC,

    The five boolean filters accept true value only. To get the standby Data Center: use filter_by_is_standby = true (instead of filter_by_is_active = false which will be ignored).

    FilterById double
    Filters by the numeric unique internal Data Center id.
    FilterByIsActive bool
    boolean value - Filters by is_active == true.
    FilterByIsContent bool
    boolean value - Filters by is_content. True value will provide the single content DC (handles only traffic routed by AD forward-to-dc rule).
    FilterByIsEnabled bool
    boolean value - Filters by is_enabled.
    FilterByIsRestOfTheWorld bool
    boolean value - Filters by is_rest_of_the_world. True value will provide the single rest-of-the-world DC.
    FilterByIsStandby bool
    boolean value - Filters by is_active == false.
    FilterByName string
    string value - Filters by Data Center name. DC Name is unique per Site.
    Id string
    Unique identifier in the API for the qualified data center.
    SiteId string
    Reference to resource incapsula_data_centers_configuration.resource_name.id
    FilterByGeoLocation string

    string value - One of: EUROPE, AUSTRALIA, US_EAST, US_WEST, AFRICA, ASIA, SOUTH_AMERICA, NORTH_AMERICA. If no DC is assigned to handle traffic from the specified region, then qualify the the single rest-of-the-world DC,

    The five boolean filters accept true value only. To get the standby Data Center: use filter_by_is_standby = true (instead of filter_by_is_active = false which will be ignored).

    FilterById float64
    Filters by the numeric unique internal Data Center id.
    FilterByIsActive bool
    boolean value - Filters by is_active == true.
    FilterByIsContent bool
    boolean value - Filters by is_content. True value will provide the single content DC (handles only traffic routed by AD forward-to-dc rule).
    FilterByIsEnabled bool
    boolean value - Filters by is_enabled.
    FilterByIsRestOfTheWorld bool
    boolean value - Filters by is_rest_of_the_world. True value will provide the single rest-of-the-world DC.
    FilterByIsStandby bool
    boolean value - Filters by is_active == false.
    FilterByName string
    string value - Filters by Data Center name. DC Name is unique per Site.
    Id string
    Unique identifier in the API for the qualified data center.
    siteId String
    Reference to resource incapsula_data_centers_configuration.resource_name.id
    filterByGeoLocation String

    string value - One of: EUROPE, AUSTRALIA, US_EAST, US_WEST, AFRICA, ASIA, SOUTH_AMERICA, NORTH_AMERICA. If no DC is assigned to handle traffic from the specified region, then qualify the the single rest-of-the-world DC,

    The five boolean filters accept true value only. To get the standby Data Center: use filter_by_is_standby = true (instead of filter_by_is_active = false which will be ignored).

    filterById Double
    Filters by the numeric unique internal Data Center id.
    filterByIsActive Boolean
    boolean value - Filters by is_active == true.
    filterByIsContent Boolean
    boolean value - Filters by is_content. True value will provide the single content DC (handles only traffic routed by AD forward-to-dc rule).
    filterByIsEnabled Boolean
    boolean value - Filters by is_enabled.
    filterByIsRestOfTheWorld Boolean
    boolean value - Filters by is_rest_of_the_world. True value will provide the single rest-of-the-world DC.
    filterByIsStandby Boolean
    boolean value - Filters by is_active == false.
    filterByName String
    string value - Filters by Data Center name. DC Name is unique per Site.
    id String
    Unique identifier in the API for the qualified data center.
    siteId string
    Reference to resource incapsula_data_centers_configuration.resource_name.id
    filterByGeoLocation string

    string value - One of: EUROPE, AUSTRALIA, US_EAST, US_WEST, AFRICA, ASIA, SOUTH_AMERICA, NORTH_AMERICA. If no DC is assigned to handle traffic from the specified region, then qualify the the single rest-of-the-world DC,

    The five boolean filters accept true value only. To get the standby Data Center: use filter_by_is_standby = true (instead of filter_by_is_active = false which will be ignored).

    filterById number
    Filters by the numeric unique internal Data Center id.
    filterByIsActive boolean
    boolean value - Filters by is_active == true.
    filterByIsContent boolean
    boolean value - Filters by is_content. True value will provide the single content DC (handles only traffic routed by AD forward-to-dc rule).
    filterByIsEnabled boolean
    boolean value - Filters by is_enabled.
    filterByIsRestOfTheWorld boolean
    boolean value - Filters by is_rest_of_the_world. True value will provide the single rest-of-the-world DC.
    filterByIsStandby boolean
    boolean value - Filters by is_active == false.
    filterByName string
    string value - Filters by Data Center name. DC Name is unique per Site.
    id string
    Unique identifier in the API for the qualified data center.
    site_id str
    Reference to resource incapsula_data_centers_configuration.resource_name.id
    filter_by_geo_location str

    string value - One of: EUROPE, AUSTRALIA, US_EAST, US_WEST, AFRICA, ASIA, SOUTH_AMERICA, NORTH_AMERICA. If no DC is assigned to handle traffic from the specified region, then qualify the the single rest-of-the-world DC,

    The five boolean filters accept true value only. To get the standby Data Center: use filter_by_is_standby = true (instead of filter_by_is_active = false which will be ignored).

    filter_by_id float
    Filters by the numeric unique internal Data Center id.
    filter_by_is_active bool
    boolean value - Filters by is_active == true.
    filter_by_is_content bool
    boolean value - Filters by is_content. True value will provide the single content DC (handles only traffic routed by AD forward-to-dc rule).
    filter_by_is_enabled bool
    boolean value - Filters by is_enabled.
    filter_by_is_rest_of_the_world bool
    boolean value - Filters by is_rest_of_the_world. True value will provide the single rest-of-the-world DC.
    filter_by_is_standby bool
    boolean value - Filters by is_active == false.
    filter_by_name str
    string value - Filters by Data Center name. DC Name is unique per Site.
    id str
    Unique identifier in the API for the qualified data center.
    siteId String
    Reference to resource incapsula_data_centers_configuration.resource_name.id
    filterByGeoLocation String

    string value - One of: EUROPE, AUSTRALIA, US_EAST, US_WEST, AFRICA, ASIA, SOUTH_AMERICA, NORTH_AMERICA. If no DC is assigned to handle traffic from the specified region, then qualify the the single rest-of-the-world DC,

    The five boolean filters accept true value only. To get the standby Data Center: use filter_by_is_standby = true (instead of filter_by_is_active = false which will be ignored).

    filterById Number
    Filters by the numeric unique internal Data Center id.
    filterByIsActive Boolean
    boolean value - Filters by is_active == true.
    filterByIsContent Boolean
    boolean value - Filters by is_content. True value will provide the single content DC (handles only traffic routed by AD forward-to-dc rule).
    filterByIsEnabled Boolean
    boolean value - Filters by is_enabled.
    filterByIsRestOfTheWorld Boolean
    boolean value - Filters by is_rest_of_the_world. True value will provide the single rest-of-the-world DC.
    filterByIsStandby Boolean
    boolean value - Filters by is_active == false.
    filterByName String
    string value - Filters by Data Center name. DC Name is unique per Site.
    id String
    Unique identifier in the API for the qualified data center.

    getDataCenter Result

    The following output properties are available:

    GeoLocations string
    Comma separated list of geo regions that this data center will serve. Populated only when Site's LB algorithm is GEO_PREFERRED or GEO_REQUIRED. E.g. "ASIA,AFRICA". Allowed regions: EUROPE, AUSTRALIA, US_EAST, US_WEST, AFRICA, ASIA, SOUTH_AMERICA, NORTH_AMERICA.
    Id string
    Unique identifier in the API for the qualified data center.
    IpMode string
    One of: SINGLE_IP, MULTIPLE_IP.
    IsActive bool
    When true, this Data Center is active. When false, this Data center will Standby.
    IsContent bool
    When true, this Data Center will only serve requests that were routed using AD Forward rules.
    IsEnabled bool
    When true, this Data Center is enabled. I.e. can serve requests.
    IsRestOfTheWorld bool
    When true and Site's LB algorithm = GEO_PREFERRED or GEO_REQUIRED, this data center will handle traffic from any region that is not assigned to a specific data center.
    LbAlgorithm string
    How to load balance between the servers of this data center. One of: LB_LEAST_PENDING_REQUESTS, LB_LEAST_OPEN_CONNECTIONS, LB_SOURCE_IP_HASH, RANDOM, WEIGHTED.
    Name string
    Data Center Name.
    OriginPop string
    (Optional) The ID of the PoP that serves as an access point between Imperva and the customer’s origin server. E.g. "lax", for Los Angeles. When not specified, all Imperva PoPs can send traffic to this data center. The list of available PoPs is documented at: https://docs.imperva.com/bundle/cloud-application-security/page/more/pops.htm.
    SiteId string
    Weight double
    The weight in percentage of this Data Center. Populated only when Site's LB algorithm is WEIGHTED_LB.
    FilterByGeoLocation string
    FilterById double
    FilterByIsActive bool
    FilterByIsContent bool
    FilterByIsEnabled bool
    FilterByIsRestOfTheWorld bool
    FilterByIsStandby bool
    FilterByName string
    GeoLocations string
    Comma separated list of geo regions that this data center will serve. Populated only when Site's LB algorithm is GEO_PREFERRED or GEO_REQUIRED. E.g. "ASIA,AFRICA". Allowed regions: EUROPE, AUSTRALIA, US_EAST, US_WEST, AFRICA, ASIA, SOUTH_AMERICA, NORTH_AMERICA.
    Id string
    Unique identifier in the API for the qualified data center.
    IpMode string
    One of: SINGLE_IP, MULTIPLE_IP.
    IsActive bool
    When true, this Data Center is active. When false, this Data center will Standby.
    IsContent bool
    When true, this Data Center will only serve requests that were routed using AD Forward rules.
    IsEnabled bool
    When true, this Data Center is enabled. I.e. can serve requests.
    IsRestOfTheWorld bool
    When true and Site's LB algorithm = GEO_PREFERRED or GEO_REQUIRED, this data center will handle traffic from any region that is not assigned to a specific data center.
    LbAlgorithm string
    How to load balance between the servers of this data center. One of: LB_LEAST_PENDING_REQUESTS, LB_LEAST_OPEN_CONNECTIONS, LB_SOURCE_IP_HASH, RANDOM, WEIGHTED.
    Name string
    Data Center Name.
    OriginPop string
    (Optional) The ID of the PoP that serves as an access point between Imperva and the customer’s origin server. E.g. "lax", for Los Angeles. When not specified, all Imperva PoPs can send traffic to this data center. The list of available PoPs is documented at: https://docs.imperva.com/bundle/cloud-application-security/page/more/pops.htm.
    SiteId string
    Weight float64
    The weight in percentage of this Data Center. Populated only when Site's LB algorithm is WEIGHTED_LB.
    FilterByGeoLocation string
    FilterById float64
    FilterByIsActive bool
    FilterByIsContent bool
    FilterByIsEnabled bool
    FilterByIsRestOfTheWorld bool
    FilterByIsStandby bool
    FilterByName string
    geoLocations String
    Comma separated list of geo regions that this data center will serve. Populated only when Site's LB algorithm is GEO_PREFERRED or GEO_REQUIRED. E.g. "ASIA,AFRICA". Allowed regions: EUROPE, AUSTRALIA, US_EAST, US_WEST, AFRICA, ASIA, SOUTH_AMERICA, NORTH_AMERICA.
    id String
    Unique identifier in the API for the qualified data center.
    ipMode String
    One of: SINGLE_IP, MULTIPLE_IP.
    isActive Boolean
    When true, this Data Center is active. When false, this Data center will Standby.
    isContent Boolean
    When true, this Data Center will only serve requests that were routed using AD Forward rules.
    isEnabled Boolean
    When true, this Data Center is enabled. I.e. can serve requests.
    isRestOfTheWorld Boolean
    When true and Site's LB algorithm = GEO_PREFERRED or GEO_REQUIRED, this data center will handle traffic from any region that is not assigned to a specific data center.
    lbAlgorithm String
    How to load balance between the servers of this data center. One of: LB_LEAST_PENDING_REQUESTS, LB_LEAST_OPEN_CONNECTIONS, LB_SOURCE_IP_HASH, RANDOM, WEIGHTED.
    name String
    Data Center Name.
    originPop String
    (Optional) The ID of the PoP that serves as an access point between Imperva and the customer’s origin server. E.g. "lax", for Los Angeles. When not specified, all Imperva PoPs can send traffic to this data center. The list of available PoPs is documented at: https://docs.imperva.com/bundle/cloud-application-security/page/more/pops.htm.
    siteId String
    weight Double
    The weight in percentage of this Data Center. Populated only when Site's LB algorithm is WEIGHTED_LB.
    filterByGeoLocation String
    filterById Double
    filterByIsActive Boolean
    filterByIsContent Boolean
    filterByIsEnabled Boolean
    filterByIsRestOfTheWorld Boolean
    filterByIsStandby Boolean
    filterByName String
    geoLocations string
    Comma separated list of geo regions that this data center will serve. Populated only when Site's LB algorithm is GEO_PREFERRED or GEO_REQUIRED. E.g. "ASIA,AFRICA". Allowed regions: EUROPE, AUSTRALIA, US_EAST, US_WEST, AFRICA, ASIA, SOUTH_AMERICA, NORTH_AMERICA.
    id string
    Unique identifier in the API for the qualified data center.
    ipMode string
    One of: SINGLE_IP, MULTIPLE_IP.
    isActive boolean
    When true, this Data Center is active. When false, this Data center will Standby.
    isContent boolean
    When true, this Data Center will only serve requests that were routed using AD Forward rules.
    isEnabled boolean
    When true, this Data Center is enabled. I.e. can serve requests.
    isRestOfTheWorld boolean
    When true and Site's LB algorithm = GEO_PREFERRED or GEO_REQUIRED, this data center will handle traffic from any region that is not assigned to a specific data center.
    lbAlgorithm string
    How to load balance between the servers of this data center. One of: LB_LEAST_PENDING_REQUESTS, LB_LEAST_OPEN_CONNECTIONS, LB_SOURCE_IP_HASH, RANDOM, WEIGHTED.
    name string
    Data Center Name.
    originPop string
    (Optional) The ID of the PoP that serves as an access point between Imperva and the customer’s origin server. E.g. "lax", for Los Angeles. When not specified, all Imperva PoPs can send traffic to this data center. The list of available PoPs is documented at: https://docs.imperva.com/bundle/cloud-application-security/page/more/pops.htm.
    siteId string
    weight number
    The weight in percentage of this Data Center. Populated only when Site's LB algorithm is WEIGHTED_LB.
    filterByGeoLocation string
    filterById number
    filterByIsActive boolean
    filterByIsContent boolean
    filterByIsEnabled boolean
    filterByIsRestOfTheWorld boolean
    filterByIsStandby boolean
    filterByName string
    geo_locations str
    Comma separated list of geo regions that this data center will serve. Populated only when Site's LB algorithm is GEO_PREFERRED or GEO_REQUIRED. E.g. "ASIA,AFRICA". Allowed regions: EUROPE, AUSTRALIA, US_EAST, US_WEST, AFRICA, ASIA, SOUTH_AMERICA, NORTH_AMERICA.
    id str
    Unique identifier in the API for the qualified data center.
    ip_mode str
    One of: SINGLE_IP, MULTIPLE_IP.
    is_active bool
    When true, this Data Center is active. When false, this Data center will Standby.
    is_content bool
    When true, this Data Center will only serve requests that were routed using AD Forward rules.
    is_enabled bool
    When true, this Data Center is enabled. I.e. can serve requests.
    is_rest_of_the_world bool
    When true and Site's LB algorithm = GEO_PREFERRED or GEO_REQUIRED, this data center will handle traffic from any region that is not assigned to a specific data center.
    lb_algorithm str
    How to load balance between the servers of this data center. One of: LB_LEAST_PENDING_REQUESTS, LB_LEAST_OPEN_CONNECTIONS, LB_SOURCE_IP_HASH, RANDOM, WEIGHTED.
    name str
    Data Center Name.
    origin_pop str
    (Optional) The ID of the PoP that serves as an access point between Imperva and the customer’s origin server. E.g. "lax", for Los Angeles. When not specified, all Imperva PoPs can send traffic to this data center. The list of available PoPs is documented at: https://docs.imperva.com/bundle/cloud-application-security/page/more/pops.htm.
    site_id str
    weight float
    The weight in percentage of this Data Center. Populated only when Site's LB algorithm is WEIGHTED_LB.
    filter_by_geo_location str
    filter_by_id float
    filter_by_is_active bool
    filter_by_is_content bool
    filter_by_is_enabled bool
    filter_by_is_rest_of_the_world bool
    filter_by_is_standby bool
    filter_by_name str
    geoLocations String
    Comma separated list of geo regions that this data center will serve. Populated only when Site's LB algorithm is GEO_PREFERRED or GEO_REQUIRED. E.g. "ASIA,AFRICA". Allowed regions: EUROPE, AUSTRALIA, US_EAST, US_WEST, AFRICA, ASIA, SOUTH_AMERICA, NORTH_AMERICA.
    id String
    Unique identifier in the API for the qualified data center.
    ipMode String
    One of: SINGLE_IP, MULTIPLE_IP.
    isActive Boolean
    When true, this Data Center is active. When false, this Data center will Standby.
    isContent Boolean
    When true, this Data Center will only serve requests that were routed using AD Forward rules.
    isEnabled Boolean
    When true, this Data Center is enabled. I.e. can serve requests.
    isRestOfTheWorld Boolean
    When true and Site's LB algorithm = GEO_PREFERRED or GEO_REQUIRED, this data center will handle traffic from any region that is not assigned to a specific data center.
    lbAlgorithm String
    How to load balance between the servers of this data center. One of: LB_LEAST_PENDING_REQUESTS, LB_LEAST_OPEN_CONNECTIONS, LB_SOURCE_IP_HASH, RANDOM, WEIGHTED.
    name String
    Data Center Name.
    originPop String
    (Optional) The ID of the PoP that serves as an access point between Imperva and the customer’s origin server. E.g. "lax", for Los Angeles. When not specified, all Imperva PoPs can send traffic to this data center. The list of available PoPs is documented at: https://docs.imperva.com/bundle/cloud-application-security/page/more/pops.htm.
    siteId String
    weight Number
    The weight in percentage of this Data Center. Populated only when Site's LB algorithm is WEIGHTED_LB.
    filterByGeoLocation String
    filterById Number
    filterByIsActive Boolean
    filterByIsContent Boolean
    filterByIsEnabled Boolean
    filterByIsRestOfTheWorld Boolean
    filterByIsStandby Boolean
    filterByName String

    Package Details

    Repository
    incapsula imperva/terraform-provider-incapsula
    License
    Notes
    This Pulumi package is based on the incapsula Terraform Provider.
    incapsula logo
    incapsula 3.33.0 published on Wednesday, Apr 30, 2025 by imperva