published on Wednesday, Nov 18, 2026 by edge-center
published on Wednesday, Nov 18, 2026 by edge-center
Example Usage
Create WebsecSourceGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WebsecSourceGroup(name: string, args: WebsecSourceGroupArgs, opts?: CustomResourceOptions);@overload
def WebsecSourceGroup(resource_name: str,
args: WebsecSourceGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WebsecSourceGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
sources: Optional[Sequence[WebsecSourceGroupSourceArgs]] = None,
description: Optional[str] = None,
name: Optional[str] = None,
use_next: Optional[bool] = None,
websec_source_group_id: Optional[str] = None)func NewWebsecSourceGroup(ctx *Context, name string, args WebsecSourceGroupArgs, opts ...ResourceOption) (*WebsecSourceGroup, error)public WebsecSourceGroup(string name, WebsecSourceGroupArgs args, CustomResourceOptions? opts = null)
public WebsecSourceGroup(String name, WebsecSourceGroupArgs args)
public WebsecSourceGroup(String name, WebsecSourceGroupArgs args, CustomResourceOptions options)
type: edgecenter:WebsecSourceGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "edgecenter_websec_source_group" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args WebsecSourceGroupArgs
- 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 WebsecSourceGroupArgs
- 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 WebsecSourceGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WebsecSourceGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WebsecSourceGroupArgs
- 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 websecSourceGroupResource = new Edgecenter.WebsecSourceGroup("websecSourceGroupResource", new()
{
Sources = new[]
{
new Edgecenter.Inputs.WebsecSourceGroupSourceArgs
{
Source = "string",
Comment = "string",
FailTimeout = 0.0,
MaxFails = 0.0,
Mode = "string",
Weight = 0.0,
},
},
Description = "string",
Name = "string",
UseNext = false,
WebsecSourceGroupId = "string",
});
example, err := edgecenter.NewWebsecSourceGroup(ctx, "websecSourceGroupResource", &edgecenter.WebsecSourceGroupArgs{
Sources: edgecenter.WebsecSourceGroupSourceArray{
&edgecenter.WebsecSourceGroupSourceArgs{
Source: pulumi.String("string"),
Comment: pulumi.String("string"),
FailTimeout: pulumi.Float64(0),
MaxFails: pulumi.Float64(0),
Mode: pulumi.String("string"),
Weight: pulumi.Float64(0),
},
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
UseNext: pulumi.Bool(false),
WebsecSourceGroupId: pulumi.String("string"),
})
resource "edgecenter_websec_source_group" "websecSourceGroupResource" {
lifecycle {
create_before_destroy = true
}
sources {
source = "string"
comment = "string"
fail_timeout = 0
max_fails = 0
mode = "string"
weight = 0
}
description = "string"
name = "string"
use_next = false
websec_source_group_id = "string"
}
var websecSourceGroupResource = new WebsecSourceGroup("websecSourceGroupResource", WebsecSourceGroupArgs.builder()
.sources(WebsecSourceGroupSourceArgs.builder()
.source("string")
.comment("string")
.failTimeout(0.0)
.maxFails(0.0)
.mode("string")
.weight(0.0)
.build())
.description("string")
.name("string")
.useNext(false)
.websecSourceGroupId("string")
.build());
websec_source_group_resource = edgecenter.WebsecSourceGroup("websecSourceGroupResource",
sources=[{
"source": "string",
"comment": "string",
"fail_timeout": float(0),
"max_fails": float(0),
"mode": "string",
"weight": float(0),
}],
description="string",
name="string",
use_next=False,
websec_source_group_id="string")
const websecSourceGroupResource = new edgecenter.WebsecSourceGroup("websecSourceGroupResource", {
sources: [{
source: "string",
comment: "string",
failTimeout: 0,
maxFails: 0,
mode: "string",
weight: 0,
}],
description: "string",
name: "string",
useNext: false,
websecSourceGroupId: "string",
});
type: edgecenter:WebsecSourceGroup
properties:
description: string
name: string
sources:
- comment: string
failTimeout: 0
maxFails: 0
mode: string
source: string
weight: 0
useNext: false
websecSourceGroupId: string
WebsecSourceGroup 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 WebsecSourceGroup resource accepts the following input properties:
- Sources
List<Websec
Source Group Source> - Sources of the group, kept in the order given. More than one source works only when the multiple sources feature is enabled for the client.
- Description string
- Description of the group.
- Name string
- Name of the group, up to 255 characters, unique within the client.
- Use
Next bool - Pass a request on to the next source when the current one fails. Defaults to
true. - Websec
Source stringGroup Id - The ID of this resource.
- Sources
[]Websec
Source Group Source Args - Sources of the group, kept in the order given. More than one source works only when the multiple sources feature is enabled for the client.
- Description string
- Description of the group.
- Name string
- Name of the group, up to 255 characters, unique within the client.
- Use
Next bool - Pass a request on to the next source when the current one fails. Defaults to
true. - Websec
Source stringGroup Id - The ID of this resource.
- sources list(object)
- Sources of the group, kept in the order given. More than one source works only when the multiple sources feature is enabled for the client.
- description string
- Description of the group.
- name string
- Name of the group, up to 255 characters, unique within the client.
- use_
next bool - Pass a request on to the next source when the current one fails. Defaults to
true. - websec_
source_ stringgroup_ id - The ID of this resource.
- sources
List<Websec
Source Group Source> - Sources of the group, kept in the order given. More than one source works only when the multiple sources feature is enabled for the client.
- description String
- Description of the group.
- name String
- Name of the group, up to 255 characters, unique within the client.
- use
Next Boolean - Pass a request on to the next source when the current one fails. Defaults to
true. - websec
Source StringGroup Id - The ID of this resource.
- sources
Websec
Source Group Source[] - Sources of the group, kept in the order given. More than one source works only when the multiple sources feature is enabled for the client.
- description string
- Description of the group.
- name string
- Name of the group, up to 255 characters, unique within the client.
- use
Next boolean - Pass a request on to the next source when the current one fails. Defaults to
true. - websec
Source stringGroup Id - The ID of this resource.
- sources
Sequence[Websec
Source Group Source Args] - Sources of the group, kept in the order given. More than one source works only when the multiple sources feature is enabled for the client.
- description str
- Description of the group.
- name str
- Name of the group, up to 255 characters, unique within the client.
- use_
next bool - Pass a request on to the next source when the current one fails. Defaults to
true. - websec_
source_ strgroup_ id - The ID of this resource.
- sources List<Property Map>
- Sources of the group, kept in the order given. More than one source works only when the multiple sources feature is enabled for the client.
- description String
- Description of the group.
- name String
- Name of the group, up to 255 characters, unique within the client.
- use
Next Boolean - Pass a request on to the next source when the current one fails. Defaults to
true. - websec
Source StringGroup Id - The ID of this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the WebsecSourceGroup 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 WebsecSourceGroup Resource
Get an existing WebsecSourceGroup 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?: WebsecSourceGroupState, opts?: CustomResourceOptions): WebsecSourceGroup@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
sources: Optional[Sequence[WebsecSourceGroupSourceArgs]] = None,
use_next: Optional[bool] = None,
websec_source_group_id: Optional[str] = None) -> WebsecSourceGroupfunc GetWebsecSourceGroup(ctx *Context, name string, id IDInput, state *WebsecSourceGroupState, opts ...ResourceOption) (*WebsecSourceGroup, error)public static WebsecSourceGroup Get(string name, Input<string> id, WebsecSourceGroupState? state, CustomResourceOptions? opts = null)public static WebsecSourceGroup get(String name, Output<String> id, WebsecSourceGroupState state, CustomResourceOptions options)resources: existingWebsecSourceGroup: type: edgecenter:WebsecSourceGroup get: id: ${id}import {
to = edgecenter_websec_source_group.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state WebsecSourceGroupState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state WebsecSourceGroupState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state WebsecSourceGroupState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state WebsecSourceGroupState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Description string
- Description of the group.
- Name string
- Name of the group, up to 255 characters, unique within the client.
- Sources
List<Websec
Source Group Source> - Sources of the group, kept in the order given. More than one source works only when the multiple sources feature is enabled for the client.
- Use
Next bool - Pass a request on to the next source when the current one fails. Defaults to
true. - Websec
Source stringGroup Id - The ID of this resource.
- Description string
- Description of the group.
- Name string
- Name of the group, up to 255 characters, unique within the client.
- Sources
[]Websec
Source Group Source Args - Sources of the group, kept in the order given. More than one source works only when the multiple sources feature is enabled for the client.
- Use
Next bool - Pass a request on to the next source when the current one fails. Defaults to
true. - Websec
Source stringGroup Id - The ID of this resource.
- description string
- Description of the group.
- name string
- Name of the group, up to 255 characters, unique within the client.
- sources list(object)
- Sources of the group, kept in the order given. More than one source works only when the multiple sources feature is enabled for the client.
- use_
next bool - Pass a request on to the next source when the current one fails. Defaults to
true. - websec_
source_ stringgroup_ id - The ID of this resource.
- description String
- Description of the group.
- name String
- Name of the group, up to 255 characters, unique within the client.
- sources
List<Websec
Source Group Source> - Sources of the group, kept in the order given. More than one source works only when the multiple sources feature is enabled for the client.
- use
Next Boolean - Pass a request on to the next source when the current one fails. Defaults to
true. - websec
Source StringGroup Id - The ID of this resource.
- description string
- Description of the group.
- name string
- Name of the group, up to 255 characters, unique within the client.
- sources
Websec
Source Group Source[] - Sources of the group, kept in the order given. More than one source works only when the multiple sources feature is enabled for the client.
- use
Next boolean - Pass a request on to the next source when the current one fails. Defaults to
true. - websec
Source stringGroup Id - The ID of this resource.
- description str
- Description of the group.
- name str
- Name of the group, up to 255 characters, unique within the client.
- sources
Sequence[Websec
Source Group Source Args] - Sources of the group, kept in the order given. More than one source works only when the multiple sources feature is enabled for the client.
- use_
next bool - Pass a request on to the next source when the current one fails. Defaults to
true. - websec_
source_ strgroup_ id - The ID of this resource.
- description String
- Description of the group.
- name String
- Name of the group, up to 255 characters, unique within the client.
- sources List<Property Map>
- Sources of the group, kept in the order given. More than one source works only when the multiple sources feature is enabled for the client.
- use
Next Boolean - Pass a request on to the next source when the current one fails. Defaults to
true. - websec
Source StringGroup Id - The ID of this resource.
Supporting Types
WebsecSourceGroupSource, WebsecSourceGroupSourceArgs
- Source string
- Host name or IPv4 address of the origin with an optional port, for example
203.0.113.10ororigin.example.com:8080, without a scheme or a path. The API also checks that a host name resolves and that the origin is not in a private network. - Comment string
- Comment on the source, up to 255 characters.
- Fail
Timeout double - Time in seconds in which
max_failsfailed attempts make the source unavailable, and for which it then stays unavailable, at least 1. Defaults to1. - Max
Fails double - Number of failed attempts within
fail_timeoutafter which the source is considered unavailable, at least 1. Defaults to1. - Mode string
primary,backup(gets requests only when the primary sources fail) ordown(gets no requests). Defaults toprimary.- Weight double
- Weight of the source in load balancing, from 1 to 100. The weights of the primary sources of the group add up to at most 100, so a third primary source with the default weight does not fit. Defaults to
50.
- Source string
- Host name or IPv4 address of the origin with an optional port, for example
203.0.113.10ororigin.example.com:8080, without a scheme or a path. The API also checks that a host name resolves and that the origin is not in a private network. - Comment string
- Comment on the source, up to 255 characters.
- Fail
Timeout float64 - Time in seconds in which
max_failsfailed attempts make the source unavailable, and for which it then stays unavailable, at least 1. Defaults to1. - Max
Fails float64 - Number of failed attempts within
fail_timeoutafter which the source is considered unavailable, at least 1. Defaults to1. - Mode string
primary,backup(gets requests only when the primary sources fail) ordown(gets no requests). Defaults toprimary.- Weight float64
- Weight of the source in load balancing, from 1 to 100. The weights of the primary sources of the group add up to at most 100, so a third primary source with the default weight does not fit. Defaults to
50.
- source string
- Host name or IPv4 address of the origin with an optional port, for example
203.0.113.10ororigin.example.com:8080, without a scheme or a path. The API also checks that a host name resolves and that the origin is not in a private network. - comment string
- Comment on the source, up to 255 characters.
- fail_
timeout number - Time in seconds in which
max_failsfailed attempts make the source unavailable, and for which it then stays unavailable, at least 1. Defaults to1. - max_
fails number - Number of failed attempts within
fail_timeoutafter which the source is considered unavailable, at least 1. Defaults to1. - mode string
primary,backup(gets requests only when the primary sources fail) ordown(gets no requests). Defaults toprimary.- weight number
- Weight of the source in load balancing, from 1 to 100. The weights of the primary sources of the group add up to at most 100, so a third primary source with the default weight does not fit. Defaults to
50.
- source String
- Host name or IPv4 address of the origin with an optional port, for example
203.0.113.10ororigin.example.com:8080, without a scheme or a path. The API also checks that a host name resolves and that the origin is not in a private network. - comment String
- Comment on the source, up to 255 characters.
- fail
Timeout Double - Time in seconds in which
max_failsfailed attempts make the source unavailable, and for which it then stays unavailable, at least 1. Defaults to1. - max
Fails Double - Number of failed attempts within
fail_timeoutafter which the source is considered unavailable, at least 1. Defaults to1. - mode String
primary,backup(gets requests only when the primary sources fail) ordown(gets no requests). Defaults toprimary.- weight Double
- Weight of the source in load balancing, from 1 to 100. The weights of the primary sources of the group add up to at most 100, so a third primary source with the default weight does not fit. Defaults to
50.
- source string
- Host name or IPv4 address of the origin with an optional port, for example
203.0.113.10ororigin.example.com:8080, without a scheme or a path. The API also checks that a host name resolves and that the origin is not in a private network. - comment string
- Comment on the source, up to 255 characters.
- fail
Timeout number - Time in seconds in which
max_failsfailed attempts make the source unavailable, and for which it then stays unavailable, at least 1. Defaults to1. - max
Fails number - Number of failed attempts within
fail_timeoutafter which the source is considered unavailable, at least 1. Defaults to1. - mode string
primary,backup(gets requests only when the primary sources fail) ordown(gets no requests). Defaults toprimary.- weight number
- Weight of the source in load balancing, from 1 to 100. The weights of the primary sources of the group add up to at most 100, so a third primary source with the default weight does not fit. Defaults to
50.
- source str
- Host name or IPv4 address of the origin with an optional port, for example
203.0.113.10ororigin.example.com:8080, without a scheme or a path. The API also checks that a host name resolves and that the origin is not in a private network. - comment str
- Comment on the source, up to 255 characters.
- fail_
timeout float - Time in seconds in which
max_failsfailed attempts make the source unavailable, and for which it then stays unavailable, at least 1. Defaults to1. - max_
fails float - Number of failed attempts within
fail_timeoutafter which the source is considered unavailable, at least 1. Defaults to1. - mode str
primary,backup(gets requests only when the primary sources fail) ordown(gets no requests). Defaults toprimary.- weight float
- Weight of the source in load balancing, from 1 to 100. The weights of the primary sources of the group add up to at most 100, so a third primary source with the default weight does not fit. Defaults to
50.
- source String
- Host name or IPv4 address of the origin with an optional port, for example
203.0.113.10ororigin.example.com:8080, without a scheme or a path. The API also checks that a host name resolves and that the origin is not in a private network. - comment String
- Comment on the source, up to 255 characters.
- fail
Timeout Number - Time in seconds in which
max_failsfailed attempts make the source unavailable, and for which it then stays unavailable, at least 1. Defaults to1. - max
Fails Number - Number of failed attempts within
fail_timeoutafter which the source is considered unavailable, at least 1. Defaults to1. - mode String
primary,backup(gets requests only when the primary sources fail) ordown(gets no requests). Defaults toprimary.- weight Number
- Weight of the source in load balancing, from 1 to 100. The weights of the primary sources of the group add up to at most 100, so a third primary source with the default weight does not fit. Defaults to
50.
Import
The pulumi import command can be used, for example:
$ pulumi import edgecenter:index/websecSourceGroup:WebsecSourceGroup example_com 7
$ pulumi import edgecenter:index/websecSourceGroup:WebsecSourceGroup example_com resource:12345
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 Wednesday, Nov 18, 2026 by edge-center