Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of waf acl rules
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.waf.getAclRules({
aclType: "Block",
actions: ["observe"],
defenceHosts: ["www.tf-test.com"],
enables: [1],
projectName: "default",
ruleName: "tf-test",
timeOrderBy: "ASC",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.waf.get_acl_rules(acl_type="Block",
actions=["observe"],
defence_hosts=["www.tf-test.com"],
enables=[1],
project_name="default",
rule_name="tf-test",
time_order_by="ASC")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/waf"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := waf.GetAclRules(ctx, &waf.GetAclRulesArgs{
AclType: "Block",
Actions: []string{
"observe",
},
DefenceHosts: []string{
"www.tf-test.com",
},
Enables: interface{}{
1,
},
ProjectName: pulumi.StringRef("default"),
RuleName: pulumi.StringRef("tf-test"),
TimeOrderBy: pulumi.StringRef("ASC"),
}, nil);
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = Volcengine.Waf.GetAclRules.Invoke(new()
{
AclType = "Block",
Actions = new[]
{
"observe",
},
DefenceHosts = new[]
{
"www.tf-test.com",
},
Enables = new[]
{
1,
},
ProjectName = "default",
RuleName = "tf-test",
TimeOrderBy = "ASC",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.waf.WafFunctions;
import com.pulumi.volcengine.waf.inputs.GetAclRulesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var foo = WafFunctions.getAclRules(GetAclRulesArgs.builder()
.aclType("Block")
.actions("observe")
.defenceHosts("www.tf-test.com")
.enables(1)
.projectName("default")
.ruleName("tf-test")
.timeOrderBy("ASC")
.build());
}
}
variables:
foo:
fn::invoke:
Function: volcengine:waf:getAclRules
Arguments:
aclType: Block
actions:
- observe
defenceHosts:
- www.tf-test.com
enables:
- 1
projectName: default
ruleName: tf-test
timeOrderBy: ASC
Using getAclRules
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 getAclRules(args: GetAclRulesArgs, opts?: InvokeOptions): Promise<GetAclRulesResult>
function getAclRulesOutput(args: GetAclRulesOutputArgs, opts?: InvokeOptions): Output<GetAclRulesResult>def get_acl_rules(acl_type: Optional[str] = None,
actions: Optional[Sequence[str]] = None,
defence_hosts: Optional[Sequence[str]] = None,
enables: Optional[Sequence[int]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
project_name: Optional[str] = None,
rule_name: Optional[str] = None,
rule_tag: Optional[str] = None,
time_order_by: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAclRulesResult
def get_acl_rules_output(acl_type: Optional[pulumi.Input[str]] = None,
actions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
defence_hosts: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
enables: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
rule_name: Optional[pulumi.Input[str]] = None,
rule_tag: Optional[pulumi.Input[str]] = None,
time_order_by: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAclRulesResult]func GetAclRules(ctx *Context, args *GetAclRulesArgs, opts ...InvokeOption) (*GetAclRulesResult, error)
func GetAclRulesOutput(ctx *Context, args *GetAclRulesOutputArgs, opts ...InvokeOption) GetAclRulesResultOutput> Note: This function is named GetAclRules in the Go SDK.
public static class GetAclRules
{
public static Task<GetAclRulesResult> InvokeAsync(GetAclRulesArgs args, InvokeOptions? opts = null)
public static Output<GetAclRulesResult> Invoke(GetAclRulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAclRulesResult> getAclRules(GetAclRulesArgs args, InvokeOptions options)
public static Output<GetAclRulesResult> getAclRules(GetAclRulesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:waf/getAclRules:getAclRules
arguments:
# arguments dictionaryThe following arguments are supported:
- Acl
Type string - The types of access control rules.
- Actions List<string>
- Action to be taken on requests that match the rule.
- Defence
Hosts List<string> - The list of queried domain names.
- Enables List<int>
- The enabled status of the rule.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Project
Name string - The name of the project to which your domain names belong.
- Rule
Name string - Rule name, fuzzy search.
- Rule
Tag string - Rule unique identifier, precise search.
- Time
Order stringBy - The list shows the timing sequence.
- Acl
Type string - The types of access control rules.
- Actions []string
- Action to be taken on requests that match the rule.
- Defence
Hosts []string - The list of queried domain names.
- Enables []int
- The enabled status of the rule.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Project
Name string - The name of the project to which your domain names belong.
- Rule
Name string - Rule name, fuzzy search.
- Rule
Tag string - Rule unique identifier, precise search.
- Time
Order stringBy - The list shows the timing sequence.
- acl
Type String - The types of access control rules.
- actions List<String>
- Action to be taken on requests that match the rule.
- defence
Hosts List<String> - The list of queried domain names.
- enables List<Integer>
- The enabled status of the rule.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- project
Name String - The name of the project to which your domain names belong.
- rule
Name String - Rule name, fuzzy search.
- rule
Tag String - Rule unique identifier, precise search.
- time
Order StringBy - The list shows the timing sequence.
- acl
Type string - The types of access control rules.
- actions string[]
- Action to be taken on requests that match the rule.
- defence
Hosts string[] - The list of queried domain names.
- enables number[]
- The enabled status of the rule.
- name
Regex string - A Name Regex of Resource.
- output
File string - File name where to save data source results.
- project
Name string - The name of the project to which your domain names belong.
- rule
Name string - Rule name, fuzzy search.
- rule
Tag string - Rule unique identifier, precise search.
- time
Order stringBy - The list shows the timing sequence.
- acl_
type str - The types of access control rules.
- actions Sequence[str]
- Action to be taken on requests that match the rule.
- defence_
hosts Sequence[str] - The list of queried domain names.
- enables Sequence[int]
- The enabled status of the rule.
- name_
regex str - A Name Regex of Resource.
- output_
file str - File name where to save data source results.
- project_
name str - The name of the project to which your domain names belong.
- rule_
name str - Rule name, fuzzy search.
- rule_
tag str - Rule unique identifier, precise search.
- time_
order_ strby - The list shows the timing sequence.
- acl
Type String - The types of access control rules.
- actions List<String>
- Action to be taken on requests that match the rule.
- defence
Hosts List<String> - The list of queried domain names.
- enables List<Number>
- The enabled status of the rule.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- project
Name String - The name of the project to which your domain names belong.
- rule
Name String - Rule name, fuzzy search.
- rule
Tag String - Rule unique identifier, precise search.
- time
Order StringBy - The list shows the timing sequence.
getAclRules Result
The following output properties are available:
- Acl
Type string - Id string
- The provider-assigned unique ID for this managed resource.
- Rules
List<Get
Acl Rules Rule> - Details of the rules.
- Total
Count int - The total count of query.
- Actions List<string>
- Action to be taken on requests that match the rule.
- Defence
Hosts List<string> - Enables List<int>
- Whether to enable the rule.
- Name
Regex string - Output
File string - Project
Name string - Rule
Name string - Rule
Tag string - Rule unique identifier.
- Time
Order stringBy
- Acl
Type string - Id string
- The provider-assigned unique ID for this managed resource.
- Rules
[]Get
Acl Rules Rule - Details of the rules.
- Total
Count int - The total count of query.
- Actions []string
- Action to be taken on requests that match the rule.
- Defence
Hosts []string - Enables []int
- Whether to enable the rule.
- Name
Regex string - Output
File string - Project
Name string - Rule
Name string - Rule
Tag string - Rule unique identifier.
- Time
Order stringBy
- acl
Type String - id String
- The provider-assigned unique ID for this managed resource.
- rules
List<Get
Acl Rules Rule> - Details of the rules.
- total
Count Integer - The total count of query.
- actions List<String>
- Action to be taken on requests that match the rule.
- defence
Hosts List<String> - enables List<Integer>
- Whether to enable the rule.
- name
Regex String - output
File String - project
Name String - rule
Name String - rule
Tag String - Rule unique identifier.
- time
Order StringBy
- acl
Type string - id string
- The provider-assigned unique ID for this managed resource.
- rules
Get
Acl Rules Rule[] - Details of the rules.
- total
Count number - The total count of query.
- actions string[]
- Action to be taken on requests that match the rule.
- defence
Hosts string[] - enables number[]
- Whether to enable the rule.
- name
Regex string - output
File string - project
Name string - rule
Name string - rule
Tag string - Rule unique identifier.
- time
Order stringBy
- acl_
type str - id str
- The provider-assigned unique ID for this managed resource.
- rules
Sequence[Get
Acl Rules Rule] - Details of the rules.
- total_
count int - The total count of query.
- actions Sequence[str]
- Action to be taken on requests that match the rule.
- defence_
hosts Sequence[str] - enables Sequence[int]
- Whether to enable the rule.
- name_
regex str - output_
file str - project_
name str - rule_
name str - rule_
tag str - Rule unique identifier.
- time_
order_ strby
- acl
Type String - id String
- The provider-assigned unique ID for this managed resource.
- rules List<Property Map>
- Details of the rules.
- total
Count Number - The total count of query.
- actions List<String>
- Action to be taken on requests that match the rule.
- defence
Hosts List<String> - enables List<Number>
- Whether to enable the rule.
- name
Regex String - output
File String - project
Name String - rule
Name String - rule
Tag String - Rule unique identifier.
- time
Order StringBy
Supporting Types
GetAclRulesRule
- Accurate
Group GetAcl Rules Rule Accurate Group - Advanced conditions.
- Action string
- Action to be taken on requests that match the rule.
- Advanced int
- Whether to set advanced conditions.
- Client
Ip string - IP address.
- Description string
- Rule description.
- Enable int
- The enabled status of the rule.
- Host
Add intType - Type of domain name addition.
- Host
Group List<int>Ids - The ID of host group.
- Host
Groups List<GetAcl Rules Rule Host Group> - The list of domain name groups.
- Host
Lists List<string> - Single or multiple domain names are supported.
- Id int
- Rule ID.
- Ip
Add intType - Type of IP address addition.
- Ip
Group List<int>Ids - The ID of the IP address group.
- Ip
Groups List<GetAcl Rules Rule Ip Group> - The list of domain name groups.
- Ip
Lists List<string> - Single or multiple IP addresses are supported.
- Ip
Location List<string>Countries - Country or region code.
- Ip
Location List<string>Subregions - Domestic region code.
- Name string
- Rule name.
- Rule
Tag string - Rule unique identifier, precise search.
- Update
Time string - Update time of the rule.
- Url string
- The path of Matching.
- Accurate
Group GetAcl Rules Rule Accurate Group - Advanced conditions.
- Action string
- Action to be taken on requests that match the rule.
- Advanced int
- Whether to set advanced conditions.
- Client
Ip string - IP address.
- Description string
- Rule description.
- Enable int
- The enabled status of the rule.
- Host
Add intType - Type of domain name addition.
- Host
Group []intIds - The ID of host group.
- Host
Groups []GetAcl Rules Rule Host Group - The list of domain name groups.
- Host
Lists []string - Single or multiple domain names are supported.
- Id int
- Rule ID.
- Ip
Add intType - Type of IP address addition.
- Ip
Group []intIds - The ID of the IP address group.
- Ip
Groups []GetAcl Rules Rule Ip Group - The list of domain name groups.
- Ip
Lists []string - Single or multiple IP addresses are supported.
- Ip
Location []stringCountries - Country or region code.
- Ip
Location []stringSubregions - Domestic region code.
- Name string
- Rule name.
- Rule
Tag string - Rule unique identifier, precise search.
- Update
Time string - Update time of the rule.
- Url string
- The path of Matching.
- accurate
Group GetAcl Rules Rule Accurate Group - Advanced conditions.
- action String
- Action to be taken on requests that match the rule.
- advanced Integer
- Whether to set advanced conditions.
- client
Ip String - IP address.
- description String
- Rule description.
- enable Integer
- The enabled status of the rule.
- host
Add IntegerType - Type of domain name addition.
- host
Group List<Integer>Ids - The ID of host group.
- host
Groups List<GetAcl Rules Rule Host Group> - The list of domain name groups.
- host
Lists List<String> - Single or multiple domain names are supported.
- id Integer
- Rule ID.
- ip
Add IntegerType - Type of IP address addition.
- ip
Group List<Integer>Ids - The ID of the IP address group.
- ip
Groups List<GetAcl Rules Rule Ip Group> - The list of domain name groups.
- ip
Lists List<String> - Single or multiple IP addresses are supported.
- ip
Location List<String>Countries - Country or region code.
- ip
Location List<String>Subregions - Domestic region code.
- name String
- Rule name.
- rule
Tag String - Rule unique identifier, precise search.
- update
Time String - Update time of the rule.
- url String
- The path of Matching.
- accurate
Group GetAcl Rules Rule Accurate Group - Advanced conditions.
- action string
- Action to be taken on requests that match the rule.
- advanced number
- Whether to set advanced conditions.
- client
Ip string - IP address.
- description string
- Rule description.
- enable number
- The enabled status of the rule.
- host
Add numberType - Type of domain name addition.
- host
Group number[]Ids - The ID of host group.
- host
Groups GetAcl Rules Rule Host Group[] - The list of domain name groups.
- host
Lists string[] - Single or multiple domain names are supported.
- id number
- Rule ID.
- ip
Add numberType - Type of IP address addition.
- ip
Group number[]Ids - The ID of the IP address group.
- ip
Groups GetAcl Rules Rule Ip Group[] - The list of domain name groups.
- ip
Lists string[] - Single or multiple IP addresses are supported.
- ip
Location string[]Countries - Country or region code.
- ip
Location string[]Subregions - Domestic region code.
- name string
- Rule name.
- rule
Tag string - Rule unique identifier, precise search.
- update
Time string - Update time of the rule.
- url string
- The path of Matching.
- accurate_
group GetAcl Rules Rule Accurate Group - Advanced conditions.
- action str
- Action to be taken on requests that match the rule.
- advanced int
- Whether to set advanced conditions.
- client_
ip str - IP address.
- description str
- Rule description.
- enable int
- The enabled status of the rule.
- host_
add_ inttype - Type of domain name addition.
- host_
group_ Sequence[int]ids - The ID of host group.
- host_
groups Sequence[GetAcl Rules Rule Host Group] - The list of domain name groups.
- host_
lists Sequence[str] - Single or multiple domain names are supported.
- id int
- Rule ID.
- ip_
add_ inttype - Type of IP address addition.
- ip_
group_ Sequence[int]ids - The ID of the IP address group.
- ip_
groups Sequence[GetAcl Rules Rule Ip Group] - The list of domain name groups.
- ip_
lists Sequence[str] - Single or multiple IP addresses are supported.
- ip_
location_ Sequence[str]countries - Country or region code.
- ip_
location_ Sequence[str]subregions - Domestic region code.
- name str
- Rule name.
- rule_
tag str - Rule unique identifier, precise search.
- update_
time str - Update time of the rule.
- url str
- The path of Matching.
- accurate
Group Property Map - Advanced conditions.
- action String
- Action to be taken on requests that match the rule.
- advanced Number
- Whether to set advanced conditions.
- client
Ip String - IP address.
- description String
- Rule description.
- enable Number
- The enabled status of the rule.
- host
Add NumberType - Type of domain name addition.
- host
Group List<Number>Ids - The ID of host group.
- host
Groups List<Property Map> - The list of domain name groups.
- host
Lists List<String> - Single or multiple domain names are supported.
- id Number
- Rule ID.
- ip
Add NumberType - Type of IP address addition.
- ip
Group List<Number>Ids - The ID of the IP address group.
- ip
Groups List<Property Map> - The list of domain name groups.
- ip
Lists List<String> - Single or multiple IP addresses are supported.
- ip
Location List<String>Countries - Country or region code.
- ip
Location List<String>Subregions - Domestic region code.
- name String
- Rule name.
- rule
Tag String - Rule unique identifier, precise search.
- update
Time String - Update time of the rule.
- url String
- The path of Matching.
GetAclRulesRuleAccurateGroup
- Accurate
Rules List<GetAcl Rules Rule Accurate Group Accurate Rule> - Details of advanced conditions.
- Logic int
- The logical relationship of advanced conditions.
- Accurate
Rules []GetAcl Rules Rule Accurate Group Accurate Rule - Details of advanced conditions.
- Logic int
- The logical relationship of advanced conditions.
- accurate
Rules List<GetAcl Rules Rule Accurate Group Accurate Rule> - Details of advanced conditions.
- logic Integer
- The logical relationship of advanced conditions.
- accurate
Rules GetAcl Rules Rule Accurate Group Accurate Rule[] - Details of advanced conditions.
- logic number
- The logical relationship of advanced conditions.
- accurate_
rules Sequence[GetAcl Rules Rule Accurate Group Accurate Rule] - Details of advanced conditions.
- logic int
- The logical relationship of advanced conditions.
- accurate
Rules List<Property Map> - Details of advanced conditions.
- logic Number
- The logical relationship of advanced conditions.
GetAclRulesRuleAccurateGroupAccurateRule
- Http
Obj string - The HTTP object to be added to the advanced conditions.
- Obj
Type int - The matching field for HTTP objects.
- Opretar int
- The logical operator for the condition.
- Property int
- Operate the properties of the http object.
- Value
String string - The value to be matched.
- Http
Obj string - The HTTP object to be added to the advanced conditions.
- Obj
Type int - The matching field for HTTP objects.
- Opretar int
- The logical operator for the condition.
- Property int
- Operate the properties of the http object.
- Value
String string - The value to be matched.
- http
Obj String - The HTTP object to be added to the advanced conditions.
- obj
Type Integer - The matching field for HTTP objects.
- opretar Integer
- The logical operator for the condition.
- property Integer
- Operate the properties of the http object.
- value
String String - The value to be matched.
- http
Obj string - The HTTP object to be added to the advanced conditions.
- obj
Type number - The matching field for HTTP objects.
- opretar number
- The logical operator for the condition.
- property number
- Operate the properties of the http object.
- value
String string - The value to be matched.
- http_
obj str - The HTTP object to be added to the advanced conditions.
- obj_
type int - The matching field for HTTP objects.
- opretar int
- The logical operator for the condition.
- property int
- Operate the properties of the http object.
- value_
string str - The value to be matched.
- http
Obj String - The HTTP object to be added to the advanced conditions.
- obj
Type Number - The matching field for HTTP objects.
- opretar Number
- The logical operator for the condition.
- property Number
- Operate the properties of the http object.
- value
String String - The value to be matched.
GetAclRulesRuleHostGroup
- Host
Group intId - The ID of host group.
- Name string
- Rule name.
- Host
Group intId - The ID of host group.
- Name string
- Rule name.
- host
Group IntegerId - The ID of host group.
- name String
- Rule name.
- host
Group numberId - The ID of host group.
- name string
- Rule name.
- host_
group_ intid - The ID of host group.
- name str
- Rule name.
- host
Group NumberId - The ID of host group.
- name String
- Rule name.
GetAclRulesRuleIpGroup
- ip_
group_ intid - The ID of the IP address group.
- name str
- Rule name.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
