incapsula.DataCenter
Explore with Pulumi AI
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:
- Server
Address string - The server's address. Possible values: IP, CNAME.
- Site
Id string - Numeric identifier of the site to operate on.
- Data
Center stringId - Unique identifier in the API for the data center.
- Is
Content string - The data center will be available for specific resources (Forward Delivery Rules).
- Is
Enabled string - Enables the data center.
- Name string
- The new data center's name.
- Timeouts
Data
Center Timeouts
- Server
Address string - The server's address. Possible values: IP, CNAME.
- Site
Id string - Numeric identifier of the site to operate on.
- Data
Center stringId - Unique identifier in the API for the data center.
- Is
Content string - The data center will be available for specific resources (Forward Delivery Rules).
- Is
Enabled string - Enables the data center.
- Name string
- The new data center's name.
- Timeouts
Data
Center Timeouts Args
- server
Address String - The server's address. Possible values: IP, CNAME.
- site
Id String - Numeric identifier of the site to operate on.
- data
Center StringId - Unique identifier in the API for the data center.
- is
Content String - The data center will be available for specific resources (Forward Delivery Rules).
- is
Enabled String - Enables the data center.
- name String
- The new data center's name.
- timeouts
Data
Center Timeouts
- server
Address string - The server's address. Possible values: IP, CNAME.
- site
Id string - Numeric identifier of the site to operate on.
- data
Center stringId - Unique identifier in the API for the data center.
- is
Content string - The data center will be available for specific resources (Forward Delivery Rules).
- is
Enabled string - Enables the data center.
- name string
- The new data center's name.
- timeouts
Data
Center Timeouts
- server_
address str - The server's address. Possible values: IP, CNAME.
- site_
id str - Numeric identifier of the site to operate on.
- data_
center_ strid - 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
Data
Center Timeouts Args
- server
Address String - The server's address. Possible values: IP, CNAME.
- site
Id String - Numeric identifier of the site to operate on.
- data
Center StringId - Unique identifier in the API for the data center.
- is
Content String - The data center will be available for specific resources (Forward Delivery Rules).
- is
Enabled 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.
- Data
Center stringId - Unique identifier in the API for the data center.
- Is
Content string - The data center will be available for specific resources (Forward Delivery Rules).
- Is
Enabled string - Enables the data center.
- Name string
- The new data center's name.
- Server
Address string - The server's address. Possible values: IP, CNAME.
- Site
Id string - Numeric identifier of the site to operate on.
- Timeouts
Data
Center Timeouts
- Data
Center stringId - Unique identifier in the API for the data center.
- Is
Content string - The data center will be available for specific resources (Forward Delivery Rules).
- Is
Enabled string - Enables the data center.
- Name string
- The new data center's name.
- Server
Address string - The server's address. Possible values: IP, CNAME.
- Site
Id string - Numeric identifier of the site to operate on.
- Timeouts
Data
Center Timeouts Args
- data
Center StringId - Unique identifier in the API for the data center.
- is
Content String - The data center will be available for specific resources (Forward Delivery Rules).
- is
Enabled String - Enables the data center.
- name String
- The new data center's name.
- server
Address String - The server's address. Possible values: IP, CNAME.
- site
Id String - Numeric identifier of the site to operate on.
- timeouts
Data
Center Timeouts
- data
Center stringId - Unique identifier in the API for the data center.
- is
Content string - The data center will be available for specific resources (Forward Delivery Rules).
- is
Enabled string - Enables the data center.
- name string
- The new data center's name.
- server
Address string - The server's address. Possible values: IP, CNAME.
- site
Id string - Numeric identifier of the site to operate on.
- timeouts
Data
Center Timeouts
- data_
center_ strid - 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
Data
Center Timeouts Args
- data
Center StringId - Unique identifier in the API for the data center.
- is
Content String - The data center will be available for specific resources (Forward Delivery Rules).
- is
Enabled String - Enables the data center.
- name String
- The new data center's name.
- server
Address String - The server's address. Possible values: IP, CNAME.
- site
Id String - Numeric identifier of the site to operate on.
- timeouts Property Map
Supporting Types
DataCenterTimeouts, DataCenterTimeoutsArgs
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.