1. Registry
  2. Packages
  3. Edgecenter Provider
  4. API Docs
  5. WebsecSourceGroup
Viewing docs for edgecenter 0.18.6
published on Wednesday, Nov 18, 2026 by edge-center
edgecenter
Viewing docs for edgecenter 0.18.6
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<WebsecSourceGroupSource>
    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.
    UseNext bool
    Pass a request on to the next source when the current one fails. Defaults to true.
    WebsecSourceGroupId string
    The ID of this resource.
    Sources []WebsecSourceGroupSourceArgs
    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.
    UseNext bool
    Pass a request on to the next source when the current one fails. Defaults to true.
    WebsecSourceGroupId string
    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_group_id string
    The ID of this resource.
    sources List<WebsecSourceGroupSource>
    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.
    useNext Boolean
    Pass a request on to the next source when the current one fails. Defaults to true.
    websecSourceGroupId String
    The ID of this resource.
    sources WebsecSourceGroupSource[]
    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.
    useNext boolean
    Pass a request on to the next source when the current one fails. Defaults to true.
    websecSourceGroupId string
    The ID of this resource.
    sources Sequence[WebsecSourceGroupSourceArgs]
    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_group_id str
    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.
    useNext Boolean
    Pass a request on to the next source when the current one fails. Defaults to true.
    websecSourceGroupId String
    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) -> WebsecSourceGroup
    func 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.
    The following state arguments are supported:
    Description string
    Description of the group.
    Name string
    Name of the group, up to 255 characters, unique within the client.
    Sources List<WebsecSourceGroupSource>
    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.
    UseNext bool
    Pass a request on to the next source when the current one fails. Defaults to true.
    WebsecSourceGroupId string
    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 []WebsecSourceGroupSourceArgs
    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.
    UseNext bool
    Pass a request on to the next source when the current one fails. Defaults to true.
    WebsecSourceGroupId string
    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_group_id string
    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<WebsecSourceGroupSource>
    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.
    useNext Boolean
    Pass a request on to the next source when the current one fails. Defaults to true.
    websecSourceGroupId String
    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 WebsecSourceGroupSource[]
    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.
    useNext boolean
    Pass a request on to the next source when the current one fails. Defaults to true.
    websecSourceGroupId string
    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[WebsecSourceGroupSourceArgs]
    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_group_id str
    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.
    useNext Boolean
    Pass a request on to the next source when the current one fails. Defaults to true.
    websecSourceGroupId String
    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.10 or origin.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.
    FailTimeout double
    Time in seconds in which max_fails failed attempts make the source unavailable, and for which it then stays unavailable, at least 1. Defaults to 1.
    MaxFails double
    Number of failed attempts within fail_timeout after which the source is considered unavailable, at least 1. Defaults to 1.
    Mode string
    primary, backup (gets requests only when the primary sources fail) or down (gets no requests). Defaults to primary.
    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.10 or origin.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.
    FailTimeout float64
    Time in seconds in which max_fails failed attempts make the source unavailable, and for which it then stays unavailable, at least 1. Defaults to 1.
    MaxFails float64
    Number of failed attempts within fail_timeout after which the source is considered unavailable, at least 1. Defaults to 1.
    Mode string
    primary, backup (gets requests only when the primary sources fail) or down (gets no requests). Defaults to primary.
    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.10 or origin.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_fails failed attempts make the source unavailable, and for which it then stays unavailable, at least 1. Defaults to 1.
    max_fails number
    Number of failed attempts within fail_timeout after which the source is considered unavailable, at least 1. Defaults to 1.
    mode string
    primary, backup (gets requests only when the primary sources fail) or down (gets no requests). Defaults to primary.
    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.10 or origin.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.
    failTimeout Double
    Time in seconds in which max_fails failed attempts make the source unavailable, and for which it then stays unavailable, at least 1. Defaults to 1.
    maxFails Double
    Number of failed attempts within fail_timeout after which the source is considered unavailable, at least 1. Defaults to 1.
    mode String
    primary, backup (gets requests only when the primary sources fail) or down (gets no requests). Defaults to primary.
    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.10 or origin.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.
    failTimeout number
    Time in seconds in which max_fails failed attempts make the source unavailable, and for which it then stays unavailable, at least 1. Defaults to 1.
    maxFails number
    Number of failed attempts within fail_timeout after which the source is considered unavailable, at least 1. Defaults to 1.
    mode string
    primary, backup (gets requests only when the primary sources fail) or down (gets no requests). Defaults to primary.
    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.10 or origin.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_fails failed attempts make the source unavailable, and for which it then stays unavailable, at least 1. Defaults to 1.
    max_fails float
    Number of failed attempts within fail_timeout after which the source is considered unavailable, at least 1. Defaults to 1.
    mode str
    primary, backup (gets requests only when the primary sources fail) or down (gets no requests). Defaults to primary.
    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.10 or origin.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.
    failTimeout Number
    Time in seconds in which max_fails failed attempts make the source unavailable, and for which it then stays unavailable, at least 1. Defaults to 1.
    maxFails Number
    Number of failed attempts within fail_timeout after which the source is considered unavailable, at least 1. Defaults to 1.
    mode String
    primary, backup (gets requests only when the primary sources fail) or down (gets no requests). Defaults to primary.
    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 edgecenter Terraform Provider.
    edgecenter
    Viewing docs for edgecenter 0.18.6
    published on Wednesday, Nov 18, 2026 by edge-center

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial