1. Registry
  2. Packages
  3. Edgecenter Provider
  4. API Docs
  5. WebsecLocation
Viewing docs for edgecenter 0.18.2
published on Tuesday, Nov 3, 2026 by edge-center
edgecenter
Viewing docs for edgecenter 0.18.2
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.
    ResourceId double
    ID of the edgecenter.WebsecResource the 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 WebsecLocationOptions
    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.
    SourceGroup double
    ID of the edgecenter.WebsecSourceGroup the requests of the location go to. Without it they go to the source group of the resource.
    WebsecLocationId string
    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.
    ResourceId float64
    ID of the edgecenter.WebsecResource the 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 WebsecLocationOptionsArgs
    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.
    SourceGroup float64
    ID of the edgecenter.WebsecSourceGroup the requests of the location go to. Without it they go to the source group of the resource.
    WebsecLocationId string
    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.WebsecResource the 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.WebsecSourceGroup the requests of the location go to. Without it they go to the source group of the resource.
    websec_location_id string
    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.
    resourceId Double
    ID of the edgecenter.WebsecResource the 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 WebsecLocationOptions
    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.
    sourceGroup Double
    ID of the edgecenter.WebsecSourceGroup the requests of the location go to. Without it they go to the source group of the resource.
    websecLocationId String
    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.
    resourceId number
    ID of the edgecenter.WebsecResource the 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 WebsecLocationOptions
    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.
    sourceGroup number
    ID of the edgecenter.WebsecSourceGroup the requests of the location go to. Without it they go to the source group of the resource.
    websecLocationId string
    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.WebsecResource the 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 WebsecLocationOptionsArgs
    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.WebsecSourceGroup the requests of the location go to. Without it they go to the source group of the resource.
    websec_location_id str
    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.
    resourceId Number
    ID of the edgecenter.WebsecResource the 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.
    sourceGroup Number
    ID of the edgecenter.WebsecSourceGroup the requests of the location go to. Without it they go to the source group of the resource.
    websecLocationId String
    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) -> WebsecLocation
    func 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.
    The following state arguments are supported:
    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 WebsecLocationOptions
    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.
    ResourceId double
    ID of the edgecenter.WebsecResource the location belongs to. Changing it replaces the location.
    SourceGroup double
    ID of the edgecenter.WebsecSourceGroup the requests of the location go to. Without it they go to the source group of the resource.
    WebsecLocationId string
    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 WebsecLocationOptionsArgs
    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.
    ResourceId float64
    ID of the edgecenter.WebsecResource the location belongs to. Changing it replaces the location.
    SourceGroup float64
    ID of the edgecenter.WebsecSourceGroup the requests of the location go to. Without it they go to the source group of the resource.
    WebsecLocationId string
    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.WebsecResource the location belongs to. Changing it replaces the location.
    source_group number
    ID of the edgecenter.WebsecSourceGroup the requests of the location go to. Without it they go to the source group of the resource.
    websec_location_id string
    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 WebsecLocationOptions
    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.
    resourceId Double
    ID of the edgecenter.WebsecResource the location belongs to. Changing it replaces the location.
    sourceGroup Double
    ID of the edgecenter.WebsecSourceGroup the requests of the location go to. Without it they go to the source group of the resource.
    websecLocationId String
    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 WebsecLocationOptions
    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.
    resourceId number
    ID of the edgecenter.WebsecResource the location belongs to. Changing it replaces the location.
    sourceGroup number
    ID of the edgecenter.WebsecSourceGroup the requests of the location go to. Without it they go to the source group of the resource.
    websecLocationId string
    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 WebsecLocationOptionsArgs
    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.WebsecResource the location belongs to. Changing it replaces the location.
    source_group float
    ID of the edgecenter.WebsecSourceGroup the requests of the location go to. Without it they go to the source group of the resource.
    websec_location_id str
    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.
    resourceId Number
    ID of the edgecenter.WebsecResource the location belongs to. Changing it replaces the location.
    sourceGroup Number
    ID of the edgecenter.WebsecSourceGroup the requests of the location go to. Without it they go to the source group of the resource.
    websecLocationId String
    The ID of this resource.
    weight Number
    Weight of the location, from 1 to 2147483647. Defaults to 1.

    Supporting Types

    WebsecLocationOptions, WebsecLocationOptionsArgs

    AllowedHttpMethods WebsecLocationOptionsAllowedHttpMethods
    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".
    AntibotFloodChallenge WebsecLocationOptionsAntibotFloodChallenge
    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_exceptions and antibot_flood_challenge_user_agent_whitelist of the resource.
    AsnAcl WebsecLocationOptionsAsnAcl
    Allow or deny requests by the autonomous system number of the client.
    RefererAcl WebsecLocationOptionsRefererAcl
    Allow or deny requests by the Referer header.
    UserAgentAcl WebsecLocationOptionsUserAgentAcl
    Allow or deny requests by the User-Agent header.
    AllowedHttpMethods WebsecLocationOptionsAllowedHttpMethods
    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".
    AntibotFloodChallenge WebsecLocationOptionsAntibotFloodChallenge
    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_exceptions and antibot_flood_challenge_user_agent_whitelist of the resource.
    AsnAcl WebsecLocationOptionsAsnAcl
    Allow or deny requests by the autonomous system number of the client.
    RefererAcl WebsecLocationOptionsRefererAcl
    Allow or deny requests by the Referer header.
    UserAgentAcl WebsecLocationOptionsUserAgentAcl
    Allow or deny requests by the User-Agent header.
    allowed_http_methods object
    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_challenge object
    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_exceptions and antibot_flood_challenge_user_agent_whitelist of 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_acl object
    Allow or deny requests by the User-Agent header.
    allowedHttpMethods WebsecLocationOptionsAllowedHttpMethods
    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".
    antibotFloodChallenge WebsecLocationOptionsAntibotFloodChallenge
    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_exceptions and antibot_flood_challenge_user_agent_whitelist of the resource.
    asnAcl WebsecLocationOptionsAsnAcl
    Allow or deny requests by the autonomous system number of the client.
    refererAcl WebsecLocationOptionsRefererAcl
    Allow or deny requests by the Referer header.
    userAgentAcl WebsecLocationOptionsUserAgentAcl
    Allow or deny requests by the User-Agent header.
    allowedHttpMethods WebsecLocationOptionsAllowedHttpMethods
    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".
    antibotFloodChallenge WebsecLocationOptionsAntibotFloodChallenge
    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_exceptions and antibot_flood_challenge_user_agent_whitelist of the resource.
    asnAcl WebsecLocationOptionsAsnAcl
    Allow or deny requests by the autonomous system number of the client.
    refererAcl WebsecLocationOptionsRefererAcl
    Allow or deny requests by the Referer header.
    userAgentAcl WebsecLocationOptionsUserAgentAcl
    Allow or deny requests by the User-Agent header.
    allowed_http_methods WebsecLocationOptionsAllowedHttpMethods
    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_challenge WebsecLocationOptionsAntibotFloodChallenge
    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_exceptions and antibot_flood_challenge_user_agent_whitelist of the resource.
    asn_acl WebsecLocationOptionsAsnAcl
    Allow or deny requests by the autonomous system number of the client.
    referer_acl WebsecLocationOptionsRefererAcl
    Allow or deny requests by the Referer header.
    user_agent_acl WebsecLocationOptionsUserAgentAcl
    Allow or deny requests by the User-Agent header.
    allowedHttpMethods Property Map
    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".
    antibotFloodChallenge Property Map
    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_exceptions and antibot_flood_challenge_user_agent_whitelist of the resource.
    asnAcl Property Map
    Allow or deny requests by the autonomous system number of the client.
    refererAcl Property Map
    Allow or deny requests by the Referer header.
    userAgentAcl Property Map
    Allow or deny requests by the User-Agent header.

    WebsecLocationOptionsAllowedHttpMethods, WebsecLocationOptionsAllowedHttpMethodsArgs

    Values List<string>
    Allowed HTTP methods.
    Enabled bool
    Enable or disable the option. Defaults to true.
    Values []string
    Allowed HTTP methods.
    Enabled bool
    Enable or disable the option. Defaults to true.
    values list(string)
    Allowed HTTP methods.
    enabled bool
    Enable or disable the option. Defaults to true.
    values List<String>
    Allowed HTTP methods.
    enabled Boolean
    Enable or disable the option. Defaults to true.
    values string[]
    Allowed HTTP methods.
    enabled boolean
    Enable or disable the option. Defaults to true.
    values Sequence[str]
    Allowed HTTP methods.
    enabled bool
    Enable or disable the option. Defaults to true.
    values List<String>
    Allowed HTTP methods.
    enabled Boolean
    Enable or disable the option. Defaults to true.

    WebsecLocationOptionsAntibotFloodChallenge, WebsecLocationOptionsAntibotFloodChallengeArgs

    AntibotChallengeGetOnlyOn bool
    Apply the antibot cookie to GET requests only. Defaults to false.
    AntibotChallengeTimelimit double
    Lifetime of the antibot cookie in minutes. Defaults to 10.
    AntibotChallengeUtmReferrer bool
    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.
    AntibotChallengeGetOnlyOn bool
    Apply the antibot cookie to GET requests only. Defaults to false.
    AntibotChallengeTimelimit float64
    Lifetime of the antibot cookie in minutes. Defaults to 10.
    AntibotChallengeUtmReferrer bool
    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_get_only_on bool
    Apply the antibot cookie to GET requests only. Defaults to false.
    antibot_challenge_timelimit number
    Lifetime of the antibot cookie in minutes. Defaults to 10.
    antibot_challenge_utm_referrer bool
    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.
    antibotChallengeGetOnlyOn Boolean
    Apply the antibot cookie to GET requests only. Defaults to false.
    antibotChallengeTimelimit Double
    Lifetime of the antibot cookie in minutes. Defaults to 10.
    antibotChallengeUtmReferrer Boolean
    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.
    antibotChallengeGetOnlyOn boolean
    Apply the antibot cookie to GET requests only. Defaults to false.
    antibotChallengeTimelimit number
    Lifetime of the antibot cookie in minutes. Defaults to 10.
    antibotChallengeUtmReferrer boolean
    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_get_only_on bool
    Apply the antibot cookie to GET requests only. Defaults to false.
    antibot_challenge_timelimit float
    Lifetime of the antibot cookie in minutes. Defaults to 10.
    antibot_challenge_utm_referrer bool
    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.
    antibotChallengeGetOnlyOn Boolean
    Apply the antibot cookie to GET requests only. Defaults to false.
    antibotChallengeTimelimit Number
    Lifetime of the antibot cookie in minutes. Defaults to 10.
    antibotChallengeUtmReferrer Boolean
    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

    ExceptedValues List<double>
    ASNs that are the exceptions from policy_type, from 1 to 2147483647. Private 4-byte ASNs above 2147483647 cannot be set.
    PolicyType string
    Default policy, "allow" or "deny". Requests that match excepted_values get the opposite one.
    Enabled bool
    Enable or disable the option. Defaults to true.
    ExceptedValues []float64
    ASNs that are the exceptions from policy_type, from 1 to 2147483647. Private 4-byte ASNs above 2147483647 cannot be set.
    PolicyType string
    Default policy, "allow" or "deny". Requests that match excepted_values get 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_values get the opposite one.
    enabled bool
    Enable or disable the option. Defaults to true.
    exceptedValues List<Double>
    ASNs that are the exceptions from policy_type, from 1 to 2147483647. Private 4-byte ASNs above 2147483647 cannot be set.
    policyType String
    Default policy, "allow" or "deny". Requests that match excepted_values get the opposite one.
    enabled Boolean
    Enable or disable the option. Defaults to true.
    exceptedValues number[]
    ASNs that are the exceptions from policy_type, from 1 to 2147483647. Private 4-byte ASNs above 2147483647 cannot be set.
    policyType string
    Default policy, "allow" or "deny". Requests that match excepted_values get 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_values get the opposite one.
    enabled bool
    Enable or disable the option. Defaults to true.
    exceptedValues List<Number>
    ASNs that are the exceptions from policy_type, from 1 to 2147483647. Private 4-byte ASNs above 2147483647 cannot be set.
    policyType String
    Default policy, "allow" or "deny". Requests that match excepted_values get the opposite one.
    enabled Boolean
    Enable or disable the option. Defaults to true.

    WebsecLocationOptionsRefererAcl, WebsecLocationOptionsRefererAclArgs

    ExceptedValues 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.
    PolicyType string
    Default policy, "allow" or "deny". Requests that match excepted_values get the opposite one.
    DirectLink bool
    How the API handles requests without the Referer header, its direct_link flag. Defaults to false.
    Enabled bool
    Enable or disable the option. Defaults to true.
    ExceptedValues []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.
    PolicyType string
    Default policy, "allow" or "deny". Requests that match excepted_values get the opposite one.
    DirectLink bool
    How the API handles requests without the Referer header, its direct_link flag. Defaults to false.
    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_values get the opposite one.
    direct_link bool
    How the API handles requests without the Referer header, its direct_link flag. Defaults to false.
    enabled bool
    Enable or disable the option. Defaults to true.
    exceptedValues 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.
    policyType String
    Default policy, "allow" or "deny". Requests that match excepted_values get the opposite one.
    directLink Boolean
    How the API handles requests without the Referer header, its direct_link flag. Defaults to false.
    enabled Boolean
    Enable or disable the option. Defaults to true.
    exceptedValues 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.
    policyType string
    Default policy, "allow" or "deny". Requests that match excepted_values get the opposite one.
    directLink boolean
    How the API handles requests without the Referer header, its direct_link flag. Defaults to false.
    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_values get the opposite one.
    direct_link bool
    How the API handles requests without the Referer header, its direct_link flag. Defaults to false.
    enabled bool
    Enable or disable the option. Defaults to true.
    exceptedValues 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.
    policyType String
    Default policy, "allow" or "deny". Requests that match excepted_values get the opposite one.
    directLink Boolean
    How the API handles requests without the Referer header, its direct_link flag. Defaults to false.
    enabled Boolean
    Enable or disable the option. Defaults to true.

    WebsecLocationOptionsUserAgentAcl, WebsecLocationOptionsUserAgentAclArgs

    ExceptedValues List<string>
    User agents that are the exceptions from policy_type. A value that starts with "~" is a regular expression.
    PolicyType string
    Default policy, "allow" or "deny". Requests that match excepted_values get the opposite one.
    Enabled bool
    Enable or disable the option. Defaults to true.
    ExceptedValues []string
    User agents that are the exceptions from policy_type. A value that starts with "~" is a regular expression.
    PolicyType string
    Default policy, "allow" or "deny". Requests that match excepted_values get 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_values get the opposite one.
    enabled bool
    Enable or disable the option. Defaults to true.
    exceptedValues List<String>
    User agents that are the exceptions from policy_type. A value that starts with "~" is a regular expression.
    policyType String
    Default policy, "allow" or "deny". Requests that match excepted_values get the opposite one.
    enabled Boolean
    Enable or disable the option. Defaults to true.
    exceptedValues string[]
    User agents that are the exceptions from policy_type. A value that starts with "~" is a regular expression.
    policyType string
    Default policy, "allow" or "deny". Requests that match excepted_values get 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_values get the opposite one.
    enabled bool
    Enable or disable the option. Defaults to true.
    exceptedValues List<String>
    User agents that are the exceptions from policy_type. A value that starts with "~" is a regular expression.
    policyType String
    Default policy, "allow" or "deny". Requests that match excepted_values get 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 edgecenter Terraform Provider.
    edgecenter
    Viewing docs for edgecenter 0.18.2
    published on Tuesday, Nov 3, 2026 by edge-center

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial