1. Packages
  2. Fastly
  3. API Docs
  4. getWafRules
Fastly v8.7.0 published on Friday, May 10, 2024 by Pulumi

fastly.getWafRules

Explore with Pulumi AI

fastly logo
Fastly v8.7.0 published on Friday, May 10, 2024 by Pulumi

    Using getWafRules

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getWafRules(args: GetWafRulesArgs, opts?: InvokeOptions): Promise<GetWafRulesResult>
    function getWafRulesOutput(args: GetWafRulesOutputArgs, opts?: InvokeOptions): Output<GetWafRulesResult>
    def get_waf_rules(exclude_modsec_rule_ids: Optional[Sequence[int]] = None,
                      modsec_rule_ids: Optional[Sequence[int]] = None,
                      publishers: Optional[Sequence[str]] = None,
                      tags: Optional[Sequence[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> GetWafRulesResult
    def get_waf_rules_output(exclude_modsec_rule_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
                      modsec_rule_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
                      publishers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                      tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetWafRulesResult]
    func GetWafRules(ctx *Context, args *GetWafRulesArgs, opts ...InvokeOption) (*GetWafRulesResult, error)
    func GetWafRulesOutput(ctx *Context, args *GetWafRulesOutputArgs, opts ...InvokeOption) GetWafRulesResultOutput

    > Note: This function is named GetWafRules in the Go SDK.

    public static class GetWafRules 
    {
        public static Task<GetWafRulesResult> InvokeAsync(GetWafRulesArgs args, InvokeOptions? opts = null)
        public static Output<GetWafRulesResult> Invoke(GetWafRulesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWafRulesResult> getWafRules(GetWafRulesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: fastly:index/getWafRules:getWafRules
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ExcludeModsecRuleIds List<int>
    Exclusion filter by WAF rule's ModSecurity ID.
    ModsecRuleIds List<int>
    A list of modsecurity rules IDs to be used as filters for the data set.
    Publishers List<string>
    Inclusion filter by WAF rule's publishers.
    Tags List<string>
    Inclusion filter by WAF rule's tags.
    ExcludeModsecRuleIds []int
    Exclusion filter by WAF rule's ModSecurity ID.
    ModsecRuleIds []int
    A list of modsecurity rules IDs to be used as filters for the data set.
    Publishers []string
    Inclusion filter by WAF rule's publishers.
    Tags []string
    Inclusion filter by WAF rule's tags.
    excludeModsecRuleIds List<Integer>
    Exclusion filter by WAF rule's ModSecurity ID.
    modsecRuleIds List<Integer>
    A list of modsecurity rules IDs to be used as filters for the data set.
    publishers List<String>
    Inclusion filter by WAF rule's publishers.
    tags List<String>
    Inclusion filter by WAF rule's tags.
    excludeModsecRuleIds number[]
    Exclusion filter by WAF rule's ModSecurity ID.
    modsecRuleIds number[]
    A list of modsecurity rules IDs to be used as filters for the data set.
    publishers string[]
    Inclusion filter by WAF rule's publishers.
    tags string[]
    Inclusion filter by WAF rule's tags.
    exclude_modsec_rule_ids Sequence[int]
    Exclusion filter by WAF rule's ModSecurity ID.
    modsec_rule_ids Sequence[int]
    A list of modsecurity rules IDs to be used as filters for the data set.
    publishers Sequence[str]
    Inclusion filter by WAF rule's publishers.
    tags Sequence[str]
    Inclusion filter by WAF rule's tags.
    excludeModsecRuleIds List<Number>
    Exclusion filter by WAF rule's ModSecurity ID.
    modsecRuleIds List<Number>
    A list of modsecurity rules IDs to be used as filters for the data set.
    publishers List<String>
    Inclusion filter by WAF rule's publishers.
    tags List<String>
    Inclusion filter by WAF rule's tags.

    getWafRules Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Rules List<GetWafRulesRule>
    The list of rules that results from any given combination of filters.
    ExcludeModsecRuleIds List<int>
    A list of modsecurity rules IDs to be excluded from the data set.
    ModsecRuleIds List<int>
    A list of modsecurity rules IDs to be used as filters for the data set.
    Publishers List<string>
    A list of publishers to be used as filters for the data set.
    Tags List<string>
    A list of tags to be used as filters for the data set.
    Id string
    The provider-assigned unique ID for this managed resource.
    Rules []GetWafRulesRule
    The list of rules that results from any given combination of filters.
    ExcludeModsecRuleIds []int
    A list of modsecurity rules IDs to be excluded from the data set.
    ModsecRuleIds []int
    A list of modsecurity rules IDs to be used as filters for the data set.
    Publishers []string
    A list of publishers to be used as filters for the data set.
    Tags []string
    A list of tags to be used as filters for the data set.
    id String
    The provider-assigned unique ID for this managed resource.
    rules List<GetWafRulesRule>
    The list of rules that results from any given combination of filters.
    excludeModsecRuleIds List<Integer>
    A list of modsecurity rules IDs to be excluded from the data set.
    modsecRuleIds List<Integer>
    A list of modsecurity rules IDs to be used as filters for the data set.
    publishers List<String>
    A list of publishers to be used as filters for the data set.
    tags List<String>
    A list of tags to be used as filters for the data set.
    id string
    The provider-assigned unique ID for this managed resource.
    rules GetWafRulesRule[]
    The list of rules that results from any given combination of filters.
    excludeModsecRuleIds number[]
    A list of modsecurity rules IDs to be excluded from the data set.
    modsecRuleIds number[]
    A list of modsecurity rules IDs to be used as filters for the data set.
    publishers string[]
    A list of publishers to be used as filters for the data set.
    tags string[]
    A list of tags to be used as filters for the data set.
    id str
    The provider-assigned unique ID for this managed resource.
    rules Sequence[GetWafRulesRule]
    The list of rules that results from any given combination of filters.
    exclude_modsec_rule_ids Sequence[int]
    A list of modsecurity rules IDs to be excluded from the data set.
    modsec_rule_ids Sequence[int]
    A list of modsecurity rules IDs to be used as filters for the data set.
    publishers Sequence[str]
    A list of publishers to be used as filters for the data set.
    tags Sequence[str]
    A list of tags to be used as filters for the data set.
    id String
    The provider-assigned unique ID for this managed resource.
    rules List<Property Map>
    The list of rules that results from any given combination of filters.
    excludeModsecRuleIds List<Number>
    A list of modsecurity rules IDs to be excluded from the data set.
    modsecRuleIds List<Number>
    A list of modsecurity rules IDs to be used as filters for the data set.
    publishers List<String>
    A list of publishers to be used as filters for the data set.
    tags List<String>
    A list of tags to be used as filters for the data set.

    Supporting Types

    GetWafRulesRule

    LatestRevisionNumber int
    The modsecurity rule's latest revision.
    ModsecRuleId int
    The modsecurity rule ID.
    Type string
    The modsecurity rule's type.
    LatestRevisionNumber int
    The modsecurity rule's latest revision.
    ModsecRuleId int
    The modsecurity rule ID.
    Type string
    The modsecurity rule's type.
    latestRevisionNumber Integer
    The modsecurity rule's latest revision.
    modsecRuleId Integer
    The modsecurity rule ID.
    type String
    The modsecurity rule's type.
    latestRevisionNumber number
    The modsecurity rule's latest revision.
    modsecRuleId number
    The modsecurity rule ID.
    type string
    The modsecurity rule's type.
    latest_revision_number int
    The modsecurity rule's latest revision.
    modsec_rule_id int
    The modsecurity rule ID.
    type str
    The modsecurity rule's type.
    latestRevisionNumber Number
    The modsecurity rule's latest revision.
    modsecRuleId Number
    The modsecurity rule ID.
    type String
    The modsecurity rule's type.

    Package Details

    Repository
    Fastly pulumi/pulumi-fastly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the fastly Terraform Provider.
    fastly logo
    Fastly v8.7.0 published on Friday, May 10, 2024 by Pulumi