Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine
volcengine.alb.Rules
Explore with Pulumi AI
Use this data source to query detailed information of alb rules
Example Usage
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 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
})
}
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());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.alb.rules(listener_id="lsn-1iidd19u4oni874adhezjkyj3")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.alb.Rules({
listenerId: "lsn-1iidd19u4oni874adhezjkyj3",
});
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) RulesResultOutput
public 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:alb:Rules
arguments:
# arguments dictionary
The following arguments are supported:
- Listener
Id string - The Id of listener.
- Output
File string - File name where to save data source results.
- Listener
Id string - The Id of listener.
- Output
File string - File name where to save data source results.
- listener
Id String - The Id of listener.
- output
File String - File name where to save data source results.
- listener
Id string - The Id of listener.
- output
File 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.
- listener
Id String - The Id of listener.
- output
File 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.
- Listener
Id string - Rules
List<Rules
Rule> - The collection of Rule query.
- Total
Count int - The total count of Rule query.
- Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Listener
Id string - Rules
[]Rules
Rule - The collection of Rule query.
- Total
Count int - The total count of Rule query.
- Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- listener
Id String - rules
List<Rules
Rule> - The collection of Rule query.
- total
Count Integer - The total count of Rule query.
- output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- listener
Id string - rules
Rules
Rule[] - The collection of Rule query.
- total
Count number - The total count of Rule query.
- output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- listener_
id str - rules
Sequence[Rules
Rule] - 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.
- listener
Id String - rules List<Property Map>
- The collection of Rule query.
- total
Count Number - The total count of Rule query.
- output
File String
Supporting Types
RulesRule
- Description string
- The Description of Rule.
- Domain string
- The Domain of Rule.
- Id string
- The Id of Rule.
- Redirect
Configs List<RulesRule Redirect Config> - Redirect related configuration.
- Rewrite
Configs List<RulesRule Rewrite Config> - The list of rewrite configurations.
- Rewrite
Enabled 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.
- Rule
Action string - The forwarding rule action, if this parameter is empty, forward to server group, if value is
Redirect
, will redirect. - Rule
Id string - The Id of Rule.
- Server
Group stringId - The Id of Server Group.
- Traffic
Limit stringEnabled - 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 string
- The Url of Rule.
- Description string
- The Description of Rule.
- Domain string
- The Domain of Rule.
- Id string
- The Id of Rule.
- Redirect
Configs []RulesRule Redirect Config - Redirect related configuration.
- Rewrite
Configs []RulesRule Rewrite Config - The list of rewrite configurations.
- Rewrite
Enabled 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.
- Rule
Action string - The forwarding rule action, if this parameter is empty, forward to server group, if value is
Redirect
, will redirect. - Rule
Id string - The Id of Rule.
- Server
Group stringId - The Id of Server Group.
- Traffic
Limit stringEnabled - 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 string
- The Url of Rule.
- description String
- The Description of Rule.
- domain String
- The Domain of Rule.
- id String
- The Id of Rule.
- redirect
Configs List<RulesRule Redirect Config> - Redirect related configuration.
- rewrite
Configs List<RulesRule Rewrite Config> - The list of rewrite configurations.
- rewrite
Enabled 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.
- rule
Action String - The forwarding rule action, if this parameter is empty, forward to server group, if value is
Redirect
, will redirect. - rule
Id String - The Id of Rule.
- server
Group StringId - The Id of Server Group.
- traffic
Limit StringEnabled - Forwarding rule QPS rate limiting switch: on: enable. off: disable (default).
- traffic
Limit 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.
- redirect
Configs RulesRule Redirect Config[] - Redirect related configuration.
- rewrite
Configs RulesRule Rewrite Config[] - The list of rewrite configurations.
- rewrite
Enabled 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.
- rule
Action string - The forwarding rule action, if this parameter is empty, forward to server group, if value is
Redirect
, will redirect. - rule
Id string - The Id of Rule.
- server
Group stringId - The Id of Server Group.
- traffic
Limit stringEnabled - Forwarding rule QPS rate limiting switch: on: enable. off: disable (default).
- traffic
Limit 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.
- redirect
Configs List<Property Map> - Redirect related configuration.
- rewrite
Configs List<Property Map> - The list of rewrite configurations.
- rewrite
Enabled 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.
- rule
Action String - The forwarding rule action, if this parameter is empty, forward to server group, if value is
Redirect
, will redirect. - rule
Id String - The Id of Rule.
- server
Group StringId - The Id of Server Group.
- traffic
Limit StringEnabled - Forwarding rule QPS rate limiting switch: on: enable. off: disable (default).
- traffic
Limit 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
- Redirect
Domain string - The redirect domain.
- Redirect
Http stringCode - The redirect HTTP code,support 301(default), 302, 307, 308.
- Redirect
Port string - The redirect port.
- Redirect
Protocol string - The redirect protocol,support HTTP,HTTPS(default).
- Redirect
Uri string - The redirect URI.
- Redirect
Domain string - The redirect domain.
- Redirect
Http stringCode - The redirect HTTP code,support 301(default), 302, 307, 308.
- Redirect
Port string - The redirect port.
- Redirect
Protocol string - The redirect protocol,support HTTP,HTTPS(default).
- Redirect
Uri string - The redirect URI.
- redirect
Domain String - The redirect domain.
- redirect
Http StringCode - The redirect HTTP code,support 301(default), 302, 307, 308.
- redirect
Port String - The redirect port.
- redirect
Protocol String - The redirect protocol,support HTTP,HTTPS(default).
- redirect
Uri String - The redirect URI.
- redirect
Domain string - The redirect domain.
- redirect
Http stringCode - The redirect HTTP code,support 301(default), 302, 307, 308.
- redirect
Port string - The redirect port.
- redirect
Protocol string - The redirect protocol,support HTTP,HTTPS(default).
- redirect
Uri 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.
- redirect
Domain String - The redirect domain.
- redirect
Http StringCode - The redirect HTTP code,support 301(default), 302, 307, 308.
- redirect
Port String - The redirect port.
- redirect
Protocol String - The redirect protocol,support HTTP,HTTPS(default).
- redirect
Uri String - The redirect URI.
RulesRuleRewriteConfig
- Rewrite
Path string - Rewrite path.
- Rewrite
Path string - Rewrite path.
- rewrite
Path String - Rewrite path.
- rewrite
Path string - Rewrite path.
- rewrite_
path str - Rewrite path.
- rewrite
Path String - Rewrite path.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.