incapsula.ApiSecurityApiConfig
Explore with Pulumi AI
Provides an Incapsula API Security API Config resource.
API Security API Config include violation actions set for specific API.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fs from "fs";
import * as incapsula from "@pulumi/incapsula";
const demo_terraform_api_security_api_config = new incapsula.ApiSecurityApiConfig("demo-terraform-api-security-api-config", {
siteId: incapsula_site["example-site"].id,
apiSpecification: fs.readFileSync("path/to/your/swagger/file.yaml", "utf8"),
invalidUrlViolationAction: "IGNORE",
invalidMethodViolationAction: "BLOCK_USER",
missingParamViolationAction: "BLOCK_IP",
invalidParamValueViolationAction: "BLOCK_REQUEST",
invalidParamNameViolationAction: "ALERT_ONLY",
description: "your site API description",
basePath: "/base/path",
});
import pulumi
import pulumi_incapsula as incapsula
demo_terraform_api_security_api_config = incapsula.ApiSecurityApiConfig("demo-terraform-api-security-api-config",
site_id=incapsula_site["example-site"]["id"],
api_specification=(lambda path: open(path).read())("path/to/your/swagger/file.yaml"),
invalid_url_violation_action="IGNORE",
invalid_method_violation_action="BLOCK_USER",
missing_param_violation_action="BLOCK_IP",
invalid_param_value_violation_action="BLOCK_REQUEST",
invalid_param_name_violation_action="ALERT_ONLY",
description="your site API description",
base_path="/base/path")
package main
import (
"os"
"github.com/pulumi/pulumi-terraform-provider/sdks/go/incapsula/v3/incapsula"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func readFileOrPanic(path string) pulumi.StringPtrInput {
data, err := os.ReadFile(path)
if err != nil {
panic(err.Error())
}
return pulumi.String(string(data))
}
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := incapsula.NewApiSecurityApiConfig(ctx, "demo-terraform-api-security-api-config", &incapsula.ApiSecurityApiConfigArgs{
SiteId: pulumi.Any(incapsula_site.ExampleSite.Id),
ApiSpecification: pulumi.String(readFileOrPanic("path/to/your/swagger/file.yaml")),
InvalidUrlViolationAction: pulumi.String("IGNORE"),
InvalidMethodViolationAction: pulumi.String("BLOCK_USER"),
MissingParamViolationAction: pulumi.String("BLOCK_IP"),
InvalidParamValueViolationAction: pulumi.String("BLOCK_REQUEST"),
InvalidParamNameViolationAction: pulumi.String("ALERT_ONLY"),
Description: pulumi.String("your site API description"),
BasePath: pulumi.String("/base/path"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Pulumi;
using Incapsula = Pulumi.Incapsula;
return await Deployment.RunAsync(() =>
{
var demo_terraform_api_security_api_config = new Incapsula.ApiSecurityApiConfig("demo-terraform-api-security-api-config", new()
{
SiteId = incapsula_site.Example_site.Id,
ApiSpecification = File.ReadAllText("path/to/your/swagger/file.yaml"),
InvalidUrlViolationAction = "IGNORE",
InvalidMethodViolationAction = "BLOCK_USER",
MissingParamViolationAction = "BLOCK_IP",
InvalidParamValueViolationAction = "BLOCK_REQUEST",
InvalidParamNameViolationAction = "ALERT_ONLY",
Description = "your site API description",
BasePath = "/base/path",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.incapsula.ApiSecurityApiConfig;
import com.pulumi.incapsula.ApiSecurityApiConfigArgs;
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 demo_terraform_api_security_api_config = new ApiSecurityApiConfig("demo-terraform-api-security-api-config", ApiSecurityApiConfigArgs.builder()
.siteId(incapsula_site.example-site().id())
.apiSpecification(Files.readString(Paths.get("path/to/your/swagger/file.yaml")))
.invalidUrlViolationAction("IGNORE")
.invalidMethodViolationAction("BLOCK_USER")
.missingParamViolationAction("BLOCK_IP")
.invalidParamValueViolationAction("BLOCK_REQUEST")
.invalidParamNameViolationAction("ALERT_ONLY")
.description("your site API description")
.basePath("/base/path")
.build());
}
}
resources:
demo-terraform-api-security-api-config:
type: incapsula:ApiSecurityApiConfig
properties:
siteId: ${incapsula_site"example-site"[%!s(MISSING)].id}
apiSpecification:
fn::readFile: path/to/your/swagger/file.yaml
invalidUrlViolationAction: IGNORE
invalidMethodViolationAction: BLOCK_USER
missingParamViolationAction: BLOCK_IP
invalidParamValueViolationAction: BLOCK_REQUEST
invalidParamNameViolationAction: ALERT_ONLY
description: your site API description
basePath: /base/path
Create ApiSecurityApiConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApiSecurityApiConfig(name: string, args: ApiSecurityApiConfigArgs, opts?: CustomResourceOptions);
@overload
def ApiSecurityApiConfig(resource_name: str,
args: ApiSecurityApiConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApiSecurityApiConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_specification: Optional[str] = None,
site_id: Optional[float] = None,
api_security_api_config_id: Optional[str] = None,
base_path: Optional[str] = None,
description: Optional[str] = None,
invalid_method_violation_action: Optional[str] = None,
invalid_param_name_violation_action: Optional[str] = None,
invalid_param_value_violation_action: Optional[str] = None,
invalid_url_violation_action: Optional[str] = None,
missing_param_violation_action: Optional[str] = None)
func NewApiSecurityApiConfig(ctx *Context, name string, args ApiSecurityApiConfigArgs, opts ...ResourceOption) (*ApiSecurityApiConfig, error)
public ApiSecurityApiConfig(string name, ApiSecurityApiConfigArgs args, CustomResourceOptions? opts = null)
public ApiSecurityApiConfig(String name, ApiSecurityApiConfigArgs args)
public ApiSecurityApiConfig(String name, ApiSecurityApiConfigArgs args, CustomResourceOptions options)
type: incapsula:ApiSecurityApiConfig
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 ApiSecurityApiConfigArgs
- 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 ApiSecurityApiConfigArgs
- 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 ApiSecurityApiConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApiSecurityApiConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApiSecurityApiConfigArgs
- 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 apiSecurityApiConfigResource = new Incapsula.ApiSecurityApiConfig("apiSecurityApiConfigResource", new()
{
ApiSpecification = "string",
SiteId = 0,
ApiSecurityApiConfigId = "string",
BasePath = "string",
Description = "string",
InvalidMethodViolationAction = "string",
InvalidParamNameViolationAction = "string",
InvalidParamValueViolationAction = "string",
InvalidUrlViolationAction = "string",
MissingParamViolationAction = "string",
});
example, err := incapsula.NewApiSecurityApiConfig(ctx, "apiSecurityApiConfigResource", &incapsula.ApiSecurityApiConfigArgs{
ApiSpecification: pulumi.String("string"),
SiteId: pulumi.Float64(0),
ApiSecurityApiConfigId: pulumi.String("string"),
BasePath: pulumi.String("string"),
Description: pulumi.String("string"),
InvalidMethodViolationAction: pulumi.String("string"),
InvalidParamNameViolationAction: pulumi.String("string"),
InvalidParamValueViolationAction: pulumi.String("string"),
InvalidUrlViolationAction: pulumi.String("string"),
MissingParamViolationAction: pulumi.String("string"),
})
var apiSecurityApiConfigResource = new ApiSecurityApiConfig("apiSecurityApiConfigResource", ApiSecurityApiConfigArgs.builder()
.apiSpecification("string")
.siteId(0)
.apiSecurityApiConfigId("string")
.basePath("string")
.description("string")
.invalidMethodViolationAction("string")
.invalidParamNameViolationAction("string")
.invalidParamValueViolationAction("string")
.invalidUrlViolationAction("string")
.missingParamViolationAction("string")
.build());
api_security_api_config_resource = incapsula.ApiSecurityApiConfig("apiSecurityApiConfigResource",
api_specification="string",
site_id=0,
api_security_api_config_id="string",
base_path="string",
description="string",
invalid_method_violation_action="string",
invalid_param_name_violation_action="string",
invalid_param_value_violation_action="string",
invalid_url_violation_action="string",
missing_param_violation_action="string")
const apiSecurityApiConfigResource = new incapsula.ApiSecurityApiConfig("apiSecurityApiConfigResource", {
apiSpecification: "string",
siteId: 0,
apiSecurityApiConfigId: "string",
basePath: "string",
description: "string",
invalidMethodViolationAction: "string",
invalidParamNameViolationAction: "string",
invalidParamValueViolationAction: "string",
invalidUrlViolationAction: "string",
missingParamViolationAction: "string",
});
type: incapsula:ApiSecurityApiConfig
properties:
apiSecurityApiConfigId: string
apiSpecification: string
basePath: string
description: string
invalidMethodViolationAction: string
invalidParamNameViolationAction: string
invalidParamValueViolationAction: string
invalidUrlViolationAction: string
missingParamViolationAction: string
siteId: 0
ApiSecurityApiConfig 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 ApiSecurityApiConfig resource accepts the following input properties:
- Api
Specification string - The API specification document content. The supported format is OAS2 or OAS3.
- Site
Id double - Numeric identifier of the site to operate on.
- Api
Security stringApi Config Id - Unique identifier in the API for the API Security Site Configuration.
- Base
Path string - Override the spec basePath / server base path with this value.
- Description string
- A description that will help recognize the API in the dashboard.
- Invalid
Method stringViolation Action - The action taken when an invalid method Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - Invalid
Param stringName Violation Action - The action taken when an invalid parameter value Violation occurs.
Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. - Invalid
Param stringValue Violation Action The action taken when an invalid parameter value Violation occurs. Assigning
DEFAULT
will inherit the action from parent object. Possible values:ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object.NOTE:
invalid_param_name_violation_action
parameter is currently not supported. Please do not use/change value.- Invalid
Url stringViolation Action - The action taken when an invalid URL Violation occurs. Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - Missing
Param stringViolation Action - The action taken when a missing parameter Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object.
- Api
Specification string - The API specification document content. The supported format is OAS2 or OAS3.
- Site
Id float64 - Numeric identifier of the site to operate on.
- Api
Security stringApi Config Id - Unique identifier in the API for the API Security Site Configuration.
- Base
Path string - Override the spec basePath / server base path with this value.
- Description string
- A description that will help recognize the API in the dashboard.
- Invalid
Method stringViolation Action - The action taken when an invalid method Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - Invalid
Param stringName Violation Action - The action taken when an invalid parameter value Violation occurs.
Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. - Invalid
Param stringValue Violation Action The action taken when an invalid parameter value Violation occurs. Assigning
DEFAULT
will inherit the action from parent object. Possible values:ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object.NOTE:
invalid_param_name_violation_action
parameter is currently not supported. Please do not use/change value.- Invalid
Url stringViolation Action - The action taken when an invalid URL Violation occurs. Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - Missing
Param stringViolation Action - The action taken when a missing parameter Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object.
- api
Specification String - The API specification document content. The supported format is OAS2 or OAS3.
- site
Id Double - Numeric identifier of the site to operate on.
- api
Security StringApi Config Id - Unique identifier in the API for the API Security Site Configuration.
- base
Path String - Override the spec basePath / server base path with this value.
- description String
- A description that will help recognize the API in the dashboard.
- invalid
Method StringViolation Action - The action taken when an invalid method Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - invalid
Param StringName Violation Action - The action taken when an invalid parameter value Violation occurs.
Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. - invalid
Param StringValue Violation Action The action taken when an invalid parameter value Violation occurs. Assigning
DEFAULT
will inherit the action from parent object. Possible values:ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object.NOTE:
invalid_param_name_violation_action
parameter is currently not supported. Please do not use/change value.- invalid
Url StringViolation Action - The action taken when an invalid URL Violation occurs. Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - missing
Param StringViolation Action - The action taken when a missing parameter Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object.
- api
Specification string - The API specification document content. The supported format is OAS2 or OAS3.
- site
Id number - Numeric identifier of the site to operate on.
- api
Security stringApi Config Id - Unique identifier in the API for the API Security Site Configuration.
- base
Path string - Override the spec basePath / server base path with this value.
- description string
- A description that will help recognize the API in the dashboard.
- invalid
Method stringViolation Action - The action taken when an invalid method Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - invalid
Param stringName Violation Action - The action taken when an invalid parameter value Violation occurs.
Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. - invalid
Param stringValue Violation Action The action taken when an invalid parameter value Violation occurs. Assigning
DEFAULT
will inherit the action from parent object. Possible values:ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object.NOTE:
invalid_param_name_violation_action
parameter is currently not supported. Please do not use/change value.- invalid
Url stringViolation Action - The action taken when an invalid URL Violation occurs. Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - missing
Param stringViolation Action - The action taken when a missing parameter Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object.
- api_
specification str - The API specification document content. The supported format is OAS2 or OAS3.
- site_
id float - Numeric identifier of the site to operate on.
- api_
security_ strapi_ config_ id - Unique identifier in the API for the API Security Site Configuration.
- base_
path str - Override the spec basePath / server base path with this value.
- description str
- A description that will help recognize the API in the dashboard.
- invalid_
method_ strviolation_ action - The action taken when an invalid method Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - invalid_
param_ strname_ violation_ action - The action taken when an invalid parameter value Violation occurs.
Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. - invalid_
param_ strvalue_ violation_ action The action taken when an invalid parameter value Violation occurs. Assigning
DEFAULT
will inherit the action from parent object. Possible values:ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object.NOTE:
invalid_param_name_violation_action
parameter is currently not supported. Please do not use/change value.- invalid_
url_ strviolation_ action - The action taken when an invalid URL Violation occurs. Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - missing_
param_ strviolation_ action - The action taken when a missing parameter Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object.
- api
Specification String - The API specification document content. The supported format is OAS2 or OAS3.
- site
Id Number - Numeric identifier of the site to operate on.
- api
Security StringApi Config Id - Unique identifier in the API for the API Security Site Configuration.
- base
Path String - Override the spec basePath / server base path with this value.
- description String
- A description that will help recognize the API in the dashboard.
- invalid
Method StringViolation Action - The action taken when an invalid method Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - invalid
Param StringName Violation Action - The action taken when an invalid parameter value Violation occurs.
Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. - invalid
Param StringValue Violation Action The action taken when an invalid parameter value Violation occurs. Assigning
DEFAULT
will inherit the action from parent object. Possible values:ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object.NOTE:
invalid_param_name_violation_action
parameter is currently not supported. Please do not use/change value.- invalid
Url StringViolation Action - The action taken when an invalid URL Violation occurs. Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - missing
Param StringViolation Action - The action taken when a missing parameter Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApiSecurityApiConfig resource produces the following output properties:
- Host
Name string - The API's host name
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified double - (Optional) The last modified timestamp.
- Host
Name string - The API's host name
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified float64 - (Optional) The last modified timestamp.
- host
Name String - The API's host name
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified Double - (Optional) The last modified timestamp.
- host
Name string - The API's host name
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modified number - (Optional) The last modified timestamp.
- host_
name str - The API's host name
- id str
- The provider-assigned unique ID for this managed resource.
- last_
modified float - (Optional) The last modified timestamp.
- host
Name String - The API's host name
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified Number - (Optional) The last modified timestamp.
Look up Existing ApiSecurityApiConfig Resource
Get an existing ApiSecurityApiConfig 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?: ApiSecurityApiConfigState, opts?: CustomResourceOptions): ApiSecurityApiConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
api_security_api_config_id: Optional[str] = None,
api_specification: Optional[str] = None,
base_path: Optional[str] = None,
description: Optional[str] = None,
host_name: Optional[str] = None,
invalid_method_violation_action: Optional[str] = None,
invalid_param_name_violation_action: Optional[str] = None,
invalid_param_value_violation_action: Optional[str] = None,
invalid_url_violation_action: Optional[str] = None,
last_modified: Optional[float] = None,
missing_param_violation_action: Optional[str] = None,
site_id: Optional[float] = None) -> ApiSecurityApiConfig
func GetApiSecurityApiConfig(ctx *Context, name string, id IDInput, state *ApiSecurityApiConfigState, opts ...ResourceOption) (*ApiSecurityApiConfig, error)
public static ApiSecurityApiConfig Get(string name, Input<string> id, ApiSecurityApiConfigState? state, CustomResourceOptions? opts = null)
public static ApiSecurityApiConfig get(String name, Output<String> id, ApiSecurityApiConfigState state, CustomResourceOptions options)
resources: _: type: incapsula:ApiSecurityApiConfig 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.
- Api
Security stringApi Config Id - Unique identifier in the API for the API Security Site Configuration.
- Api
Specification string - The API specification document content. The supported format is OAS2 or OAS3.
- Base
Path string - Override the spec basePath / server base path with this value.
- Description string
- A description that will help recognize the API in the dashboard.
- Host
Name string - The API's host name
- Invalid
Method stringViolation Action - The action taken when an invalid method Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - Invalid
Param stringName Violation Action - The action taken when an invalid parameter value Violation occurs.
Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. - Invalid
Param stringValue Violation Action The action taken when an invalid parameter value Violation occurs. Assigning
DEFAULT
will inherit the action from parent object. Possible values:ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object.NOTE:
invalid_param_name_violation_action
parameter is currently not supported. Please do not use/change value.- Invalid
Url stringViolation Action - The action taken when an invalid URL Violation occurs. Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - Last
Modified double - (Optional) The last modified timestamp.
- Missing
Param stringViolation Action - The action taken when a missing parameter Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - Site
Id double - Numeric identifier of the site to operate on.
- Api
Security stringApi Config Id - Unique identifier in the API for the API Security Site Configuration.
- Api
Specification string - The API specification document content. The supported format is OAS2 or OAS3.
- Base
Path string - Override the spec basePath / server base path with this value.
- Description string
- A description that will help recognize the API in the dashboard.
- Host
Name string - The API's host name
- Invalid
Method stringViolation Action - The action taken when an invalid method Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - Invalid
Param stringName Violation Action - The action taken when an invalid parameter value Violation occurs.
Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. - Invalid
Param stringValue Violation Action The action taken when an invalid parameter value Violation occurs. Assigning
DEFAULT
will inherit the action from parent object. Possible values:ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object.NOTE:
invalid_param_name_violation_action
parameter is currently not supported. Please do not use/change value.- Invalid
Url stringViolation Action - The action taken when an invalid URL Violation occurs. Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - Last
Modified float64 - (Optional) The last modified timestamp.
- Missing
Param stringViolation Action - The action taken when a missing parameter Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - Site
Id float64 - Numeric identifier of the site to operate on.
- api
Security StringApi Config Id - Unique identifier in the API for the API Security Site Configuration.
- api
Specification String - The API specification document content. The supported format is OAS2 or OAS3.
- base
Path String - Override the spec basePath / server base path with this value.
- description String
- A description that will help recognize the API in the dashboard.
- host
Name String - The API's host name
- invalid
Method StringViolation Action - The action taken when an invalid method Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - invalid
Param StringName Violation Action - The action taken when an invalid parameter value Violation occurs.
Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. - invalid
Param StringValue Violation Action The action taken when an invalid parameter value Violation occurs. Assigning
DEFAULT
will inherit the action from parent object. Possible values:ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object.NOTE:
invalid_param_name_violation_action
parameter is currently not supported. Please do not use/change value.- invalid
Url StringViolation Action - The action taken when an invalid URL Violation occurs. Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - last
Modified Double - (Optional) The last modified timestamp.
- missing
Param StringViolation Action - The action taken when a missing parameter Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - site
Id Double - Numeric identifier of the site to operate on.
- api
Security stringApi Config Id - Unique identifier in the API for the API Security Site Configuration.
- api
Specification string - The API specification document content. The supported format is OAS2 or OAS3.
- base
Path string - Override the spec basePath / server base path with this value.
- description string
- A description that will help recognize the API in the dashboard.
- host
Name string - The API's host name
- invalid
Method stringViolation Action - The action taken when an invalid method Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - invalid
Param stringName Violation Action - The action taken when an invalid parameter value Violation occurs.
Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. - invalid
Param stringValue Violation Action The action taken when an invalid parameter value Violation occurs. Assigning
DEFAULT
will inherit the action from parent object. Possible values:ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object.NOTE:
invalid_param_name_violation_action
parameter is currently not supported. Please do not use/change value.- invalid
Url stringViolation Action - The action taken when an invalid URL Violation occurs. Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - last
Modified number - (Optional) The last modified timestamp.
- missing
Param stringViolation Action - The action taken when a missing parameter Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - site
Id number - Numeric identifier of the site to operate on.
- api_
security_ strapi_ config_ id - Unique identifier in the API for the API Security Site Configuration.
- api_
specification str - The API specification document content. The supported format is OAS2 or OAS3.
- base_
path str - Override the spec basePath / server base path with this value.
- description str
- A description that will help recognize the API in the dashboard.
- host_
name str - The API's host name
- invalid_
method_ strviolation_ action - The action taken when an invalid method Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - invalid_
param_ strname_ violation_ action - The action taken when an invalid parameter value Violation occurs.
Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. - invalid_
param_ strvalue_ violation_ action The action taken when an invalid parameter value Violation occurs. Assigning
DEFAULT
will inherit the action from parent object. Possible values:ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object.NOTE:
invalid_param_name_violation_action
parameter is currently not supported. Please do not use/change value.- invalid_
url_ strviolation_ action - The action taken when an invalid URL Violation occurs. Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - last_
modified float - (Optional) The last modified timestamp.
- missing_
param_ strviolation_ action - The action taken when a missing parameter Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - site_
id float - Numeric identifier of the site to operate on.
- api
Security StringApi Config Id - Unique identifier in the API for the API Security Site Configuration.
- api
Specification String - The API specification document content. The supported format is OAS2 or OAS3.
- base
Path String - Override the spec basePath / server base path with this value.
- description String
- A description that will help recognize the API in the dashboard.
- host
Name String - The API's host name
- invalid
Method StringViolation Action - The action taken when an invalid method Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - invalid
Param StringName Violation Action - The action taken when an invalid parameter value Violation occurs.
Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. - invalid
Param StringValue Violation Action The action taken when an invalid parameter value Violation occurs. Assigning
DEFAULT
will inherit the action from parent object. Possible values:ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object.NOTE:
invalid_param_name_violation_action
parameter is currently not supported. Please do not use/change value.- invalid
Url StringViolation Action - The action taken when an invalid URL Violation occurs. Possible values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - last
Modified Number - (Optional) The last modified timestamp.
- missing
Param StringViolation Action - The action taken when a missing parameter Violation occurs. Possible
values:
ALERT_ONLY
,BLOCK_REQUEST
,BLOCK_USER
,BLOCK_IP
,IGNORE
,DEFAULT
. AssigningDEFAULT
will inherit the action from parent object. - site
Id Number - Numeric identifier of the site to operate on.
Import
API Security API Configuration can be imported using the site_id and then api_id (id) separated by /, e.g.:
$ pulumi import incapsula:index/apiSecurityApiConfig:ApiSecurityApiConfig example-terraform-api-security-api-config 1234/100200
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.