incapsula.CspSiteDomain
Explore with Pulumi AI
Create CspSiteDomain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CspSiteDomain(name: string, args: CspSiteDomainArgs, opts?: CustomResourceOptions);
@overload
def CspSiteDomain(resource_name: str,
args: CspSiteDomainArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CspSiteDomain(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain: Optional[str] = None,
site_id: Optional[float] = None,
account_id: Optional[float] = None,
csp_site_domain_id: Optional[str] = None,
include_subdomains: Optional[bool] = None,
notes: Optional[Sequence[str]] = None,
status: Optional[str] = None)
func NewCspSiteDomain(ctx *Context, name string, args CspSiteDomainArgs, opts ...ResourceOption) (*CspSiteDomain, error)
public CspSiteDomain(string name, CspSiteDomainArgs args, CustomResourceOptions? opts = null)
public CspSiteDomain(String name, CspSiteDomainArgs args)
public CspSiteDomain(String name, CspSiteDomainArgs args, CustomResourceOptions options)
type: incapsula:CspSiteDomain
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 CspSiteDomainArgs
- 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 CspSiteDomainArgs
- 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 CspSiteDomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CspSiteDomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CspSiteDomainArgs
- 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 cspSiteDomainResource = new Incapsula.CspSiteDomain("cspSiteDomainResource", new()
{
Domain = "string",
SiteId = 0,
AccountId = 0,
CspSiteDomainId = "string",
IncludeSubdomains = false,
Notes = new[]
{
"string",
},
Status = "string",
});
example, err := incapsula.NewCspSiteDomain(ctx, "cspSiteDomainResource", &incapsula.CspSiteDomainArgs{
Domain: pulumi.String("string"),
SiteId: pulumi.Float64(0),
AccountId: pulumi.Float64(0),
CspSiteDomainId: pulumi.String("string"),
IncludeSubdomains: pulumi.Bool(false),
Notes: pulumi.StringArray{
pulumi.String("string"),
},
Status: pulumi.String("string"),
})
var cspSiteDomainResource = new CspSiteDomain("cspSiteDomainResource", CspSiteDomainArgs.builder()
.domain("string")
.siteId(0)
.accountId(0)
.cspSiteDomainId("string")
.includeSubdomains(false)
.notes("string")
.status("string")
.build());
csp_site_domain_resource = incapsula.CspSiteDomain("cspSiteDomainResource",
domain="string",
site_id=0,
account_id=0,
csp_site_domain_id="string",
include_subdomains=False,
notes=["string"],
status="string")
const cspSiteDomainResource = new incapsula.CspSiteDomain("cspSiteDomainResource", {
domain: "string",
siteId: 0,
accountId: 0,
cspSiteDomainId: "string",
includeSubdomains: false,
notes: ["string"],
status: "string",
});
type: incapsula:CspSiteDomain
properties:
accountId: 0
cspSiteDomainId: string
domain: string
includeSubdomains: false
notes:
- string
siteId: 0
status: string
CspSiteDomain 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 CspSiteDomain resource accepts the following input properties:
- Domain string
- The fully qualified domain name of the site. For example: www.example.com, hello.example.com.
- Site
Id double - Numeric identifier of the site to operate on.
- Account
Id double - Numeric identifier of the account to operate on.
- Csp
Site stringDomain Id - Include
Subdomains bool - Defines Whether or not subdomains will inherit the allowance of the parent domain. Values: true, false
- Notes List<string>
- Add a quick note to a domain to help in future analysis and investigation. You can add as many notes as you like.
- Status string
- Defines whether the domain should be Blocked or Allowed once the site's mode changes to the Enforcement. Values: Blocked, Allowed
- Domain string
- The fully qualified domain name of the site. For example: www.example.com, hello.example.com.
- Site
Id float64 - Numeric identifier of the site to operate on.
- Account
Id float64 - Numeric identifier of the account to operate on.
- Csp
Site stringDomain Id - Include
Subdomains bool - Defines Whether or not subdomains will inherit the allowance of the parent domain. Values: true, false
- Notes []string
- Add a quick note to a domain to help in future analysis and investigation. You can add as many notes as you like.
- Status string
- Defines whether the domain should be Blocked or Allowed once the site's mode changes to the Enforcement. Values: Blocked, Allowed
- domain String
- The fully qualified domain name of the site. For example: www.example.com, hello.example.com.
- site
Id Double - Numeric identifier of the site to operate on.
- account
Id Double - Numeric identifier of the account to operate on.
- csp
Site StringDomain Id - include
Subdomains Boolean - Defines Whether or not subdomains will inherit the allowance of the parent domain. Values: true, false
- notes List<String>
- Add a quick note to a domain to help in future analysis and investigation. You can add as many notes as you like.
- status String
- Defines whether the domain should be Blocked or Allowed once the site's mode changes to the Enforcement. Values: Blocked, Allowed
- domain string
- The fully qualified domain name of the site. For example: www.example.com, hello.example.com.
- site
Id number - Numeric identifier of the site to operate on.
- account
Id number - Numeric identifier of the account to operate on.
- csp
Site stringDomain Id - include
Subdomains boolean - Defines Whether or not subdomains will inherit the allowance of the parent domain. Values: true, false
- notes string[]
- Add a quick note to a domain to help in future analysis and investigation. You can add as many notes as you like.
- status string
- Defines whether the domain should be Blocked or Allowed once the site's mode changes to the Enforcement. Values: Blocked, Allowed
- domain str
- The fully qualified domain name of the site. For example: www.example.com, hello.example.com.
- site_
id float - Numeric identifier of the site to operate on.
- account_
id float - Numeric identifier of the account to operate on.
- csp_
site_ strdomain_ id - include_
subdomains bool - Defines Whether or not subdomains will inherit the allowance of the parent domain. Values: true, false
- notes Sequence[str]
- Add a quick note to a domain to help in future analysis and investigation. You can add as many notes as you like.
- status str
- Defines whether the domain should be Blocked or Allowed once the site's mode changes to the Enforcement. Values: Blocked, Allowed
- domain String
- The fully qualified domain name of the site. For example: www.example.com, hello.example.com.
- site
Id Number - Numeric identifier of the site to operate on.
- account
Id Number - Numeric identifier of the account to operate on.
- csp
Site StringDomain Id - include
Subdomains Boolean - Defines Whether or not subdomains will inherit the allowance of the parent domain. Values: true, false
- notes List<String>
- Add a quick note to a domain to help in future analysis and investigation. You can add as many notes as you like.
- status String
- Defines whether the domain should be Blocked or Allowed once the site's mode changes to the Enforcement. Values: Blocked, Allowed
Outputs
All input properties are implicitly available as output properties. Additionally, the CspSiteDomain 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 CspSiteDomain Resource
Get an existing CspSiteDomain 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?: CspSiteDomainState, opts?: CustomResourceOptions): CspSiteDomain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[float] = None,
csp_site_domain_id: Optional[str] = None,
domain: Optional[str] = None,
include_subdomains: Optional[bool] = None,
notes: Optional[Sequence[str]] = None,
site_id: Optional[float] = None,
status: Optional[str] = None) -> CspSiteDomain
func GetCspSiteDomain(ctx *Context, name string, id IDInput, state *CspSiteDomainState, opts ...ResourceOption) (*CspSiteDomain, error)
public static CspSiteDomain Get(string name, Input<string> id, CspSiteDomainState? state, CustomResourceOptions? opts = null)
public static CspSiteDomain get(String name, Output<String> id, CspSiteDomainState state, CustomResourceOptions options)
resources: _: type: incapsula:CspSiteDomain 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.
- Account
Id double - Numeric identifier of the account to operate on.
- Csp
Site stringDomain Id - Domain string
- The fully qualified domain name of the site. For example: www.example.com, hello.example.com.
- Include
Subdomains bool - Defines Whether or not subdomains will inherit the allowance of the parent domain. Values: true, false
- Notes List<string>
- Add a quick note to a domain to help in future analysis and investigation. You can add as many notes as you like.
- Site
Id double - Numeric identifier of the site to operate on.
- Status string
- Defines whether the domain should be Blocked or Allowed once the site's mode changes to the Enforcement. Values: Blocked, Allowed
- Account
Id float64 - Numeric identifier of the account to operate on.
- Csp
Site stringDomain Id - Domain string
- The fully qualified domain name of the site. For example: www.example.com, hello.example.com.
- Include
Subdomains bool - Defines Whether or not subdomains will inherit the allowance of the parent domain. Values: true, false
- Notes []string
- Add a quick note to a domain to help in future analysis and investigation. You can add as many notes as you like.
- Site
Id float64 - Numeric identifier of the site to operate on.
- Status string
- Defines whether the domain should be Blocked or Allowed once the site's mode changes to the Enforcement. Values: Blocked, Allowed
- account
Id Double - Numeric identifier of the account to operate on.
- csp
Site StringDomain Id - domain String
- The fully qualified domain name of the site. For example: www.example.com, hello.example.com.
- include
Subdomains Boolean - Defines Whether or not subdomains will inherit the allowance of the parent domain. Values: true, false
- notes List<String>
- Add a quick note to a domain to help in future analysis and investigation. You can add as many notes as you like.
- site
Id Double - Numeric identifier of the site to operate on.
- status String
- Defines whether the domain should be Blocked or Allowed once the site's mode changes to the Enforcement. Values: Blocked, Allowed
- account
Id number - Numeric identifier of the account to operate on.
- csp
Site stringDomain Id - domain string
- The fully qualified domain name of the site. For example: www.example.com, hello.example.com.
- include
Subdomains boolean - Defines Whether or not subdomains will inherit the allowance of the parent domain. Values: true, false
- notes string[]
- Add a quick note to a domain to help in future analysis and investigation. You can add as many notes as you like.
- site
Id number - Numeric identifier of the site to operate on.
- status string
- Defines whether the domain should be Blocked or Allowed once the site's mode changes to the Enforcement. Values: Blocked, Allowed
- account_
id float - Numeric identifier of the account to operate on.
- csp_
site_ strdomain_ id - domain str
- The fully qualified domain name of the site. For example: www.example.com, hello.example.com.
- include_
subdomains bool - Defines Whether or not subdomains will inherit the allowance of the parent domain. Values: true, false
- notes Sequence[str]
- Add a quick note to a domain to help in future analysis and investigation. You can add as many notes as you like.
- site_
id float - Numeric identifier of the site to operate on.
- status str
- Defines whether the domain should be Blocked or Allowed once the site's mode changes to the Enforcement. Values: Blocked, Allowed
- account
Id Number - Numeric identifier of the account to operate on.
- csp
Site StringDomain Id - domain String
- The fully qualified domain name of the site. For example: www.example.com, hello.example.com.
- include
Subdomains Boolean - Defines Whether or not subdomains will inherit the allowance of the parent domain. Values: true, false
- notes List<String>
- Add a quick note to a domain to help in future analysis and investigation. You can add as many notes as you like.
- site
Id Number - Numeric identifier of the site to operate on.
- status String
- Defines whether the domain should be Blocked or Allowed once the site's mode changes to the Enforcement. Values: Blocked, Allowed
Package Details
- Repository
- incapsula imperva/terraform-provider-incapsula
- License
- Notes
- This Pulumi package is based on the
incapsula
Terraform Provider.