Fastly v8.7.0 published on Friday, May 10, 2024 by Pulumi
fastly.getWafRules
Explore with Pulumi AI
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:
- Exclude
Modsec List<int>Rule Ids - Exclusion filter by WAF rule's ModSecurity ID.
- Modsec
Rule List<int>Ids - 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.
- List<string>
- Inclusion filter by WAF rule's tags.
- Exclude
Modsec []intRule Ids - Exclusion filter by WAF rule's ModSecurity ID.
- Modsec
Rule []intIds - A list of modsecurity rules IDs to be used as filters for the data set.
- Publishers []string
- Inclusion filter by WAF rule's publishers.
- []string
- Inclusion filter by WAF rule's tags.
- exclude
Modsec List<Integer>Rule Ids - Exclusion filter by WAF rule's ModSecurity ID.
- modsec
Rule List<Integer>Ids - 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.
- List<String>
- Inclusion filter by WAF rule's tags.
- exclude
Modsec number[]Rule Ids - Exclusion filter by WAF rule's ModSecurity ID.
- modsec
Rule number[]Ids - A list of modsecurity rules IDs to be used as filters for the data set.
- publishers string[]
- Inclusion filter by WAF rule's publishers.
- string[]
- Inclusion filter by WAF rule's tags.
- exclude_
modsec_ Sequence[int]rule_ ids - Exclusion filter by WAF rule's ModSecurity ID.
- modsec_
rule_ Sequence[int]ids - 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.
- Sequence[str]
- Inclusion filter by WAF rule's tags.
- exclude
Modsec List<Number>Rule Ids - Exclusion filter by WAF rule's ModSecurity ID.
- modsec
Rule List<Number>Ids - 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.
- 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<Get
Waf Rules Rule> - The list of rules that results from any given combination of filters.
- Exclude
Modsec List<int>Rule Ids - A list of modsecurity rules IDs to be excluded from the data set.
- Modsec
Rule List<int>Ids - 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.
- 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
[]Get
Waf Rules Rule - The list of rules that results from any given combination of filters.
- Exclude
Modsec []intRule Ids - A list of modsecurity rules IDs to be excluded from the data set.
- Modsec
Rule []intIds - 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.
- []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<Get
Waf Rules Rule> - The list of rules that results from any given combination of filters.
- exclude
Modsec List<Integer>Rule Ids - A list of modsecurity rules IDs to be excluded from the data set.
- modsec
Rule List<Integer>Ids - 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.
- 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
Get
Waf Rules Rule[] - The list of rules that results from any given combination of filters.
- exclude
Modsec number[]Rule Ids - A list of modsecurity rules IDs to be excluded from the data set.
- modsec
Rule number[]Ids - 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.
- 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[Get
Waf Rules Rule] - The list of rules that results from any given combination of filters.
- exclude_
modsec_ Sequence[int]rule_ ids - A list of modsecurity rules IDs to be excluded from the data set.
- modsec_
rule_ Sequence[int]ids - 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.
- 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.
- exclude
Modsec List<Number>Rule Ids - A list of modsecurity rules IDs to be excluded from the data set.
- modsec
Rule List<Number>Ids - 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.
- List<String>
- A list of tags to be used as filters for the data set.
Supporting Types
GetWafRulesRule
- Latest
Revision intNumber - The modsecurity rule's latest revision.
- Modsec
Rule intId - The modsecurity rule ID.
- Type string
- The modsecurity rule's type.
- Latest
Revision intNumber - The modsecurity rule's latest revision.
- Modsec
Rule intId - The modsecurity rule ID.
- Type string
- The modsecurity rule's type.
- latest
Revision IntegerNumber - The modsecurity rule's latest revision.
- modsec
Rule IntegerId - The modsecurity rule ID.
- type String
- The modsecurity rule's type.
- latest
Revision numberNumber - The modsecurity rule's latest revision.
- modsec
Rule numberId - The modsecurity rule ID.
- type string
- The modsecurity rule's type.
- latest_
revision_ intnumber - The modsecurity rule's latest revision.
- modsec_
rule_ intid - The modsecurity rule ID.
- type str
- The modsecurity rule's type.
- latest
Revision NumberNumber - The modsecurity rule's latest revision.
- modsec
Rule NumberId - 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.