1. Packages
  2. F5 BIG-IP
  3. API Docs
  4. ltm
  5. getIrule
f5 BIG-IP v3.16.0 published on Monday, Feb 19, 2024 by Pulumi

f5bigip.ltm.getIrule

Explore with Pulumi AI

f5bigip logo
f5 BIG-IP v3.16.0 published on Monday, Feb 19, 2024 by Pulumi

    Use this data source (f5bigip.ltm.IRule) to get the ltm irule details available on BIG-IP

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using F5BigIP = Pulumi.F5BigIP;
    
    return await Deployment.RunAsync(() => 
    {
        var test = F5BigIP.Ltm.GetIrule.Invoke(new()
        {
            Name = "terraform_irule",
            Partition = "Common",
        });
    
        return new Dictionary<string, object?>
        {
            ["bigipIrule"] = test.Apply(getIruleResult => getIruleResult.Irule),
        };
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-f5bigip/sdk/v3/go/f5bigip/ltm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		test, err := ltm.GetIrule(ctx, &ltm.GetIruleArgs{
    			Name:      "terraform_irule",
    			Partition: "Common",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("bigipIrule", test.Irule)
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.f5bigip.ltm.LtmFunctions;
    import com.pulumi.f5bigip.ltm.inputs.GetIruleArgs;
    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 test = LtmFunctions.getIrule(GetIruleArgs.builder()
                .name("terraform_irule")
                .partition("Common")
                .build());
    
            ctx.export("bigipIrule", test.applyValue(getIruleResult -> getIruleResult.irule()));
        }
    }
    
    import pulumi
    import pulumi_f5bigip as f5bigip
    
    test = f5bigip.ltm.get_irule(name="terraform_irule",
        partition="Common")
    pulumi.export("bigipIrule", test.irule)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as f5bigip from "@pulumi/f5bigip";
    
    const test = f5bigip.ltm.getIrule({
        name: "terraform_irule",
        partition: "Common",
    });
    export const bigipIrule = test.then(test => test.irule);
    
    variables:
      test:
        fn::invoke:
          Function: f5bigip:ltm:getIrule
          Arguments:
            name: terraform_irule
            partition: Common
    outputs:
      bigipIrule: ${test.irule}
    

    Using getIrule

    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 getIrule(args: GetIruleArgs, opts?: InvokeOptions): Promise<GetIruleResult>
    function getIruleOutput(args: GetIruleOutputArgs, opts?: InvokeOptions): Output<GetIruleResult>
    def get_irule(irule: Optional[str] = None,
                  name: Optional[str] = None,
                  partition: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetIruleResult
    def get_irule_output(irule: Optional[pulumi.Input[str]] = None,
                  name: Optional[pulumi.Input[str]] = None,
                  partition: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetIruleResult]
    func GetIrule(ctx *Context, args *GetIruleArgs, opts ...InvokeOption) (*GetIruleResult, error)
    func GetIruleOutput(ctx *Context, args *GetIruleOutputArgs, opts ...InvokeOption) GetIruleResultOutput

    > Note: This function is named GetIrule in the Go SDK.

    public static class GetIrule 
    {
        public static Task<GetIruleResult> InvokeAsync(GetIruleArgs args, InvokeOptions? opts = null)
        public static Output<GetIruleResult> Invoke(GetIruleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIruleResult> getIrule(GetIruleArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: f5bigip:ltm/getIrule:getIrule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name of the irule
    Partition string
    partition of the ltm irule
    Irule string
    Irule configured on bigip
    Name string
    Name of the irule
    Partition string
    partition of the ltm irule
    Irule string
    Irule configured on bigip
    name String
    Name of the irule
    partition String
    partition of the ltm irule
    irule String
    Irule configured on bigip
    name string
    Name of the irule
    partition string
    partition of the ltm irule
    irule string
    Irule configured on bigip
    name str
    Name of the irule
    partition str
    partition of the ltm irule
    irule str
    Irule configured on bigip
    name String
    Name of the irule
    partition String
    partition of the ltm irule
    irule String
    Irule configured on bigip

    getIrule Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of irule configured on bigip with full path
    Partition string
    Bigip partition in which rule is configured
    Irule string
    Irule configured on bigip
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of irule configured on bigip with full path
    Partition string
    Bigip partition in which rule is configured
    Irule string
    Irule configured on bigip
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of irule configured on bigip with full path
    partition String
    Bigip partition in which rule is configured
    irule String
    Irule configured on bigip
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Name of irule configured on bigip with full path
    partition string
    Bigip partition in which rule is configured
    irule string
    Irule configured on bigip
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Name of irule configured on bigip with full path
    partition str
    Bigip partition in which rule is configured
    irule str
    Irule configured on bigip
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of irule configured on bigip with full path
    partition String
    Bigip partition in which rule is configured
    irule String
    Irule configured on bigip

    Package Details

    Repository
    f5 BIG-IP pulumi/pulumi-f5bigip
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the bigip Terraform Provider.
    f5bigip logo
    f5 BIG-IP v3.16.0 published on Monday, Feb 19, 2024 by Pulumi