published on Tuesday, Nov 3, 2026 by edge-center
published on Tuesday, Nov 3, 2026 by edge-center
WebSec location: a rule of an edgecenter.WebsecResource for the requests whose path matches location. These requests can go to their own source group and get their own protection options. name and location are unique within the resource. The API refuses to create, change or delete the locations of a resource that the administrator has disabled (its enabled is false).
Changing resource_id replaces the location; every other attribute is updated in place.
Import with <resource_id>:<location_id>. GET <edgecenter_websec_api>/resources/<resource_id>/locations lists the locations of a resource with their ids, and edgecenter_websec_api defaults to <api_endpoint>/v2/protection.
Create WebsecLocation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WebsecLocation(name: string, args: WebsecLocationArgs, opts?: CustomResourceOptions);@overload
def WebsecLocation(resource_name: str,
args: WebsecLocationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WebsecLocation(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
resource_id: Optional[float] = None,
active: Optional[bool] = None,
name: Optional[str] = None,
options: Optional[WebsecLocationOptionsArgs] = None,
source_group: Optional[float] = None,
websec_location_id: Optional[str] = None,
weight: Optional[float] = None)func NewWebsecLocation(ctx *Context, name string, args WebsecLocationArgs, opts ...ResourceOption) (*WebsecLocation, error)public WebsecLocation(string name, WebsecLocationArgs args, CustomResourceOptions? opts = null)
public WebsecLocation(String name, WebsecLocationArgs args)
public WebsecLocation(String name, WebsecLocationArgs args, CustomResourceOptions options)
type: edgecenter:WebsecLocation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "edgecenter_websec_location" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args WebsecLocationArgs
- 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 WebsecLocationArgs
- 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 WebsecLocationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WebsecLocationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WebsecLocationArgs
- 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 websecLocationResource = new Edgecenter.WebsecLocation("websecLocationResource", new()
{
Location = "string",
ResourceId = 0.0,
Active = false,
Name = "string",
Options = new Edgecenter.Inputs.WebsecLocationOptionsArgs
{
AllowedHttpMethods = new Edgecenter.Inputs.WebsecLocationOptionsAllowedHttpMethodsArgs
{
Values = new[]
{
"string",
},
Enabled = false,
},
AntibotFloodChallenge = new Edgecenter.Inputs.WebsecLocationOptionsAntibotFloodChallengeArgs
{
AntibotChallengeGetOnlyOn = false,
AntibotChallengeTimelimit = 0.0,
AntibotChallengeUtmReferrer = false,
Enabled = false,
Value = "string",
},
AsnAcl = new Edgecenter.Inputs.WebsecLocationOptionsAsnAclArgs
{
ExceptedValues = new[]
{
0.0,
},
PolicyType = "string",
Enabled = false,
},
RefererAcl = new Edgecenter.Inputs.WebsecLocationOptionsRefererAclArgs
{
ExceptedValues = new[]
{
"string",
},
PolicyType = "string",
DirectLink = false,
Enabled = false,
},
UserAgentAcl = new Edgecenter.Inputs.WebsecLocationOptionsUserAgentAclArgs
{
ExceptedValues = new[]
{
"string",
},
PolicyType = "string",
Enabled = false,
},
},
SourceGroup = 0.0,
WebsecLocationId = "string",
Weight = 0.0,
});
example, err := edgecenter.NewWebsecLocation(ctx, "websecLocationResource", &edgecenter.WebsecLocationArgs{
Location: pulumi.String("string"),
ResourceId: pulumi.Float64(0),
Active: pulumi.Bool(false),
Name: pulumi.String("string"),
Options: &edgecenter.WebsecLocationOptionsArgs{
AllowedHttpMethods: &edgecenter.WebsecLocationOptionsAllowedHttpMethodsArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
AntibotFloodChallenge: &edgecenter.WebsecLocationOptionsAntibotFloodChallengeArgs{
AntibotChallengeGetOnlyOn: pulumi.Bool(false),
AntibotChallengeTimelimit: pulumi.Float64(0),
AntibotChallengeUtmReferrer: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
Value: pulumi.String("string"),
},
AsnAcl: &edgecenter.WebsecLocationOptionsAsnAclArgs{
ExceptedValues: pulumi.Float64Array{
pulumi.Float64(0),
},
PolicyType: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
RefererAcl: &edgecenter.WebsecLocationOptionsRefererAclArgs{
ExceptedValues: pulumi.StringArray{
pulumi.String("string"),
},
PolicyType: pulumi.String("string"),
DirectLink: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
UserAgentAcl: &edgecenter.WebsecLocationOptionsUserAgentAclArgs{
ExceptedValues: pulumi.StringArray{
pulumi.String("string"),
},
PolicyType: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
},
SourceGroup: pulumi.Float64(0),
WebsecLocationId: pulumi.String("string"),
Weight: pulumi.Float64(0),
})
resource "edgecenter_websec_location" "websecLocationResource" {
lifecycle {
create_before_destroy = true
}
location = "string"
resource_id = 0
active = false
name = "string"
options = {
allowed_http_methods = {
values = ["string"]
enabled = false
}
antibot_flood_challenge = {
antibot_challenge_get_only_on = false
antibot_challenge_timelimit = 0
antibot_challenge_utm_referrer = false
enabled = false
value = "string"
}
asn_acl = {
excepted_values = [0]
policy_type = "string"
enabled = false
}
referer_acl = {
excepted_values = ["string"]
policy_type = "string"
direct_link = false
enabled = false
}
user_agent_acl = {
excepted_values = ["string"]
policy_type = "string"
enabled = false
}
}
source_group = 0
websec_location_id = "string"
weight = 0
}
var websecLocationResource = new WebsecLocation("websecLocationResource", WebsecLocationArgs.builder()
.location("string")
.resourceId(0.0)
.active(false)
.name("string")
.options(WebsecLocationOptionsArgs.builder()
.allowedHttpMethods(WebsecLocationOptionsAllowedHttpMethodsArgs.builder()
.values("string")
.enabled(false)
.build())
.antibotFloodChallenge(WebsecLocationOptionsAntibotFloodChallengeArgs.builder()
.antibotChallengeGetOnlyOn(false)
.antibotChallengeTimelimit(0.0)
.antibotChallengeUtmReferrer(false)
.enabled(false)
.value("string")
.build())
.asnAcl(WebsecLocationOptionsAsnAclArgs.builder()
.exceptedValues(0.0)
.policyType("string")
.enabled(false)
.build())
.refererAcl(WebsecLocationOptionsRefererAclArgs.builder()
.exceptedValues("string")
.policyType("string")
.directLink(false)
.enabled(false)
.build())
.userAgentAcl(WebsecLocationOptionsUserAgentAclArgs.builder()
.exceptedValues("string")
.policyType("string")
.enabled(false)
.build())
.build())
.sourceGroup(0.0)
.websecLocationId("string")
.weight(0.0)
.build());
websec_location_resource = edgecenter.WebsecLocation("websecLocationResource",
location="string",
resource_id=float(0),
active=False,
name="string",
options={
"allowed_http_methods": {
"values": ["string"],
"enabled": False,
},
"antibot_flood_challenge": {
"antibot_challenge_get_only_on": False,
"antibot_challenge_timelimit": float(0),
"antibot_challenge_utm_referrer": False,
"enabled": False,
"value": "string",
},
"asn_acl": {
"excepted_values": [float(0)],
"policy_type": "string",
"enabled": False,
},
"referer_acl": {
"excepted_values": ["string"],
"policy_type": "string",
"direct_link": False,
"enabled": False,
},
"user_agent_acl": {
"excepted_values": ["string"],
"policy_type": "string",
"enabled": False,
},
},
source_group=float(0),
websec_location_id="string",
weight=float(0))
const websecLocationResource = new edgecenter.WebsecLocation("websecLocationResource", {
location: "string",
resourceId: 0,
active: false,
name: "string",
options: {
allowedHttpMethods: {
values: ["string"],
enabled: false,
},
antibotFloodChallenge: {
antibotChallengeGetOnlyOn: false,
antibotChallengeTimelimit: 0,
antibotChallengeUtmReferrer: false,
enabled: false,
value: "string",
},
asnAcl: {
exceptedValues: [0],
policyType: "string",
enabled: false,
},
refererAcl: {
exceptedValues: ["string"],
policyType: "string",
directLink: false,
enabled: false,
},
userAgentAcl: {
exceptedValues: ["string"],
policyType: "string",
enabled: false,
},
},
sourceGroup: 0,
websecLocationId: "string",
weight: 0,
});
type: edgecenter:WebsecLocation
properties:
active: false
location: string
name: string
options:
allowedHttpMethods:
enabled: false
values:
- string
antibotFloodChallenge:
antibotChallengeGetOnlyOn: false
antibotChallengeTimelimit: 0
antibotChallengeUtmReferrer: false
enabled: false
value: string
asnAcl:
enabled: false
exceptedValues:
- 0
policyType: string
refererAcl:
directLink: false
enabled: false
exceptedValues:
- string
policyType: string
userAgentAcl:
enabled: false
exceptedValues:
- string
policyType: string
resourceId: 0
sourceGroup: 0
websecLocationId: string
weight: 0
WebsecLocation 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 WebsecLocation resource accepts the following input properties:
- Location string
- Regular expression for the request path that triggers the location. It starts with "/" or "^/", holds more than slashes, has no whitespace, quotes or semicolons and is up to 255 characters. The API also checks that it is a valid PCRE pattern. Unique within the resource.
- Resource
Id double - ID of the
edgecenter.WebsecResourcethe location belongs to. Changing it replaces the location. - Active bool
- Enable or disable the location. Defaults to
true. - Name string
- Name of the location, up to 255 characters, unique within the resource.
- Options
Websec
Location Options - Protection options of the location. The location is created with exactly the options set here, so no API defaults apply. An update sends only the options that changed, and removing an option block deletes the option. An empty
options {}block is rejected. - Source
Group double - ID of the
edgecenter.WebsecSourceGroupthe requests of the location go to. Without it they go to the source group of the resource. - Websec
Location stringId - The ID of this resource.
- Weight double
- Weight of the location, from 1 to 2147483647. Defaults to
1.
- Location string
- Regular expression for the request path that triggers the location. It starts with "/" or "^/", holds more than slashes, has no whitespace, quotes or semicolons and is up to 255 characters. The API also checks that it is a valid PCRE pattern. Unique within the resource.
- Resource
Id float64 - ID of the
edgecenter.WebsecResourcethe location belongs to. Changing it replaces the location. - Active bool
- Enable or disable the location. Defaults to
true. - Name string
- Name of the location, up to 255 characters, unique within the resource.
- Options
Websec
Location Options Args - Protection options of the location. The location is created with exactly the options set here, so no API defaults apply. An update sends only the options that changed, and removing an option block deletes the option. An empty
options {}block is rejected. - Source
Group float64 - ID of the
edgecenter.WebsecSourceGroupthe requests of the location go to. Without it they go to the source group of the resource. - Websec
Location stringId - The ID of this resource.
- Weight float64
- Weight of the location, from 1 to 2147483647. Defaults to
1.
- location string
- Regular expression for the request path that triggers the location. It starts with "/" or "^/", holds more than slashes, has no whitespace, quotes or semicolons and is up to 255 characters. The API also checks that it is a valid PCRE pattern. Unique within the resource.
- resource_
id number - ID of the
edgecenter.WebsecResourcethe location belongs to. Changing it replaces the location. - active bool
- Enable or disable the location. Defaults to
true. - name string
- Name of the location, up to 255 characters, unique within the resource.
- options object
- Protection options of the location. The location is created with exactly the options set here, so no API defaults apply. An update sends only the options that changed, and removing an option block deletes the option. An empty
options {}block is rejected. - source_
group number - ID of the
edgecenter.WebsecSourceGroupthe requests of the location go to. Without it they go to the source group of the resource. - websec_
location_ stringid - The ID of this resource.
- weight number
- Weight of the location, from 1 to 2147483647. Defaults to
1.
- location String
- Regular expression for the request path that triggers the location. It starts with "/" or "^/", holds more than slashes, has no whitespace, quotes or semicolons and is up to 255 characters. The API also checks that it is a valid PCRE pattern. Unique within the resource.
- resource
Id Double - ID of the
edgecenter.WebsecResourcethe location belongs to. Changing it replaces the location. - active Boolean
- Enable or disable the location. Defaults to
true. - name String
- Name of the location, up to 255 characters, unique within the resource.
- options
Websec
Location Options - Protection options of the location. The location is created with exactly the options set here, so no API defaults apply. An update sends only the options that changed, and removing an option block deletes the option. An empty
options {}block is rejected. - source
Group Double - ID of the
edgecenter.WebsecSourceGroupthe requests of the location go to. Without it they go to the source group of the resource. - websec
Location StringId - The ID of this resource.
- weight Double
- Weight of the location, from 1 to 2147483647. Defaults to
1.
- location string
- Regular expression for the request path that triggers the location. It starts with "/" or "^/", holds more than slashes, has no whitespace, quotes or semicolons and is up to 255 characters. The API also checks that it is a valid PCRE pattern. Unique within the resource.
- resource
Id number - ID of the
edgecenter.WebsecResourcethe location belongs to. Changing it replaces the location. - active boolean
- Enable or disable the location. Defaults to
true. - name string
- Name of the location, up to 255 characters, unique within the resource.
- options
Websec
Location Options - Protection options of the location. The location is created with exactly the options set here, so no API defaults apply. An update sends only the options that changed, and removing an option block deletes the option. An empty
options {}block is rejected. - source
Group number - ID of the
edgecenter.WebsecSourceGroupthe requests of the location go to. Without it they go to the source group of the resource. - websec
Location stringId - The ID of this resource.
- weight number
- Weight of the location, from 1 to 2147483647. Defaults to
1.
- location str
- Regular expression for the request path that triggers the location. It starts with "/" or "^/", holds more than slashes, has no whitespace, quotes or semicolons and is up to 255 characters. The API also checks that it is a valid PCRE pattern. Unique within the resource.
- resource_
id float - ID of the
edgecenter.WebsecResourcethe location belongs to. Changing it replaces the location. - active bool
- Enable or disable the location. Defaults to
true. - name str
- Name of the location, up to 255 characters, unique within the resource.
- options
Websec
Location Options Args - Protection options of the location. The location is created with exactly the options set here, so no API defaults apply. An update sends only the options that changed, and removing an option block deletes the option. An empty
options {}block is rejected. - source_
group float - ID of the
edgecenter.WebsecSourceGroupthe requests of the location go to. Without it they go to the source group of the resource. - websec_
location_ strid - The ID of this resource.
- weight float
- Weight of the location, from 1 to 2147483647. Defaults to
1.
- location String
- Regular expression for the request path that triggers the location. It starts with "/" or "^/", holds more than slashes, has no whitespace, quotes or semicolons and is up to 255 characters. The API also checks that it is a valid PCRE pattern. Unique within the resource.
- resource
Id Number - ID of the
edgecenter.WebsecResourcethe location belongs to. Changing it replaces the location. - active Boolean
- Enable or disable the location. Defaults to
true. - name String
- Name of the location, up to 255 characters, unique within the resource.
- options Property Map
- Protection options of the location. The location is created with exactly the options set here, so no API defaults apply. An update sends only the options that changed, and removing an option block deletes the option. An empty
options {}block is rejected. - source
Group Number - ID of the
edgecenter.WebsecSourceGroupthe requests of the location go to. Without it they go to the source group of the resource. - websec
Location StringId - The ID of this resource.
- weight Number
- Weight of the location, from 1 to 2147483647. Defaults to
1.
Outputs
All input properties are implicitly available as output properties. Additionally, the WebsecLocation 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 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 WebsecLocation Resource
Get an existing WebsecLocation 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?: WebsecLocationState, opts?: CustomResourceOptions): WebsecLocation@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active: Optional[bool] = None,
location: Optional[str] = None,
name: Optional[str] = None,
options: Optional[WebsecLocationOptionsArgs] = None,
resource_id: Optional[float] = None,
source_group: Optional[float] = None,
websec_location_id: Optional[str] = None,
weight: Optional[float] = None) -> WebsecLocationfunc GetWebsecLocation(ctx *Context, name string, id IDInput, state *WebsecLocationState, opts ...ResourceOption) (*WebsecLocation, error)public static WebsecLocation Get(string name, Input<string> id, WebsecLocationState? state, CustomResourceOptions? opts = null)public static WebsecLocation get(String name, Output<String> id, WebsecLocationState state, CustomResourceOptions options)resources: _: type: edgecenter:WebsecLocation get: id: ${id}import {
to = edgecenter_websec_location.example
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.
- Active bool
- Enable or disable the location. Defaults to
true. - Location string
- Regular expression for the request path that triggers the location. It starts with "/" or "^/", holds more than slashes, has no whitespace, quotes or semicolons and is up to 255 characters. The API also checks that it is a valid PCRE pattern. Unique within the resource.
- Name string
- Name of the location, up to 255 characters, unique within the resource.
- Options
Websec
Location Options - Protection options of the location. The location is created with exactly the options set here, so no API defaults apply. An update sends only the options that changed, and removing an option block deletes the option. An empty
options {}block is rejected. - Resource
Id double - ID of the
edgecenter.WebsecResourcethe location belongs to. Changing it replaces the location. - Source
Group double - ID of the
edgecenter.WebsecSourceGroupthe requests of the location go to. Without it they go to the source group of the resource. - Websec
Location stringId - The ID of this resource.
- Weight double
- Weight of the location, from 1 to 2147483647. Defaults to
1.
- Active bool
- Enable or disable the location. Defaults to
true. - Location string
- Regular expression for the request path that triggers the location. It starts with "/" or "^/", holds more than slashes, has no whitespace, quotes or semicolons and is up to 255 characters. The API also checks that it is a valid PCRE pattern. Unique within the resource.
- Name string
- Name of the location, up to 255 characters, unique within the resource.
- Options
Websec
Location Options Args - Protection options of the location. The location is created with exactly the options set here, so no API defaults apply. An update sends only the options that changed, and removing an option block deletes the option. An empty
options {}block is rejected. - Resource
Id float64 - ID of the
edgecenter.WebsecResourcethe location belongs to. Changing it replaces the location. - Source
Group float64 - ID of the
edgecenter.WebsecSourceGroupthe requests of the location go to. Without it they go to the source group of the resource. - Websec
Location stringId - The ID of this resource.
- Weight float64
- Weight of the location, from 1 to 2147483647. Defaults to
1.
- active bool
- Enable or disable the location. Defaults to
true. - location string
- Regular expression for the request path that triggers the location. It starts with "/" or "^/", holds more than slashes, has no whitespace, quotes or semicolons and is up to 255 characters. The API also checks that it is a valid PCRE pattern. Unique within the resource.
- name string
- Name of the location, up to 255 characters, unique within the resource.
- options object
- Protection options of the location. The location is created with exactly the options set here, so no API defaults apply. An update sends only the options that changed, and removing an option block deletes the option. An empty
options {}block is rejected. - resource_
id number - ID of the
edgecenter.WebsecResourcethe location belongs to. Changing it replaces the location. - source_
group number - ID of the
edgecenter.WebsecSourceGroupthe requests of the location go to. Without it they go to the source group of the resource. - websec_
location_ stringid - The ID of this resource.
- weight number
- Weight of the location, from 1 to 2147483647. Defaults to
1.
- active Boolean
- Enable or disable the location. Defaults to
true. - location String
- Regular expression for the request path that triggers the location. It starts with "/" or "^/", holds more than slashes, has no whitespace, quotes or semicolons and is up to 255 characters. The API also checks that it is a valid PCRE pattern. Unique within the resource.
- name String
- Name of the location, up to 255 characters, unique within the resource.
- options
Websec
Location Options - Protection options of the location. The location is created with exactly the options set here, so no API defaults apply. An update sends only the options that changed, and removing an option block deletes the option. An empty
options {}block is rejected. - resource
Id Double - ID of the
edgecenter.WebsecResourcethe location belongs to. Changing it replaces the location. - source
Group Double - ID of the
edgecenter.WebsecSourceGroupthe requests of the location go to. Without it they go to the source group of the resource. - websec
Location StringId - The ID of this resource.
- weight Double
- Weight of the location, from 1 to 2147483647. Defaults to
1.
- active boolean
- Enable or disable the location. Defaults to
true. - location string
- Regular expression for the request path that triggers the location. It starts with "/" or "^/", holds more than slashes, has no whitespace, quotes or semicolons and is up to 255 characters. The API also checks that it is a valid PCRE pattern. Unique within the resource.
- name string
- Name of the location, up to 255 characters, unique within the resource.
- options
Websec
Location Options - Protection options of the location. The location is created with exactly the options set here, so no API defaults apply. An update sends only the options that changed, and removing an option block deletes the option. An empty
options {}block is rejected. - resource
Id number - ID of the
edgecenter.WebsecResourcethe location belongs to. Changing it replaces the location. - source
Group number - ID of the
edgecenter.WebsecSourceGroupthe requests of the location go to. Without it they go to the source group of the resource. - websec
Location stringId - The ID of this resource.
- weight number
- Weight of the location, from 1 to 2147483647. Defaults to
1.
- active bool
- Enable or disable the location. Defaults to
true. - location str
- Regular expression for the request path that triggers the location. It starts with "/" or "^/", holds more than slashes, has no whitespace, quotes or semicolons and is up to 255 characters. The API also checks that it is a valid PCRE pattern. Unique within the resource.
- name str
- Name of the location, up to 255 characters, unique within the resource.
- options
Websec
Location Options Args - Protection options of the location. The location is created with exactly the options set here, so no API defaults apply. An update sends only the options that changed, and removing an option block deletes the option. An empty
options {}block is rejected. - resource_
id float - ID of the
edgecenter.WebsecResourcethe location belongs to. Changing it replaces the location. - source_
group float - ID of the
edgecenter.WebsecSourceGroupthe requests of the location go to. Without it they go to the source group of the resource. - websec_
location_ strid - The ID of this resource.
- weight float
- Weight of the location, from 1 to 2147483647. Defaults to
1.
- active Boolean
- Enable or disable the location. Defaults to
true. - location String
- Regular expression for the request path that triggers the location. It starts with "/" or "^/", holds more than slashes, has no whitespace, quotes or semicolons and is up to 255 characters. The API also checks that it is a valid PCRE pattern. Unique within the resource.
- name String
- Name of the location, up to 255 characters, unique within the resource.
- options Property Map
- Protection options of the location. The location is created with exactly the options set here, so no API defaults apply. An update sends only the options that changed, and removing an option block deletes the option. An empty
options {}block is rejected. - resource
Id Number - ID of the
edgecenter.WebsecResourcethe location belongs to. Changing it replaces the location. - source
Group Number - ID of the
edgecenter.WebsecSourceGroupthe requests of the location go to. Without it they go to the source group of the resource. - websec
Location StringId - The ID of this resource.
- weight Number
- Weight of the location, from 1 to 2147483647. Defaults to
1.
Supporting Types
WebsecLocationOptions, WebsecLocationOptionsArgs
- Allowed
Http WebsecMethods Location Options Allowed Http Methods - HTTP methods allowed in requests. The methods you can use are set per client and resource, by default "GET", "HEAD", "POST", "PUT", "PATCH", "DELETE" and "OPTIONS".
- Antibot
Flood WebsecChallenge Location Options Antibot Flood Challenge - Check that a request comes from a browser before passing it on. The check answers with HTTP 307 and sets the antibot cookie. Disabling it on a resource also disables
antibot_challenge_url_exceptionsandantibot_flood_challenge_user_agent_whitelistof the resource. - Asn
Acl WebsecLocation Options Asn Acl - Allow or deny requests by the autonomous system number of the client.
- Referer
Acl WebsecLocation Options Referer Acl - Allow or deny requests by the Referer header.
- User
Agent WebsecAcl Location Options User Agent Acl - Allow or deny requests by the User-Agent header.
- Allowed
Http WebsecMethods Location Options Allowed Http Methods - HTTP methods allowed in requests. The methods you can use are set per client and resource, by default "GET", "HEAD", "POST", "PUT", "PATCH", "DELETE" and "OPTIONS".
- Antibot
Flood WebsecChallenge Location Options Antibot Flood Challenge - Check that a request comes from a browser before passing it on. The check answers with HTTP 307 and sets the antibot cookie. Disabling it on a resource also disables
antibot_challenge_url_exceptionsandantibot_flood_challenge_user_agent_whitelistof the resource. - Asn
Acl WebsecLocation Options Asn Acl - Allow or deny requests by the autonomous system number of the client.
- Referer
Acl WebsecLocation Options Referer Acl - Allow or deny requests by the Referer header.
- User
Agent WebsecAcl Location Options User Agent Acl - Allow or deny requests by the User-Agent header.
- allowed_
http_ objectmethods - HTTP methods allowed in requests. The methods you can use are set per client and resource, by default "GET", "HEAD", "POST", "PUT", "PATCH", "DELETE" and "OPTIONS".
- antibot_
flood_ objectchallenge - Check that a request comes from a browser before passing it on. The check answers with HTTP 307 and sets the antibot cookie. Disabling it on a resource also disables
antibot_challenge_url_exceptionsandantibot_flood_challenge_user_agent_whitelistof the resource. - asn_
acl object - Allow or deny requests by the autonomous system number of the client.
- referer_
acl object - Allow or deny requests by the Referer header.
- user_
agent_ objectacl - Allow or deny requests by the User-Agent header.
- allowed
Http WebsecMethods Location Options Allowed Http Methods - HTTP methods allowed in requests. The methods you can use are set per client and resource, by default "GET", "HEAD", "POST", "PUT", "PATCH", "DELETE" and "OPTIONS".
- antibot
Flood WebsecChallenge Location Options Antibot Flood Challenge - Check that a request comes from a browser before passing it on. The check answers with HTTP 307 and sets the antibot cookie. Disabling it on a resource also disables
antibot_challenge_url_exceptionsandantibot_flood_challenge_user_agent_whitelistof the resource. - asn
Acl WebsecLocation Options Asn Acl - Allow or deny requests by the autonomous system number of the client.
- referer
Acl WebsecLocation Options Referer Acl - Allow or deny requests by the Referer header.
- user
Agent WebsecAcl Location Options User Agent Acl - Allow or deny requests by the User-Agent header.
- allowed
Http WebsecMethods Location Options Allowed Http Methods - HTTP methods allowed in requests. The methods you can use are set per client and resource, by default "GET", "HEAD", "POST", "PUT", "PATCH", "DELETE" and "OPTIONS".
- antibot
Flood WebsecChallenge Location Options Antibot Flood Challenge - Check that a request comes from a browser before passing it on. The check answers with HTTP 307 and sets the antibot cookie. Disabling it on a resource also disables
antibot_challenge_url_exceptionsandantibot_flood_challenge_user_agent_whitelistof the resource. - asn
Acl WebsecLocation Options Asn Acl - Allow or deny requests by the autonomous system number of the client.
- referer
Acl WebsecLocation Options Referer Acl - Allow or deny requests by the Referer header.
- user
Agent WebsecAcl Location Options User Agent Acl - Allow or deny requests by the User-Agent header.
- allowed_
http_ Websecmethods Location Options Allowed Http Methods - HTTP methods allowed in requests. The methods you can use are set per client and resource, by default "GET", "HEAD", "POST", "PUT", "PATCH", "DELETE" and "OPTIONS".
- antibot_
flood_ Websecchallenge Location Options Antibot Flood Challenge - Check that a request comes from a browser before passing it on. The check answers with HTTP 307 and sets the antibot cookie. Disabling it on a resource also disables
antibot_challenge_url_exceptionsandantibot_flood_challenge_user_agent_whitelistof the resource. - asn_
acl WebsecLocation Options Asn Acl - Allow or deny requests by the autonomous system number of the client.
- referer_
acl WebsecLocation Options Referer Acl - Allow or deny requests by the Referer header.
- user_
agent_ Websecacl Location Options User Agent Acl - Allow or deny requests by the User-Agent header.
- allowed
Http Property MapMethods - HTTP methods allowed in requests. The methods you can use are set per client and resource, by default "GET", "HEAD", "POST", "PUT", "PATCH", "DELETE" and "OPTIONS".
- antibot
Flood Property MapChallenge - Check that a request comes from a browser before passing it on. The check answers with HTTP 307 and sets the antibot cookie. Disabling it on a resource also disables
antibot_challenge_url_exceptionsandantibot_flood_challenge_user_agent_whitelistof the resource. - asn
Acl Property Map - Allow or deny requests by the autonomous system number of the client.
- referer
Acl Property Map - Allow or deny requests by the Referer header.
- user
Agent Property MapAcl - Allow or deny requests by the User-Agent header.
WebsecLocationOptionsAllowedHttpMethods, WebsecLocationOptionsAllowedHttpMethodsArgs
WebsecLocationOptionsAntibotFloodChallenge, WebsecLocationOptionsAntibotFloodChallengeArgs
- Antibot
Challenge boolGet Only On - Apply the antibot cookie to GET requests only. Defaults to
false. - Antibot
Challenge doubleTimelimit - Lifetime of the antibot cookie in minutes. Defaults to
10. - Antibot
Challenge boolUtm Referrer - Keep the UTM parameters of the original request through the challenge redirect. Defaults to
false. - Enabled bool
- Enable or disable the option. Defaults to
true. - Value string
- Check type: "ANTIBOTCHALLENGE" checks the browser request, "ANTIBOTCHALLENGEJS" checks it with a JavaScript file, "ANTIBOTCHALLENGEJSBOX" needs a human interaction. Required when the option is enabled.
- Antibot
Challenge boolGet Only On - Apply the antibot cookie to GET requests only. Defaults to
false. - Antibot
Challenge float64Timelimit - Lifetime of the antibot cookie in minutes. Defaults to
10. - Antibot
Challenge boolUtm Referrer - Keep the UTM parameters of the original request through the challenge redirect. Defaults to
false. - Enabled bool
- Enable or disable the option. Defaults to
true. - Value string
- Check type: "ANTIBOTCHALLENGE" checks the browser request, "ANTIBOTCHALLENGEJS" checks it with a JavaScript file, "ANTIBOTCHALLENGEJSBOX" needs a human interaction. Required when the option is enabled.
- antibot_
challenge_ boolget_ only_ on - Apply the antibot cookie to GET requests only. Defaults to
false. - antibot_
challenge_ numbertimelimit - Lifetime of the antibot cookie in minutes. Defaults to
10. - antibot_
challenge_ boolutm_ referrer - Keep the UTM parameters of the original request through the challenge redirect. Defaults to
false. - enabled bool
- Enable or disable the option. Defaults to
true. - value string
- Check type: "ANTIBOTCHALLENGE" checks the browser request, "ANTIBOTCHALLENGEJS" checks it with a JavaScript file, "ANTIBOTCHALLENGEJSBOX" needs a human interaction. Required when the option is enabled.
- antibot
Challenge BooleanGet Only On - Apply the antibot cookie to GET requests only. Defaults to
false. - antibot
Challenge DoubleTimelimit - Lifetime of the antibot cookie in minutes. Defaults to
10. - antibot
Challenge BooleanUtm Referrer - Keep the UTM parameters of the original request through the challenge redirect. Defaults to
false. - enabled Boolean
- Enable or disable the option. Defaults to
true. - value String
- Check type: "ANTIBOTCHALLENGE" checks the browser request, "ANTIBOTCHALLENGEJS" checks it with a JavaScript file, "ANTIBOTCHALLENGEJSBOX" needs a human interaction. Required when the option is enabled.
- antibot
Challenge booleanGet Only On - Apply the antibot cookie to GET requests only. Defaults to
false. - antibot
Challenge numberTimelimit - Lifetime of the antibot cookie in minutes. Defaults to
10. - antibot
Challenge booleanUtm Referrer - Keep the UTM parameters of the original request through the challenge redirect. Defaults to
false. - enabled boolean
- Enable or disable the option. Defaults to
true. - value string
- Check type: "ANTIBOTCHALLENGE" checks the browser request, "ANTIBOTCHALLENGEJS" checks it with a JavaScript file, "ANTIBOTCHALLENGEJSBOX" needs a human interaction. Required when the option is enabled.
- antibot_
challenge_ boolget_ only_ on - Apply the antibot cookie to GET requests only. Defaults to
false. - antibot_
challenge_ floattimelimit - Lifetime of the antibot cookie in minutes. Defaults to
10. - antibot_
challenge_ boolutm_ referrer - Keep the UTM parameters of the original request through the challenge redirect. Defaults to
false. - enabled bool
- Enable or disable the option. Defaults to
true. - value str
- Check type: "ANTIBOTCHALLENGE" checks the browser request, "ANTIBOTCHALLENGEJS" checks it with a JavaScript file, "ANTIBOTCHALLENGEJSBOX" needs a human interaction. Required when the option is enabled.
- antibot
Challenge BooleanGet Only On - Apply the antibot cookie to GET requests only. Defaults to
false. - antibot
Challenge NumberTimelimit - Lifetime of the antibot cookie in minutes. Defaults to
10. - antibot
Challenge BooleanUtm Referrer - Keep the UTM parameters of the original request through the challenge redirect. Defaults to
false. - enabled Boolean
- Enable or disable the option. Defaults to
true. - value String
- Check type: "ANTIBOTCHALLENGE" checks the browser request, "ANTIBOTCHALLENGEJS" checks it with a JavaScript file, "ANTIBOTCHALLENGEJSBOX" needs a human interaction. Required when the option is enabled.
WebsecLocationOptionsAsnAcl, WebsecLocationOptionsAsnAclArgs
- Excepted
Values List<double> - ASNs that are the exceptions from
policy_type, from 1 to 2147483647. Private 4-byte ASNs above 2147483647 cannot be set. - Policy
Type string - Default policy, "allow" or "deny". Requests that match
excepted_valuesget the opposite one. - Enabled bool
- Enable or disable the option. Defaults to
true.
- Excepted
Values []float64 - ASNs that are the exceptions from
policy_type, from 1 to 2147483647. Private 4-byte ASNs above 2147483647 cannot be set. - Policy
Type string - Default policy, "allow" or "deny". Requests that match
excepted_valuesget the opposite one. - Enabled bool
- Enable or disable the option. Defaults to
true.
- excepted_
values list(number) - ASNs that are the exceptions from
policy_type, from 1 to 2147483647. Private 4-byte ASNs above 2147483647 cannot be set. - policy_
type string - Default policy, "allow" or "deny". Requests that match
excepted_valuesget the opposite one. - enabled bool
- Enable or disable the option. Defaults to
true.
- excepted
Values List<Double> - ASNs that are the exceptions from
policy_type, from 1 to 2147483647. Private 4-byte ASNs above 2147483647 cannot be set. - policy
Type String - Default policy, "allow" or "deny". Requests that match
excepted_valuesget the opposite one. - enabled Boolean
- Enable or disable the option. Defaults to
true.
- excepted
Values number[] - ASNs that are the exceptions from
policy_type, from 1 to 2147483647. Private 4-byte ASNs above 2147483647 cannot be set. - policy
Type string - Default policy, "allow" or "deny". Requests that match
excepted_valuesget the opposite one. - enabled boolean
- Enable or disable the option. Defaults to
true.
- excepted_
values Sequence[float] - ASNs that are the exceptions from
policy_type, from 1 to 2147483647. Private 4-byte ASNs above 2147483647 cannot be set. - policy_
type str - Default policy, "allow" or "deny". Requests that match
excepted_valuesget the opposite one. - enabled bool
- Enable or disable the option. Defaults to
true.
- excepted
Values List<Number> - ASNs that are the exceptions from
policy_type, from 1 to 2147483647. Private 4-byte ASNs above 2147483647 cannot be set. - policy
Type String - Default policy, "allow" or "deny". Requests that match
excepted_valuesget the opposite one. - enabled Boolean
- Enable or disable the option. Defaults to
true.
WebsecLocationOptionsRefererAcl, WebsecLocationOptionsRefererAclArgs
- Excepted
Values List<string> - Domains, ".domain" or "domain." patterns in lowercase that are the exceptions from
policy_type. An empty string stands for requests without the Referer header and needs at least one more value. - Policy
Type string - Default policy, "allow" or "deny". Requests that match
excepted_valuesget the opposite one. - Direct
Link bool - How the API handles requests without the Referer header, its
direct_linkflag. Defaults tofalse. - Enabled bool
- Enable or disable the option. Defaults to
true.
- Excepted
Values []string - Domains, ".domain" or "domain." patterns in lowercase that are the exceptions from
policy_type. An empty string stands for requests without the Referer header and needs at least one more value. - Policy
Type string - Default policy, "allow" or "deny". Requests that match
excepted_valuesget the opposite one. - Direct
Link bool - How the API handles requests without the Referer header, its
direct_linkflag. Defaults tofalse. - Enabled bool
- Enable or disable the option. Defaults to
true.
- excepted_
values list(string) - Domains, ".domain" or "domain." patterns in lowercase that are the exceptions from
policy_type. An empty string stands for requests without the Referer header and needs at least one more value. - policy_
type string - Default policy, "allow" or "deny". Requests that match
excepted_valuesget the opposite one. - direct_
link bool - How the API handles requests without the Referer header, its
direct_linkflag. Defaults tofalse. - enabled bool
- Enable or disable the option. Defaults to
true.
- excepted
Values List<String> - Domains, ".domain" or "domain." patterns in lowercase that are the exceptions from
policy_type. An empty string stands for requests without the Referer header and needs at least one more value. - policy
Type String - Default policy, "allow" or "deny". Requests that match
excepted_valuesget the opposite one. - direct
Link Boolean - How the API handles requests without the Referer header, its
direct_linkflag. Defaults tofalse. - enabled Boolean
- Enable or disable the option. Defaults to
true.
- excepted
Values string[] - Domains, ".domain" or "domain." patterns in lowercase that are the exceptions from
policy_type. An empty string stands for requests without the Referer header and needs at least one more value. - policy
Type string - Default policy, "allow" or "deny". Requests that match
excepted_valuesget the opposite one. - direct
Link boolean - How the API handles requests without the Referer header, its
direct_linkflag. Defaults tofalse. - enabled boolean
- Enable or disable the option. Defaults to
true.
- excepted_
values Sequence[str] - Domains, ".domain" or "domain." patterns in lowercase that are the exceptions from
policy_type. An empty string stands for requests without the Referer header and needs at least one more value. - policy_
type str - Default policy, "allow" or "deny". Requests that match
excepted_valuesget the opposite one. - direct_
link bool - How the API handles requests without the Referer header, its
direct_linkflag. Defaults tofalse. - enabled bool
- Enable or disable the option. Defaults to
true.
- excepted
Values List<String> - Domains, ".domain" or "domain." patterns in lowercase that are the exceptions from
policy_type. An empty string stands for requests without the Referer header and needs at least one more value. - policy
Type String - Default policy, "allow" or "deny". Requests that match
excepted_valuesget the opposite one. - direct
Link Boolean - How the API handles requests without the Referer header, its
direct_linkflag. Defaults tofalse. - enabled Boolean
- Enable or disable the option. Defaults to
true.
WebsecLocationOptionsUserAgentAcl, WebsecLocationOptionsUserAgentAclArgs
- Excepted
Values List<string> - User agents that are the exceptions from
policy_type. A value that starts with "~" is a regular expression. - Policy
Type string - Default policy, "allow" or "deny". Requests that match
excepted_valuesget the opposite one. - Enabled bool
- Enable or disable the option. Defaults to
true.
- Excepted
Values []string - User agents that are the exceptions from
policy_type. A value that starts with "~" is a regular expression. - Policy
Type string - Default policy, "allow" or "deny". Requests that match
excepted_valuesget the opposite one. - Enabled bool
- Enable or disable the option. Defaults to
true.
- excepted_
values list(string) - User agents that are the exceptions from
policy_type. A value that starts with "~" is a regular expression. - policy_
type string - Default policy, "allow" or "deny". Requests that match
excepted_valuesget the opposite one. - enabled bool
- Enable or disable the option. Defaults to
true.
- excepted
Values List<String> - User agents that are the exceptions from
policy_type. A value that starts with "~" is a regular expression. - policy
Type String - Default policy, "allow" or "deny". Requests that match
excepted_valuesget the opposite one. - enabled Boolean
- Enable or disable the option. Defaults to
true.
- excepted
Values string[] - User agents that are the exceptions from
policy_type. A value that starts with "~" is a regular expression. - policy
Type string - Default policy, "allow" or "deny". Requests that match
excepted_valuesget the opposite one. - enabled boolean
- Enable or disable the option. Defaults to
true.
- excepted_
values Sequence[str] - User agents that are the exceptions from
policy_type. A value that starts with "~" is a regular expression. - policy_
type str - Default policy, "allow" or "deny". Requests that match
excepted_valuesget the opposite one. - enabled bool
- Enable or disable the option. Defaults to
true.
- excepted
Values List<String> - User agents that are the exceptions from
policy_type. A value that starts with "~" is a regular expression. - policy
Type String - Default policy, "allow" or "deny". Requests that match
excepted_valuesget the opposite one. - enabled Boolean
- Enable or disable the option. Defaults to
true.
Import
The pulumi import command can be used, for example:
$ pulumi import edgecenter:index/websecLocation:WebsecLocation example_com_api 12345:67
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- edgecenter edge-center/terraform-provider-edgecenter
- License
- Notes
- This Pulumi package is based on the
edgecenterTerraform Provider.
published on Tuesday, Nov 3, 2026 by edge-center