1. Packages
  2. Incapsula Provider
  3. API Docs
  4. DataCenter
incapsula 3.32.1 published on Monday, Apr 14, 2025 by imperva

incapsula.DataCenter

Explore with Pulumi AI

incapsula logo
incapsula 3.32.1 published on Monday, Apr 14, 2025 by imperva

    DEPRECATED: incapsula.DataCenter

    This resource has been DEPRECATED. It will be removed in a future version. Please use the current incapsula.DataCentersConfiguration resource instead.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as incapsula from "@pulumi/incapsula";
    
    const example_data_center = new incapsula.DataCenter("example-data-center", {
        siteId: incapsula_site["example-site"].id,
        serverAddress: "8.8.4.4",
        isContent: "true",
    });
    
    import pulumi
    import pulumi_incapsula as incapsula
    
    example_data_center = incapsula.DataCenter("example-data-center",
        site_id=incapsula_site["example-site"]["id"],
        server_address="8.8.4.4",
        is_content="true")
    
    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.NewDataCenter(ctx, "example-data-center", &incapsula.DataCenterArgs{
    			SiteId:        pulumi.Any(incapsula_site.ExampleSite.Id),
    			ServerAddress: pulumi.String("8.8.4.4"),
    			IsContent:     pulumi.String("true"),
    		})
    		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_data_center = new Incapsula.DataCenter("example-data-center", new()
        {
            SiteId = incapsula_site.Example_site.Id,
            ServerAddress = "8.8.4.4",
            IsContent = "true",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.incapsula.DataCenter;
    import com.pulumi.incapsula.DataCenterArgs;
    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_data_center = new DataCenter("example-data-center", DataCenterArgs.builder()
                .siteId(incapsula_site.example-site().id())
                .serverAddress("8.8.4.4")
                .isContent("true")
                .build());
    
        }
    }
    
    resources:
      example-data-center:
        type: incapsula:DataCenter
        properties:
          siteId: ${incapsula_site"example-site"[%!s(MISSING)].id}
          serverAddress: 8.8.4.4
          isContent: 'true'
    

    Create DataCenter Resource

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

    Constructor syntax

    new DataCenter(name: string, args: DataCenterArgs, opts?: CustomResourceOptions);
    @overload
    def DataCenter(resource_name: str,
                   args: DataCenterArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def DataCenter(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   server_address: Optional[str] = None,
                   site_id: Optional[str] = None,
                   data_center_id: Optional[str] = None,
                   is_content: Optional[str] = None,
                   is_enabled: Optional[str] = None,
                   name: Optional[str] = None,
                   timeouts: Optional[DataCenterTimeoutsArgs] = None)
    func NewDataCenter(ctx *Context, name string, args DataCenterArgs, opts ...ResourceOption) (*DataCenter, error)
    public DataCenter(string name, DataCenterArgs args, CustomResourceOptions? opts = null)
    public DataCenter(String name, DataCenterArgs args)
    public DataCenter(String name, DataCenterArgs args, CustomResourceOptions options)
    
    type: incapsula:DataCenter
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

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

    Constructor example

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

    var dataCenterResource = new Incapsula.DataCenter("dataCenterResource", new()
    {
        ServerAddress = "string",
        SiteId = "string",
        DataCenterId = "string",
        IsContent = "string",
        IsEnabled = "string",
        Name = "string",
        Timeouts = new Incapsula.Inputs.DataCenterTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := incapsula.NewDataCenter(ctx, "dataCenterResource", &incapsula.DataCenterArgs{
    	ServerAddress: pulumi.String("string"),
    	SiteId:        pulumi.String("string"),
    	DataCenterId:  pulumi.String("string"),
    	IsContent:     pulumi.String("string"),
    	IsEnabled:     pulumi.String("string"),
    	Name:          pulumi.String("string"),
    	Timeouts: &incapsula.DataCenterTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var dataCenterResource = new DataCenter("dataCenterResource", DataCenterArgs.builder()
        .serverAddress("string")
        .siteId("string")
        .dataCenterId("string")
        .isContent("string")
        .isEnabled("string")
        .name("string")
        .timeouts(DataCenterTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    data_center_resource = incapsula.DataCenter("dataCenterResource",
        server_address="string",
        site_id="string",
        data_center_id="string",
        is_content="string",
        is_enabled="string",
        name="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const dataCenterResource = new incapsula.DataCenter("dataCenterResource", {
        serverAddress: "string",
        siteId: "string",
        dataCenterId: "string",
        isContent: "string",
        isEnabled: "string",
        name: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: incapsula:DataCenter
    properties:
        dataCenterId: string
        isContent: string
        isEnabled: string
        name: string
        serverAddress: string
        siteId: string
        timeouts:
            create: string
            delete: string
            update: string
    

    DataCenter Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DataCenter resource accepts the following input properties:

    ServerAddress string
    The server's address. Possible values: IP, CNAME.
    SiteId string
    Numeric identifier of the site to operate on.
    DataCenterId string
    Unique identifier in the API for the data center.
    IsContent string
    The data center will be available for specific resources (Forward Delivery Rules).
    IsEnabled string
    Enables the data center.
    Name string
    The new data center's name.
    Timeouts DataCenterTimeouts
    ServerAddress string
    The server's address. Possible values: IP, CNAME.
    SiteId string
    Numeric identifier of the site to operate on.
    DataCenterId string
    Unique identifier in the API for the data center.
    IsContent string
    The data center will be available for specific resources (Forward Delivery Rules).
    IsEnabled string
    Enables the data center.
    Name string
    The new data center's name.
    Timeouts DataCenterTimeoutsArgs
    serverAddress String
    The server's address. Possible values: IP, CNAME.
    siteId String
    Numeric identifier of the site to operate on.
    dataCenterId String
    Unique identifier in the API for the data center.
    isContent String
    The data center will be available for specific resources (Forward Delivery Rules).
    isEnabled String
    Enables the data center.
    name String
    The new data center's name.
    timeouts DataCenterTimeouts
    serverAddress string
    The server's address. Possible values: IP, CNAME.
    siteId string
    Numeric identifier of the site to operate on.
    dataCenterId string
    Unique identifier in the API for the data center.
    isContent string
    The data center will be available for specific resources (Forward Delivery Rules).
    isEnabled string
    Enables the data center.
    name string
    The new data center's name.
    timeouts DataCenterTimeouts
    server_address str
    The server's address. Possible values: IP, CNAME.
    site_id str
    Numeric identifier of the site to operate on.
    data_center_id str
    Unique identifier in the API for the data center.
    is_content str
    The data center will be available for specific resources (Forward Delivery Rules).
    is_enabled str
    Enables the data center.
    name str
    The new data center's name.
    timeouts DataCenterTimeoutsArgs
    serverAddress String
    The server's address. Possible values: IP, CNAME.
    siteId String
    Numeric identifier of the site to operate on.
    dataCenterId String
    Unique identifier in the API for the data center.
    isContent String
    The data center will be available for specific resources (Forward Delivery Rules).
    isEnabled String
    Enables the data center.
    name String
    The new data center's name.
    timeouts Property Map

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DataCenter Resource

    Get an existing DataCenter resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: DataCenterState, opts?: CustomResourceOptions): DataCenter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            data_center_id: Optional[str] = None,
            is_content: Optional[str] = None,
            is_enabled: Optional[str] = None,
            name: Optional[str] = None,
            server_address: Optional[str] = None,
            site_id: Optional[str] = None,
            timeouts: Optional[DataCenterTimeoutsArgs] = None) -> DataCenter
    func GetDataCenter(ctx *Context, name string, id IDInput, state *DataCenterState, opts ...ResourceOption) (*DataCenter, error)
    public static DataCenter Get(string name, Input<string> id, DataCenterState? state, CustomResourceOptions? opts = null)
    public static DataCenter get(String name, Output<String> id, DataCenterState state, CustomResourceOptions options)
    resources:  _:    type: incapsula:DataCenter    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    DataCenterId string
    Unique identifier in the API for the data center.
    IsContent string
    The data center will be available for specific resources (Forward Delivery Rules).
    IsEnabled string
    Enables the data center.
    Name string
    The new data center's name.
    ServerAddress string
    The server's address. Possible values: IP, CNAME.
    SiteId string
    Numeric identifier of the site to operate on.
    Timeouts DataCenterTimeouts
    DataCenterId string
    Unique identifier in the API for the data center.
    IsContent string
    The data center will be available for specific resources (Forward Delivery Rules).
    IsEnabled string
    Enables the data center.
    Name string
    The new data center's name.
    ServerAddress string
    The server's address. Possible values: IP, CNAME.
    SiteId string
    Numeric identifier of the site to operate on.
    Timeouts DataCenterTimeoutsArgs
    dataCenterId String
    Unique identifier in the API for the data center.
    isContent String
    The data center will be available for specific resources (Forward Delivery Rules).
    isEnabled String
    Enables the data center.
    name String
    The new data center's name.
    serverAddress String
    The server's address. Possible values: IP, CNAME.
    siteId String
    Numeric identifier of the site to operate on.
    timeouts DataCenterTimeouts
    dataCenterId string
    Unique identifier in the API for the data center.
    isContent string
    The data center will be available for specific resources (Forward Delivery Rules).
    isEnabled string
    Enables the data center.
    name string
    The new data center's name.
    serverAddress string
    The server's address. Possible values: IP, CNAME.
    siteId string
    Numeric identifier of the site to operate on.
    timeouts DataCenterTimeouts
    data_center_id str
    Unique identifier in the API for the data center.
    is_content str
    The data center will be available for specific resources (Forward Delivery Rules).
    is_enabled str
    Enables the data center.
    name str
    The new data center's name.
    server_address str
    The server's address. Possible values: IP, CNAME.
    site_id str
    Numeric identifier of the site to operate on.
    timeouts DataCenterTimeoutsArgs
    dataCenterId String
    Unique identifier in the API for the data center.
    isContent String
    The data center will be available for specific resources (Forward Delivery Rules).
    isEnabled String
    Enables the data center.
    name String
    The new data center's name.
    serverAddress String
    The server's address. Possible values: IP, CNAME.
    siteId String
    Numeric identifier of the site to operate on.
    timeouts Property Map

    Supporting Types

    DataCenterTimeouts, DataCenterTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    Data Center can be imported using the id, e.g.:

    $ pulumi import incapsula:index/dataCenter:DataCenter demo 1234
    

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

    Package Details

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