incapsula.OriginPop
Explore with Pulumi AI
DEPRECATED: incapsula.OriginPop
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",
});
const aws_east = new incapsula.OriginPop("aws-east", {
dcId: example_data_center.dataCenterId,
siteId: incapsula_site["example-site"].id,
originPop: "iad",
});
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")
aws_east = incapsula.OriginPop("aws-east",
dc_id=example_data_center.data_center_id,
site_id=incapsula_site["example-site"]["id"],
origin_pop="iad")
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_data_center, 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
}
_, err = incapsula.NewOriginPop(ctx, "aws-east", &incapsula.OriginPopArgs{
DcId: example_data_center.DataCenterId,
SiteId: pulumi.Any(incapsula_site.ExampleSite.Id),
OriginPop: pulumi.String("iad"),
})
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",
});
var aws_east = new Incapsula.OriginPop("aws-east", new()
{
DcId = example_data_center.DataCenterId,
SiteId = incapsula_site.Example_site.Id,
OriginPop = "iad",
});
});
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 com.pulumi.incapsula.OriginPop;
import com.pulumi.incapsula.OriginPopArgs;
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());
var aws_east = new OriginPop("aws-east", OriginPopArgs.builder()
.dcId(example_data_center.dataCenterId())
.siteId(incapsula_site.example-site().id())
.originPop("iad")
.build());
}
}
resources:
example-data-center:
type: incapsula:DataCenter
properties:
siteId: ${incapsula_site"example-site"[%!s(MISSING)].id}
serverAddress: 8.8.4.4
isContent: 'true'
aws-east:
type: incapsula:OriginPop
properties:
dcId: ${["example-data-center"].dataCenterId}
siteId: ${incapsula_site"example-site"[%!s(MISSING)].id}
originPop: iad
Create OriginPop Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OriginPop(name: string, args: OriginPopArgs, opts?: CustomResourceOptions);
@overload
def OriginPop(resource_name: str,
args: OriginPopArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OriginPop(resource_name: str,
opts: Optional[ResourceOptions] = None,
dc_id: Optional[float] = None,
origin_pop: Optional[str] = None,
site_id: Optional[float] = None,
origin_pop_id: Optional[str] = None)
func NewOriginPop(ctx *Context, name string, args OriginPopArgs, opts ...ResourceOption) (*OriginPop, error)
public OriginPop(string name, OriginPopArgs args, CustomResourceOptions? opts = null)
public OriginPop(String name, OriginPopArgs args)
public OriginPop(String name, OriginPopArgs args, CustomResourceOptions options)
type: incapsula:OriginPop
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 OriginPopArgs
- 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 OriginPopArgs
- 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 OriginPopArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OriginPopArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OriginPopArgs
- 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 originPopResource = new Incapsula.OriginPop("originPopResource", new()
{
DcId = 0,
OriginPop = "string",
SiteId = 0,
OriginPopId = "string",
});
example, err := incapsula.NewOriginPop(ctx, "originPopResource", &incapsula.OriginPopArgs{
DcId: pulumi.Float64(0),
OriginPop: pulumi.String("string"),
SiteId: pulumi.Float64(0),
OriginPopId: pulumi.String("string"),
})
var originPopResource = new OriginPop("originPopResource", OriginPopArgs.builder()
.dcId(0)
.originPop("string")
.siteId(0)
.originPopId("string")
.build());
origin_pop_resource = incapsula.OriginPop("originPopResource",
dc_id=0,
origin_pop="string",
site_id=0,
origin_pop_id="string")
const originPopResource = new incapsula.OriginPop("originPopResource", {
dcId: 0,
originPop: "string",
siteId: 0,
originPopId: "string",
});
type: incapsula:OriginPop
properties:
dcId: 0
originPop: string
originPopId: string
siteId: 0
OriginPop 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 OriginPop resource accepts the following input properties:
- Dc
Id double - Numeric identifier of the data center.
- Origin
Pop string - The Origin POP code (must be lowercase), e.g:
iad
. Note, this field is create/update only. Reads are not supported as the API doesn't exist yet. Note that drift may happen. - Site
Id double - Numeric identifier of the site to operate on.
- Origin
Pop stringId - Unique identifier for the Origin POP association.
- Dc
Id float64 - Numeric identifier of the data center.
- Origin
Pop string - The Origin POP code (must be lowercase), e.g:
iad
. Note, this field is create/update only. Reads are not supported as the API doesn't exist yet. Note that drift may happen. - Site
Id float64 - Numeric identifier of the site to operate on.
- Origin
Pop stringId - Unique identifier for the Origin POP association.
- dc
Id Double - Numeric identifier of the data center.
- origin
Pop String - The Origin POP code (must be lowercase), e.g:
iad
. Note, this field is create/update only. Reads are not supported as the API doesn't exist yet. Note that drift may happen. - site
Id Double - Numeric identifier of the site to operate on.
- origin
Pop StringId - Unique identifier for the Origin POP association.
- dc
Id number - Numeric identifier of the data center.
- origin
Pop string - The Origin POP code (must be lowercase), e.g:
iad
. Note, this field is create/update only. Reads are not supported as the API doesn't exist yet. Note that drift may happen. - site
Id number - Numeric identifier of the site to operate on.
- origin
Pop stringId - Unique identifier for the Origin POP association.
- dc_
id float - Numeric identifier of the data center.
- origin_
pop str - The Origin POP code (must be lowercase), e.g:
iad
. Note, this field is create/update only. Reads are not supported as the API doesn't exist yet. Note that drift may happen. - site_
id float - Numeric identifier of the site to operate on.
- origin_
pop_ strid - Unique identifier for the Origin POP association.
- dc
Id Number - Numeric identifier of the data center.
- origin
Pop String - The Origin POP code (must be lowercase), e.g:
iad
. Note, this field is create/update only. Reads are not supported as the API doesn't exist yet. Note that drift may happen. - site
Id Number - Numeric identifier of the site to operate on.
- origin
Pop StringId - Unique identifier for the Origin POP association.
Outputs
All input properties are implicitly available as output properties. Additionally, the OriginPop 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 OriginPop Resource
Get an existing OriginPop 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?: OriginPopState, opts?: CustomResourceOptions): OriginPop
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dc_id: Optional[float] = None,
origin_pop: Optional[str] = None,
origin_pop_id: Optional[str] = None,
site_id: Optional[float] = None) -> OriginPop
func GetOriginPop(ctx *Context, name string, id IDInput, state *OriginPopState, opts ...ResourceOption) (*OriginPop, error)
public static OriginPop Get(string name, Input<string> id, OriginPopState? state, CustomResourceOptions? opts = null)
public static OriginPop get(String name, Output<String> id, OriginPopState state, CustomResourceOptions options)
resources: _: type: incapsula:OriginPop 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.
- Dc
Id double - Numeric identifier of the data center.
- Origin
Pop string - The Origin POP code (must be lowercase), e.g:
iad
. Note, this field is create/update only. Reads are not supported as the API doesn't exist yet. Note that drift may happen. - Origin
Pop stringId - Unique identifier for the Origin POP association.
- Site
Id double - Numeric identifier of the site to operate on.
- Dc
Id float64 - Numeric identifier of the data center.
- Origin
Pop string - The Origin POP code (must be lowercase), e.g:
iad
. Note, this field is create/update only. Reads are not supported as the API doesn't exist yet. Note that drift may happen. - Origin
Pop stringId - Unique identifier for the Origin POP association.
- Site
Id float64 - Numeric identifier of the site to operate on.
- dc
Id Double - Numeric identifier of the data center.
- origin
Pop String - The Origin POP code (must be lowercase), e.g:
iad
. Note, this field is create/update only. Reads are not supported as the API doesn't exist yet. Note that drift may happen. - origin
Pop StringId - Unique identifier for the Origin POP association.
- site
Id Double - Numeric identifier of the site to operate on.
- dc
Id number - Numeric identifier of the data center.
- origin
Pop string - The Origin POP code (must be lowercase), e.g:
iad
. Note, this field is create/update only. Reads are not supported as the API doesn't exist yet. Note that drift may happen. - origin
Pop stringId - Unique identifier for the Origin POP association.
- site
Id number - Numeric identifier of the site to operate on.
- dc_
id float - Numeric identifier of the data center.
- origin_
pop str - The Origin POP code (must be lowercase), e.g:
iad
. Note, this field is create/update only. Reads are not supported as the API doesn't exist yet. Note that drift may happen. - origin_
pop_ strid - Unique identifier for the Origin POP association.
- site_
id float - Numeric identifier of the site to operate on.
- dc
Id Number - Numeric identifier of the data center.
- origin
Pop String - The Origin POP code (must be lowercase), e.g:
iad
. Note, this field is create/update only. Reads are not supported as the API doesn't exist yet. Note that drift may happen. - origin
Pop StringId - Unique identifier for the Origin POP association.
- site
Id Number - Numeric identifier of the site to operate on.
Import
Origin Pop can be imported using the site_id
and dc_id
separated by /, e.g.:
$ pulumi import incapsula:index/originPop:OriginPop aws-east site_id/dc_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.