Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.alb.Rules
Explore with Pulumi AI
Use this data source to query detailed information of alb rules
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.alb.Rules({
    listenerId: "lsn-1iidd19u4oni874adhezjkyj3",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.alb.rules(listener_id="lsn-1iidd19u4oni874adhezjkyj3")
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/alb"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := alb.Rules(ctx, &alb.RulesArgs{
			ListenerId: "lsn-1iidd19u4oni874adhezjkyj3",
		}, 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.Alb.Rules.Invoke(new()
    {
        ListenerId = "lsn-1iidd19u4oni874adhezjkyj3",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.alb.AlbFunctions;
import com.pulumi.volcengine.alb.inputs.RulesArgs;
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 = AlbFunctions.Rules(RulesArgs.builder()
            .listenerId("lsn-1iidd19u4oni874adhezjkyj3")
            .build());
    }
}
variables:
  foo:
    fn::invoke:
      Function: volcengine:alb:Rules
      Arguments:
        listenerId: lsn-1iidd19u4oni874adhezjkyj3
Using Rules
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 rules(args: RulesArgs, opts?: InvokeOptions): Promise<RulesResult>
function rulesOutput(args: RulesOutputArgs, opts?: InvokeOptions): Output<RulesResult>def rules(listener_id: Optional[str] = None,
          output_file: Optional[str] = None,
          opts: Optional[InvokeOptions] = None) -> RulesResult
def rules_output(listener_id: Optional[pulumi.Input[str]] = None,
          output_file: Optional[pulumi.Input[str]] = None,
          opts: Optional[InvokeOptions] = None) -> Output[RulesResult]func Rules(ctx *Context, args *RulesArgs, opts ...InvokeOption) (*RulesResult, error)
func RulesOutput(ctx *Context, args *RulesOutputArgs, opts ...InvokeOption) RulesResultOutputpublic static class Rules 
{
    public static Task<RulesResult> InvokeAsync(RulesArgs args, InvokeOptions? opts = null)
    public static Output<RulesResult> Invoke(RulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<RulesResult> rules(RulesArgs args, InvokeOptions options)
public static Output<RulesResult> rules(RulesArgs args, InvokeOptions options)
fn::invoke:
  function: volcengine:alb:Rules
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ListenerId string
- The Id of listener.
- OutputFile string
- File name where to save data source results.
- ListenerId string
- The Id of listener.
- OutputFile string
- File name where to save data source results.
- listenerId String
- The Id of listener.
- outputFile String
- File name where to save data source results.
- listenerId string
- The Id of listener.
- outputFile string
- File name where to save data source results.
- listener_id str
- The Id of listener.
- output_file str
- File name where to save data source results.
- listenerId String
- The Id of listener.
- outputFile String
- File name where to save data source results.
Rules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- ListenerId string
- Rules
List<RulesRule> 
- The collection of Rule query.
- TotalCount int
- The total count of Rule query.
- OutputFile string
- Id string
- The provider-assigned unique ID for this managed resource.
- ListenerId string
- Rules
[]RulesRule 
- The collection of Rule query.
- TotalCount int
- The total count of Rule query.
- OutputFile string
- id String
- The provider-assigned unique ID for this managed resource.
- listenerId String
- rules
List<RulesRule> 
- The collection of Rule query.
- totalCount Integer
- The total count of Rule query.
- outputFile String
- id string
- The provider-assigned unique ID for this managed resource.
- listenerId string
- rules
RulesRule[] 
- The collection of Rule query.
- totalCount number
- The total count of Rule query.
- outputFile string
- id str
- The provider-assigned unique ID for this managed resource.
- listener_id str
- rules
Sequence[RulesRule] 
- The collection of Rule query.
- total_count int
- The total count of Rule query.
- output_file str
- id String
- The provider-assigned unique ID for this managed resource.
- listenerId String
- rules List<Property Map>
- The collection of Rule query.
- totalCount Number
- The total count of Rule query.
- outputFile String
Supporting Types
RulesRule 
- Description string
- The Description of Rule.
- Domain string
- The Domain of Rule.
- Id string
- The Id of Rule.
- RedirectConfigs List<RulesRule Redirect Config> 
- Redirect related configuration.
- RewriteConfigs List<RulesRule Rewrite Config> 
- The list of rewrite configurations.
- RewriteEnabled string
- Rewrite configuration switch for forwarding rules, only allows configuration and takes effect when RuleAction is empty (i.e., forwarding to server group). Only available for whitelist users, please submit an application to experience. Supported values are as follows: on: enable. off: disable.
- RuleAction string
- The forwarding rule action, if this parameter is empty, forward to server group, if value is Redirect, will redirect.
- RuleId string
- The Id of Rule.
- ServerGroup stringId 
- The Id of Server Group.
- TrafficLimit stringEnabled 
- Forwarding rule QPS rate limiting switch: on: enable. off: disable (default).
- TrafficLimit intQps 
- When Rules.N.TrafficLimitEnabled is turned on, this field is required. Requests per second. Valid values are between 100 and 100000.
- Url string
- The Url of Rule.
- Description string
- The Description of Rule.
- Domain string
- The Domain of Rule.
- Id string
- The Id of Rule.
- RedirectConfigs []RulesRule Redirect Config 
- Redirect related configuration.
- RewriteConfigs []RulesRule Rewrite Config 
- The list of rewrite configurations.
- RewriteEnabled string
- Rewrite configuration switch for forwarding rules, only allows configuration and takes effect when RuleAction is empty (i.e., forwarding to server group). Only available for whitelist users, please submit an application to experience. Supported values are as follows: on: enable. off: disable.
- RuleAction string
- The forwarding rule action, if this parameter is empty, forward to server group, if value is Redirect, will redirect.
- RuleId string
- The Id of Rule.
- ServerGroup stringId 
- The Id of Server Group.
- TrafficLimit stringEnabled 
- Forwarding rule QPS rate limiting switch: on: enable. off: disable (default).
- TrafficLimit intQps 
- When Rules.N.TrafficLimitEnabled is turned on, this field is required. Requests per second. Valid values are between 100 and 100000.
- Url string
- The Url of Rule.
- description String
- The Description of Rule.
- domain String
- The Domain of Rule.
- id String
- The Id of Rule.
- redirectConfigs List<RulesRule Redirect Config> 
- Redirect related configuration.
- rewriteConfigs List<RulesRule Rewrite Config> 
- The list of rewrite configurations.
- rewriteEnabled String
- Rewrite configuration switch for forwarding rules, only allows configuration and takes effect when RuleAction is empty (i.e., forwarding to server group). Only available for whitelist users, please submit an application to experience. Supported values are as follows: on: enable. off: disable.
- ruleAction String
- The forwarding rule action, if this parameter is empty, forward to server group, if value is Redirect, will redirect.
- ruleId String
- The Id of Rule.
- serverGroup StringId 
- The Id of Server Group.
- trafficLimit StringEnabled 
- Forwarding rule QPS rate limiting switch: on: enable. off: disable (default).
- trafficLimit IntegerQps 
- When Rules.N.TrafficLimitEnabled is turned on, this field is required. Requests per second. Valid values are between 100 and 100000.
- url String
- The Url of Rule.
- description string
- The Description of Rule.
- domain string
- The Domain of Rule.
- id string
- The Id of Rule.
- redirectConfigs RulesRule Redirect Config[] 
- Redirect related configuration.
- rewriteConfigs RulesRule Rewrite Config[] 
- The list of rewrite configurations.
- rewriteEnabled string
- Rewrite configuration switch for forwarding rules, only allows configuration and takes effect when RuleAction is empty (i.e., forwarding to server group). Only available for whitelist users, please submit an application to experience. Supported values are as follows: on: enable. off: disable.
- ruleAction string
- The forwarding rule action, if this parameter is empty, forward to server group, if value is Redirect, will redirect.
- ruleId string
- The Id of Rule.
- serverGroup stringId 
- The Id of Server Group.
- trafficLimit stringEnabled 
- Forwarding rule QPS rate limiting switch: on: enable. off: disable (default).
- trafficLimit numberQps 
- When Rules.N.TrafficLimitEnabled is turned on, this field is required. Requests per second. Valid values are between 100 and 100000.
- url string
- The Url of Rule.
- description str
- The Description of Rule.
- domain str
- The Domain of Rule.
- id str
- The Id of Rule.
- redirect_configs Sequence[RulesRule Redirect Config] 
- Redirect related configuration.
- rewrite_configs Sequence[RulesRule Rewrite Config] 
- The list of rewrite configurations.
- rewrite_enabled str
- Rewrite configuration switch for forwarding rules, only allows configuration and takes effect when RuleAction is empty (i.e., forwarding to server group). Only available for whitelist users, please submit an application to experience. Supported values are as follows: on: enable. off: disable.
- rule_action str
- The forwarding rule action, if this parameter is empty, forward to server group, if value is Redirect, will redirect.
- rule_id str
- The Id of Rule.
- server_group_ strid 
- The Id of Server Group.
- traffic_limit_ strenabled 
- Forwarding rule QPS rate limiting switch: on: enable. off: disable (default).
- traffic_limit_ intqps 
- When Rules.N.TrafficLimitEnabled is turned on, this field is required. Requests per second. Valid values are between 100 and 100000.
- url str
- The Url of Rule.
- description String
- The Description of Rule.
- domain String
- The Domain of Rule.
- id String
- The Id of Rule.
- redirectConfigs List<Property Map>
- Redirect related configuration.
- rewriteConfigs List<Property Map>
- The list of rewrite configurations.
- rewriteEnabled String
- Rewrite configuration switch for forwarding rules, only allows configuration and takes effect when RuleAction is empty (i.e., forwarding to server group). Only available for whitelist users, please submit an application to experience. Supported values are as follows: on: enable. off: disable.
- ruleAction String
- The forwarding rule action, if this parameter is empty, forward to server group, if value is Redirect, will redirect.
- ruleId String
- The Id of Rule.
- serverGroup StringId 
- The Id of Server Group.
- trafficLimit StringEnabled 
- Forwarding rule QPS rate limiting switch: on: enable. off: disable (default).
- trafficLimit NumberQps 
- When Rules.N.TrafficLimitEnabled is turned on, this field is required. Requests per second. Valid values are between 100 and 100000.
- url String
- The Url of Rule.
RulesRuleRedirectConfig   
- RedirectDomain string
- The redirect domain.
- RedirectHttp stringCode 
- The redirect HTTP code,support 301(default), 302, 307, 308.
- RedirectPort string
- The redirect port.
- RedirectProtocol string
- The redirect protocol,support HTTP,HTTPS(default).
- RedirectUri string
- The redirect URI.
- RedirectDomain string
- The redirect domain.
- RedirectHttp stringCode 
- The redirect HTTP code,support 301(default), 302, 307, 308.
- RedirectPort string
- The redirect port.
- RedirectProtocol string
- The redirect protocol,support HTTP,HTTPS(default).
- RedirectUri string
- The redirect URI.
- redirectDomain String
- The redirect domain.
- redirectHttp StringCode 
- The redirect HTTP code,support 301(default), 302, 307, 308.
- redirectPort String
- The redirect port.
- redirectProtocol String
- The redirect protocol,support HTTP,HTTPS(default).
- redirectUri String
- The redirect URI.
- redirectDomain string
- The redirect domain.
- redirectHttp stringCode 
- The redirect HTTP code,support 301(default), 302, 307, 308.
- redirectPort string
- The redirect port.
- redirectProtocol string
- The redirect protocol,support HTTP,HTTPS(default).
- redirectUri string
- The redirect URI.
- redirect_domain str
- The redirect domain.
- redirect_http_ strcode 
- The redirect HTTP code,support 301(default), 302, 307, 308.
- redirect_port str
- The redirect port.
- redirect_protocol str
- The redirect protocol,support HTTP,HTTPS(default).
- redirect_uri str
- The redirect URI.
- redirectDomain String
- The redirect domain.
- redirectHttp StringCode 
- The redirect HTTP code,support 301(default), 302, 307, 308.
- redirectPort String
- The redirect port.
- redirectProtocol String
- The redirect protocol,support HTTP,HTTPS(default).
- redirectUri String
- The redirect URI.
RulesRuleRewriteConfig   
- RewritePath string
- Rewrite path.
- RewritePath string
- Rewrite path.
- rewritePath String
- Rewrite path.
- rewritePath string
- Rewrite path.
- rewrite_path str
- Rewrite path.
- rewritePath String
- Rewrite path.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the volcengineTerraform Provider.