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

incapsula.DataCenterServer

Explore with Pulumi AI

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

    DEPRECATED: incapsula.DataCenterServer

    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_server = new incapsula.DataCenterServer("example-data-center-server", {
        dcId: incapsula_data_center["example-data-center"].id,
        siteId: incapsula_site["example-site"].id,
        serverAddress: "4.4.4.4",
        isEnabled: "true",
    });
    
    import pulumi
    import pulumi_incapsula as incapsula
    
    example_data_center_server = incapsula.DataCenterServer("example-data-center-server",
        dc_id=incapsula_data_center["example-data-center"]["id"],
        site_id=incapsula_site["example-site"]["id"],
        server_address="4.4.4.4",
        is_enabled="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.NewDataCenterServer(ctx, "example-data-center-server", &incapsula.DataCenterServerArgs{
    			DcId:          pulumi.Any(incapsula_data_center.ExampleDataCenter.Id),
    			SiteId:        pulumi.Any(incapsula_site.ExampleSite.Id),
    			ServerAddress: pulumi.String("4.4.4.4"),
    			IsEnabled:     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_server = new Incapsula.DataCenterServer("example-data-center-server", new()
        {
            DcId = incapsula_data_center.Example_data_center.Id,
            SiteId = incapsula_site.Example_site.Id,
            ServerAddress = "4.4.4.4",
            IsEnabled = "true",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.incapsula.DataCenterServer;
    import com.pulumi.incapsula.DataCenterServerArgs;
    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_server = new DataCenterServer("example-data-center-server", DataCenterServerArgs.builder()
                .dcId(incapsula_data_center.example-data-center().id())
                .siteId(incapsula_site.example-site().id())
                .serverAddress("4.4.4.4")
                .isEnabled("true")
                .build());
    
        }
    }
    
    resources:
      example-data-center-server:
        type: incapsula:DataCenterServer
        properties:
          dcId: ${incapsula_data_center"example-data-center"[%!s(MISSING)].id}
          siteId: ${incapsula_site"example-site"[%!s(MISSING)].id}
          serverAddress: 4.4.4.4
          isEnabled: 'true'
    

    Create DataCenterServer Resource

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

    Constructor syntax

    new DataCenterServer(name: string, args: DataCenterServerArgs, opts?: CustomResourceOptions);
    @overload
    def DataCenterServer(resource_name: str,
                         args: DataCenterServerArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def DataCenterServer(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         dc_id: Optional[str] = None,
                         site_id: Optional[str] = None,
                         data_center_server_id: Optional[str] = None,
                         is_enabled: Optional[str] = None,
                         is_standby: Optional[str] = None,
                         server_address: Optional[str] = None)
    func NewDataCenterServer(ctx *Context, name string, args DataCenterServerArgs, opts ...ResourceOption) (*DataCenterServer, error)
    public DataCenterServer(string name, DataCenterServerArgs args, CustomResourceOptions? opts = null)
    public DataCenterServer(String name, DataCenterServerArgs args)
    public DataCenterServer(String name, DataCenterServerArgs args, CustomResourceOptions options)
    
    type: incapsula:DataCenterServer
    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 DataCenterServerArgs
    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 DataCenterServerArgs
    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 DataCenterServerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DataCenterServerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DataCenterServerArgs
    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 dataCenterServerResource = new Incapsula.DataCenterServer("dataCenterServerResource", new()
    {
        DcId = "string",
        SiteId = "string",
        DataCenterServerId = "string",
        IsEnabled = "string",
        IsStandby = "string",
        ServerAddress = "string",
    });
    
    example, err := incapsula.NewDataCenterServer(ctx, "dataCenterServerResource", &incapsula.DataCenterServerArgs{
    	DcId:               pulumi.String("string"),
    	SiteId:             pulumi.String("string"),
    	DataCenterServerId: pulumi.String("string"),
    	IsEnabled:          pulumi.String("string"),
    	IsStandby:          pulumi.String("string"),
    	ServerAddress:      pulumi.String("string"),
    })
    
    var dataCenterServerResource = new DataCenterServer("dataCenterServerResource", DataCenterServerArgs.builder()
        .dcId("string")
        .siteId("string")
        .dataCenterServerId("string")
        .isEnabled("string")
        .isStandby("string")
        .serverAddress("string")
        .build());
    
    data_center_server_resource = incapsula.DataCenterServer("dataCenterServerResource",
        dc_id="string",
        site_id="string",
        data_center_server_id="string",
        is_enabled="string",
        is_standby="string",
        server_address="string")
    
    const dataCenterServerResource = new incapsula.DataCenterServer("dataCenterServerResource", {
        dcId: "string",
        siteId: "string",
        dataCenterServerId: "string",
        isEnabled: "string",
        isStandby: "string",
        serverAddress: "string",
    });
    
    type: incapsula:DataCenterServer
    properties:
        dataCenterServerId: string
        dcId: string
        isEnabled: string
        isStandby: string
        serverAddress: string
        siteId: string
    

    DataCenterServer 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 DataCenterServer resource accepts the following input properties:

    DcId string
    Numeric identifier of the data center server to operate on.
    SiteId string
    Numeric identifier of the site to operate on.
    DataCenterServerId string
    Unique identifier in the API for the data center server.
    IsEnabled string
    Enables the data center server.
    IsStandby string
    Set the server as Active (P0) or Standby (P1).
    ServerAddress string
    The server's address.
    DcId string
    Numeric identifier of the data center server to operate on.
    SiteId string
    Numeric identifier of the site to operate on.
    DataCenterServerId string
    Unique identifier in the API for the data center server.
    IsEnabled string
    Enables the data center server.
    IsStandby string
    Set the server as Active (P0) or Standby (P1).
    ServerAddress string
    The server's address.
    dcId String
    Numeric identifier of the data center server to operate on.
    siteId String
    Numeric identifier of the site to operate on.
    dataCenterServerId String
    Unique identifier in the API for the data center server.
    isEnabled String
    Enables the data center server.
    isStandby String
    Set the server as Active (P0) or Standby (P1).
    serverAddress String
    The server's address.
    dcId string
    Numeric identifier of the data center server to operate on.
    siteId string
    Numeric identifier of the site to operate on.
    dataCenterServerId string
    Unique identifier in the API for the data center server.
    isEnabled string
    Enables the data center server.
    isStandby string
    Set the server as Active (P0) or Standby (P1).
    serverAddress string
    The server's address.
    dc_id str
    Numeric identifier of the data center server to operate on.
    site_id str
    Numeric identifier of the site to operate on.
    data_center_server_id str
    Unique identifier in the API for the data center server.
    is_enabled str
    Enables the data center server.
    is_standby str
    Set the server as Active (P0) or Standby (P1).
    server_address str
    The server's address.
    dcId String
    Numeric identifier of the data center server to operate on.
    siteId String
    Numeric identifier of the site to operate on.
    dataCenterServerId String
    Unique identifier in the API for the data center server.
    isEnabled String
    Enables the data center server.
    isStandby String
    Set the server as Active (P0) or Standby (P1).
    serverAddress String
    The server's address.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DataCenterServer 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 DataCenterServer Resource

    Get an existing DataCenterServer 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?: DataCenterServerState, opts?: CustomResourceOptions): DataCenterServer
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            data_center_server_id: Optional[str] = None,
            dc_id: Optional[str] = None,
            is_enabled: Optional[str] = None,
            is_standby: Optional[str] = None,
            server_address: Optional[str] = None,
            site_id: Optional[str] = None) -> DataCenterServer
    func GetDataCenterServer(ctx *Context, name string, id IDInput, state *DataCenterServerState, opts ...ResourceOption) (*DataCenterServer, error)
    public static DataCenterServer Get(string name, Input<string> id, DataCenterServerState? state, CustomResourceOptions? opts = null)
    public static DataCenterServer get(String name, Output<String> id, DataCenterServerState state, CustomResourceOptions options)
    resources:  _:    type: incapsula:DataCenterServer    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:
    DataCenterServerId string
    Unique identifier in the API for the data center server.
    DcId string
    Numeric identifier of the data center server to operate on.
    IsEnabled string
    Enables the data center server.
    IsStandby string
    Set the server as Active (P0) or Standby (P1).
    ServerAddress string
    The server's address.
    SiteId string
    Numeric identifier of the site to operate on.
    DataCenterServerId string
    Unique identifier in the API for the data center server.
    DcId string
    Numeric identifier of the data center server to operate on.
    IsEnabled string
    Enables the data center server.
    IsStandby string
    Set the server as Active (P0) or Standby (P1).
    ServerAddress string
    The server's address.
    SiteId string
    Numeric identifier of the site to operate on.
    dataCenterServerId String
    Unique identifier in the API for the data center server.
    dcId String
    Numeric identifier of the data center server to operate on.
    isEnabled String
    Enables the data center server.
    isStandby String
    Set the server as Active (P0) or Standby (P1).
    serverAddress String
    The server's address.
    siteId String
    Numeric identifier of the site to operate on.
    dataCenterServerId string
    Unique identifier in the API for the data center server.
    dcId string
    Numeric identifier of the data center server to operate on.
    isEnabled string
    Enables the data center server.
    isStandby string
    Set the server as Active (P0) or Standby (P1).
    serverAddress string
    The server's address.
    siteId string
    Numeric identifier of the site to operate on.
    data_center_server_id str
    Unique identifier in the API for the data center server.
    dc_id str
    Numeric identifier of the data center server to operate on.
    is_enabled str
    Enables the data center server.
    is_standby str
    Set the server as Active (P0) or Standby (P1).
    server_address str
    The server's address.
    site_id str
    Numeric identifier of the site to operate on.
    dataCenterServerId String
    Unique identifier in the API for the data center server.
    dcId String
    Numeric identifier of the data center server to operate on.
    isEnabled String
    Enables the data center server.
    isStandby String
    Set the server as Active (P0) or Standby (P1).
    serverAddress String
    The server's address.
    siteId String
    Numeric identifier of the site to operate on.

    Import

    Data Center Server can be imported using the role site_id, dc_id, and server_id separated by /, e.g.:

    $ pulumi import incapsula:index/dataCenterServer:DataCenterServer demo site_id/dc_id/server_id
    

    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.33.0 published on Wednesday, Apr 30, 2025 by imperva