Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine
volcengine.waf.CustomPages
Explore with Pulumi AI
Deprecated: volcengine.waf.CustomPages has been deprecated in favor of volcengine.waf.getCustomPages
Use this data source to query detailed information of waf custom pages
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.waf.getCustomPages({
host: "www.tf-test.com",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.waf.get_custom_pages(host="www.tf-test.com")
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.GetCustomPages(ctx, &waf.GetCustomPagesArgs{
Host: "www.tf-test.com",
}, 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.GetCustomPages.Invoke(new()
{
Host = "www.tf-test.com",
});
});
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.GetCustomPagesArgs;
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.getCustomPages(GetCustomPagesArgs.builder()
.host("www.tf-test.com")
.build());
}
}
variables:
foo:
fn::invoke:
Function: volcengine:waf:getCustomPages
Arguments:
host: www.tf-test.com
Using CustomPages
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 customPages(args: CustomPagesArgs, opts?: InvokeOptions): Promise<CustomPagesResult>
function customPagesOutput(args: CustomPagesOutputArgs, opts?: InvokeOptions): Output<CustomPagesResult>
def custom_pages(host: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
project_name: Optional[str] = None,
rule_tag: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> CustomPagesResult
def custom_pages_output(host: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
rule_tag: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[CustomPagesResult]
func CustomPages(ctx *Context, args *CustomPagesArgs, opts ...InvokeOption) (*CustomPagesResult, error)
func CustomPagesOutput(ctx *Context, args *CustomPagesOutputArgs, opts ...InvokeOption) CustomPagesResultOutput
public static class CustomPages
{
public static Task<CustomPagesResult> InvokeAsync(CustomPagesArgs args, InvokeOptions? opts = null)
public static Output<CustomPagesResult> Invoke(CustomPagesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<CustomPagesResult> customPages(CustomPagesArgs args, InvokeOptions options)
public static Output<CustomPagesResult> customPages(CustomPagesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:waf:CustomPages
arguments:
# arguments dictionary
The following arguments are supported:
- Host string
- The domain names that need to be viewed.
- 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
Tag string - Unique identification of the rules.
- Host string
- The domain names that need to be viewed.
- 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
Tag string - Unique identification of the rules.
- host String
- The domain names that need to be viewed.
- 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
Tag String - Unique identification of the rules.
- host string
- The domain names that need to be viewed.
- 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
Tag string - Unique identification of the rules.
- host str
- The domain names that need to be viewed.
- 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_
tag str - Unique identification of the rules.
- host String
- The domain names that need to be viewed.
- 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
Tag String - Unique identification of the rules.
CustomPages Result
The following output properties are available:
- Datas
List<Custom
Pages Data> - Details of the rules.
- Host string
- Domain name to be protected.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Name
Regex string - Output
File string - Project
Name string - Rule
Tag string - Unique identification of the rules.
- Datas
[]Custom
Pages Data - Details of the rules.
- Host string
- Domain name to be protected.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Name
Regex string - Output
File string - Project
Name string - Rule
Tag string - Unique identification of the rules.
- datas
List<Custom
Pages Data> - Details of the rules.
- host String
- Domain name to be protected.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- name
Regex String - output
File String - project
Name String - rule
Tag String - Unique identification of the rules.
- datas
Custom
Pages Data[] - Details of the rules.
- host string
- Domain name to be protected.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- name
Regex string - output
File string - project
Name string - rule
Tag string - Unique identification of the rules.
- datas
Sequence[Custom
Pages Data] - Details of the rules.
- host str
- Domain name to be protected.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- name_
regex str - output_
file str - project_
name str - rule_
tag str - Unique identification of the rules.
- datas List<Property Map>
- Details of the rules.
- host String
- Domain name to be protected.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- name
Regex String - output
File String - project
Name String - rule
Tag String - Unique identification of the rules.
Supporting Types
CustomPagesData
- Accurate
Custom
Pages Data Accurate - Advanced conditions.
- Advanced int
- Whether to configure advanced conditions.
- Body string
- The layout content of the response page.
- Client
Ip string - Fill in ALL, which means this rule will take effect on all IP addresses.
- Code string
- Custom HTTP code returned when the request is blocked. Required if PageMode=0 or 1.
- Content
Type string - The layout template of the response page. Required if PageMode=0 or 1.
- Description string
- Rule description.
- Enable int
- Whether to enable the rule.
- Group
Id int - The ID of the advanced conditional rule group.
- Header string
- Request header information.
- Host string
- The domain names that need to be viewed.
- Id int
- The ID of rule.
- Isolation
Id string - The ID of Region.
- Name string
- Rule name.
- Page
Mode int - The layout template of the response page.
- Policy int
- Action to be taken on requests that match the rule.
- Redirect
Url string - The path where users should be redirected.
- Rule
Tag string - Unique identification of the rules.
- Update
Time string - Rule update time.
- Url string
- Match the path.
- Accurate
Custom
Pages Data Accurate - Advanced conditions.
- Advanced int
- Whether to configure advanced conditions.
- Body string
- The layout content of the response page.
- Client
Ip string - Fill in ALL, which means this rule will take effect on all IP addresses.
- Code string
- Custom HTTP code returned when the request is blocked. Required if PageMode=0 or 1.
- Content
Type string - The layout template of the response page. Required if PageMode=0 or 1.
- Description string
- Rule description.
- Enable int
- Whether to enable the rule.
- Group
Id int - The ID of the advanced conditional rule group.
- Header string
- Request header information.
- Host string
- The domain names that need to be viewed.
- Id int
- The ID of rule.
- Isolation
Id string - The ID of Region.
- Name string
- Rule name.
- Page
Mode int - The layout template of the response page.
- Policy int
- Action to be taken on requests that match the rule.
- Redirect
Url string - The path where users should be redirected.
- Rule
Tag string - Unique identification of the rules.
- Update
Time string - Rule update time.
- Url string
- Match the path.
- accurate
Custom
Pages Data Accurate - Advanced conditions.
- advanced Integer
- Whether to configure advanced conditions.
- body String
- The layout content of the response page.
- client
Ip String - Fill in ALL, which means this rule will take effect on all IP addresses.
- code String
- Custom HTTP code returned when the request is blocked. Required if PageMode=0 or 1.
- content
Type String - The layout template of the response page. Required if PageMode=0 or 1.
- description String
- Rule description.
- enable Integer
- Whether to enable the rule.
- group
Id Integer - The ID of the advanced conditional rule group.
- header String
- Request header information.
- host String
- The domain names that need to be viewed.
- id Integer
- The ID of rule.
- isolation
Id String - The ID of Region.
- name String
- Rule name.
- page
Mode Integer - The layout template of the response page.
- policy Integer
- Action to be taken on requests that match the rule.
- redirect
Url String - The path where users should be redirected.
- rule
Tag String - Unique identification of the rules.
- update
Time String - Rule update time.
- url String
- Match the path.
- accurate
Custom
Pages Data Accurate - Advanced conditions.
- advanced number
- Whether to configure advanced conditions.
- body string
- The layout content of the response page.
- client
Ip string - Fill in ALL, which means this rule will take effect on all IP addresses.
- code string
- Custom HTTP code returned when the request is blocked. Required if PageMode=0 or 1.
- content
Type string - The layout template of the response page. Required if PageMode=0 or 1.
- description string
- Rule description.
- enable number
- Whether to enable the rule.
- group
Id number - The ID of the advanced conditional rule group.
- header string
- Request header information.
- host string
- The domain names that need to be viewed.
- id number
- The ID of rule.
- isolation
Id string - The ID of Region.
- name string
- Rule name.
- page
Mode number - The layout template of the response page.
- policy number
- Action to be taken on requests that match the rule.
- redirect
Url string - The path where users should be redirected.
- rule
Tag string - Unique identification of the rules.
- update
Time string - Rule update time.
- url string
- Match the path.
- accurate
Custom
Pages Data Accurate - Advanced conditions.
- advanced int
- Whether to configure advanced conditions.
- body str
- The layout content of the response page.
- client_
ip str - Fill in ALL, which means this rule will take effect on all IP addresses.
- code str
- Custom HTTP code returned when the request is blocked. Required if PageMode=0 or 1.
- content_
type str - The layout template of the response page. Required if PageMode=0 or 1.
- description str
- Rule description.
- enable int
- Whether to enable the rule.
- group_
id int - The ID of the advanced conditional rule group.
- header str
- Request header information.
- host str
- The domain names that need to be viewed.
- id int
- The ID of rule.
- isolation_
id str - The ID of Region.
- name str
- Rule name.
- page_
mode int - The layout template of the response page.
- policy int
- Action to be taken on requests that match the rule.
- redirect_
url str - The path where users should be redirected.
- rule_
tag str - Unique identification of the rules.
- update_
time str - Rule update time.
- url str
- Match the path.
- accurate Property Map
- Advanced conditions.
- advanced Number
- Whether to configure advanced conditions.
- body String
- The layout content of the response page.
- client
Ip String - Fill in ALL, which means this rule will take effect on all IP addresses.
- code String
- Custom HTTP code returned when the request is blocked. Required if PageMode=0 or 1.
- content
Type String - The layout template of the response page. Required if PageMode=0 or 1.
- description String
- Rule description.
- enable Number
- Whether to enable the rule.
- group
Id Number - The ID of the advanced conditional rule group.
- header String
- Request header information.
- host String
- The domain names that need to be viewed.
- id Number
- The ID of rule.
- isolation
Id String - The ID of Region.
- name String
- Rule name.
- page
Mode Number - The layout template of the response page.
- policy Number
- Action to be taken on requests that match the rule.
- redirect
Url String - The path where users should be redirected.
- rule
Tag String - Unique identification of the rules.
- update
Time String - Rule update time.
- url String
- Match the path.
CustomPagesDataAccurate
- Accurate
Rules List<CustomPages Data Accurate Accurate Rule> - Details of advanced conditions.
- Logic int
- The logical relationship of advanced conditions.
- Accurate
Rules []CustomPages Data Accurate Accurate Rule - Details of advanced conditions.
- Logic int
- The logical relationship of advanced conditions.
- accurate
Rules List<CustomPages Data Accurate Accurate Rule> - Details of advanced conditions.
- logic Integer
- The logical relationship of advanced conditions.
- accurate
Rules CustomPages Data Accurate Accurate Rule[] - Details of advanced conditions.
- logic number
- The logical relationship of advanced conditions.
- accurate_
rules Sequence[CustomPages Data Accurate 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.
CustomPagesDataAccurateAccurateRule
- 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.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.