1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. getLblistener
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

edgecenter.getLblistener

Explore with Pulumi AI

edgecenter logo
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as edgecenter from "@pulumi/edgecenter";
    
    const pr = edgecenter.getProject({
        name: "test",
    });
    const rg = edgecenter.getRegion({
        name: "ED-10 Preprod",
    });
    const lblistener = Promise.all([rg, pr]).then(([rg, pr]) => edgecenter.getLblistener({
        name: "test-listener",
        loadbalancerId: "59b2eabc-c0a8-4545-8081-979bd963c6ab",
        regionId: rg.id,
        projectId: pr.id,
    }));
    export const view = lblistener;
    
    import pulumi
    import pulumi_edgecenter as edgecenter
    
    pr = edgecenter.get_project(name="test")
    rg = edgecenter.get_region(name="ED-10 Preprod")
    lblistener = edgecenter.get_lblistener(name="test-listener",
        loadbalancer_id="59b2eabc-c0a8-4545-8081-979bd963c6ab",
        region_id=rg.id,
        project_id=pr.id)
    pulumi.export("view", lblistener)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		pr, err := edgecenter.LookupProject(ctx, &edgecenter.LookupProjectArgs{
    			Name: pulumi.StringRef("test"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		rg, err := edgecenter.GetRegion(ctx, &edgecenter.GetRegionArgs{
    			Name: "ED-10 Preprod",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		lblistener, err := edgecenter.LookupLblistener(ctx, &edgecenter.LookupLblistenerArgs{
    			Name:           "test-listener",
    			LoadbalancerId: pulumi.StringRef("59b2eabc-c0a8-4545-8081-979bd963c6ab"),
    			RegionId:       pulumi.Float64Ref(rg.Id),
    			ProjectId:      pulumi.Float64Ref(pr.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("view", lblistener)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Edgecenter = Pulumi.Edgecenter;
    
    return await Deployment.RunAsync(() => 
    {
        var pr = Edgecenter.GetProject.Invoke(new()
        {
            Name = "test",
        });
    
        var rg = Edgecenter.GetRegion.Invoke(new()
        {
            Name = "ED-10 Preprod",
        });
    
        var lblistener = Edgecenter.GetLblistener.Invoke(new()
        {
            Name = "test-listener",
            LoadbalancerId = "59b2eabc-c0a8-4545-8081-979bd963c6ab",
            RegionId = rg.Apply(getRegionResult => getRegionResult.Id),
            ProjectId = pr.Apply(getProjectResult => getProjectResult.Id),
        });
    
        return new Dictionary<string, object?>
        {
            ["view"] = lblistener,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.edgecenter.EdgecenterFunctions;
    import com.pulumi.edgecenter.inputs.GetProjectArgs;
    import com.pulumi.edgecenter.inputs.GetRegionArgs;
    import com.pulumi.edgecenter.inputs.GetLblistenerArgs;
    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 pr = EdgecenterFunctions.getProject(GetProjectArgs.builder()
                .name("test")
                .build());
    
            final var rg = EdgecenterFunctions.getRegion(GetRegionArgs.builder()
                .name("ED-10 Preprod")
                .build());
    
            final var lblistener = EdgecenterFunctions.getLblistener(GetLblistenerArgs.builder()
                .name("test-listener")
                .loadbalancerId("59b2eabc-c0a8-4545-8081-979bd963c6ab")
                .regionId(rg.applyValue(getRegionResult -> getRegionResult.id()))
                .projectId(pr.applyValue(getProjectResult -> getProjectResult.id()))
                .build());
    
            ctx.export("view", lblistener.applyValue(getLblistenerResult -> getLblistenerResult));
        }
    }
    
    variables:
      pr:
        fn::invoke:
          function: edgecenter:getProject
          arguments:
            name: test
      rg:
        fn::invoke:
          function: edgecenter:getRegion
          arguments:
            name: ED-10 Preprod
      lblistener:
        fn::invoke:
          function: edgecenter:getLblistener
          arguments:
            name: test-listener
            loadbalancerId: 59b2eabc-c0a8-4545-8081-979bd963c6ab
            regionId: ${rg.id}
            projectId: ${pr.id}
    outputs:
      view: ${lblistener}
    

    Using getLblistener

    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 getLblistener(args: GetLblistenerArgs, opts?: InvokeOptions): Promise<GetLblistenerResult>
    function getLblistenerOutput(args: GetLblistenerOutputArgs, opts?: InvokeOptions): Output<GetLblistenerResult>
    def get_lblistener(id: Optional[str] = None,
                       loadbalancer_id: Optional[str] = None,
                       name: Optional[str] = None,
                       project_id: Optional[float] = None,
                       project_name: Optional[str] = None,
                       region_id: Optional[float] = None,
                       region_name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetLblistenerResult
    def get_lblistener_output(id: Optional[pulumi.Input[str]] = None,
                       loadbalancer_id: Optional[pulumi.Input[str]] = None,
                       name: Optional[pulumi.Input[str]] = None,
                       project_id: Optional[pulumi.Input[float]] = None,
                       project_name: Optional[pulumi.Input[str]] = None,
                       region_id: Optional[pulumi.Input[float]] = None,
                       region_name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetLblistenerResult]
    func LookupLblistener(ctx *Context, args *LookupLblistenerArgs, opts ...InvokeOption) (*LookupLblistenerResult, error)
    func LookupLblistenerOutput(ctx *Context, args *LookupLblistenerOutputArgs, opts ...InvokeOption) LookupLblistenerResultOutput

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

    public static class GetLblistener 
    {
        public static Task<GetLblistenerResult> InvokeAsync(GetLblistenerArgs args, InvokeOptions? opts = null)
        public static Output<GetLblistenerResult> Invoke(GetLblistenerInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLblistenerResult> getLblistener(GetLblistenerArgs args, InvokeOptions options)
    public static Output<GetLblistenerResult> getLblistener(GetLblistenerArgs args, InvokeOptions options)
    
    fn::invoke:
      function: edgecenter:index/getLblistener:getLblistener
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the load balancer listener.
    Id string
    The ID of this resource.
    LoadbalancerId string
    The uuid for the load balancer.
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    Name string
    The name of the load balancer listener.
    Id string
    The ID of this resource.
    LoadbalancerId string
    The uuid for the load balancer.
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    name String
    The name of the load balancer listener.
    id String
    The ID of this resource.
    loadbalancerId String
    The uuid for the load balancer.
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    name string
    The name of the load balancer listener.
    id string
    The ID of this resource.
    loadbalancerId string
    The uuid for the load balancer.
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    name str
    The name of the load balancer listener.
    id str
    The ID of this resource.
    loadbalancer_id str
    The uuid for the load balancer.
    project_id float
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    region_id float
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    name String
    The name of the load balancer listener.
    id String
    The ID of this resource.
    loadbalancerId String
    The uuid for the load balancer.
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.

    getLblistener Result

    The following output properties are available:

    AllowedCidrs List<string>
    The allowed CIDRs for listener.
    Id string
    The ID of this resource.
    L7policies List<string>
    Set of l7policy uuids attached to this listener.
    LoadbalancerId string
    The uuid for the load balancer.
    Name string
    The name of the load balancer listener.
    OperatingStatus string
    The current operational status of the load balancer.
    PoolCount double
    Number of pools associated with the load balancer.
    Protocol string
    Available values is 'HTTP', 'HTTPS', 'TCP', 'UDP'
    ProtocolPort double
    The port on which the protocol is bound.
    ProvisioningStatus string
    The current provisioning status of the load balancer.
    TimeoutClientData double
    The timeout for the frontend client inactivity (in milliseconds).
    TimeoutMemberConnect double
    The timeout for the backend member connection (in milliseconds).
    TimeoutMemberData double
    The timeout for the backend member inactivity (in milliseconds).
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    AllowedCidrs []string
    The allowed CIDRs for listener.
    Id string
    The ID of this resource.
    L7policies []string
    Set of l7policy uuids attached to this listener.
    LoadbalancerId string
    The uuid for the load balancer.
    Name string
    The name of the load balancer listener.
    OperatingStatus string
    The current operational status of the load balancer.
    PoolCount float64
    Number of pools associated with the load balancer.
    Protocol string
    Available values is 'HTTP', 'HTTPS', 'TCP', 'UDP'
    ProtocolPort float64
    The port on which the protocol is bound.
    ProvisioningStatus string
    The current provisioning status of the load balancer.
    TimeoutClientData float64
    The timeout for the frontend client inactivity (in milliseconds).
    TimeoutMemberConnect float64
    The timeout for the backend member connection (in milliseconds).
    TimeoutMemberData float64
    The timeout for the backend member inactivity (in milliseconds).
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    allowedCidrs List<String>
    The allowed CIDRs for listener.
    id String
    The ID of this resource.
    l7policies List<String>
    Set of l7policy uuids attached to this listener.
    loadbalancerId String
    The uuid for the load balancer.
    name String
    The name of the load balancer listener.
    operatingStatus String
    The current operational status of the load balancer.
    poolCount Double
    Number of pools associated with the load balancer.
    protocol String
    Available values is 'HTTP', 'HTTPS', 'TCP', 'UDP'
    protocolPort Double
    The port on which the protocol is bound.
    provisioningStatus String
    The current provisioning status of the load balancer.
    timeoutClientData Double
    The timeout for the frontend client inactivity (in milliseconds).
    timeoutMemberConnect Double
    The timeout for the backend member connection (in milliseconds).
    timeoutMemberData Double
    The timeout for the backend member inactivity (in milliseconds).
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    allowedCidrs string[]
    The allowed CIDRs for listener.
    id string
    The ID of this resource.
    l7policies string[]
    Set of l7policy uuids attached to this listener.
    loadbalancerId string
    The uuid for the load balancer.
    name string
    The name of the load balancer listener.
    operatingStatus string
    The current operational status of the load balancer.
    poolCount number
    Number of pools associated with the load balancer.
    protocol string
    Available values is 'HTTP', 'HTTPS', 'TCP', 'UDP'
    protocolPort number
    The port on which the protocol is bound.
    provisioningStatus string
    The current provisioning status of the load balancer.
    timeoutClientData number
    The timeout for the frontend client inactivity (in milliseconds).
    timeoutMemberConnect number
    The timeout for the backend member connection (in milliseconds).
    timeoutMemberData number
    The timeout for the backend member inactivity (in milliseconds).
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    allowed_cidrs Sequence[str]
    The allowed CIDRs for listener.
    id str
    The ID of this resource.
    l7policies Sequence[str]
    Set of l7policy uuids attached to this listener.
    loadbalancer_id str
    The uuid for the load balancer.
    name str
    The name of the load balancer listener.
    operating_status str
    The current operational status of the load balancer.
    pool_count float
    Number of pools associated with the load balancer.
    protocol str
    Available values is 'HTTP', 'HTTPS', 'TCP', 'UDP'
    protocol_port float
    The port on which the protocol is bound.
    provisioning_status str
    The current provisioning status of the load balancer.
    timeout_client_data float
    The timeout for the frontend client inactivity (in milliseconds).
    timeout_member_connect float
    The timeout for the backend member connection (in milliseconds).
    timeout_member_data float
    The timeout for the backend member inactivity (in milliseconds).
    project_id float
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    region_id float
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    allowedCidrs List<String>
    The allowed CIDRs for listener.
    id String
    The ID of this resource.
    l7policies List<String>
    Set of l7policy uuids attached to this listener.
    loadbalancerId String
    The uuid for the load balancer.
    name String
    The name of the load balancer listener.
    operatingStatus String
    The current operational status of the load balancer.
    poolCount Number
    Number of pools associated with the load balancer.
    protocol String
    Available values is 'HTTP', 'HTTPS', 'TCP', 'UDP'
    protocolPort Number
    The port on which the protocol is bound.
    provisioningStatus String
    The current provisioning status of the load balancer.
    timeoutClientData Number
    The timeout for the frontend client inactivity (in milliseconds).
    timeoutMemberConnect Number
    The timeout for the backend member connection (in milliseconds).
    timeoutMemberData Number
    The timeout for the backend member inactivity (in milliseconds).
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.

    Package Details

    Repository
    edgecenter edge-center/terraform-provider-edgecenter
    License
    Notes
    This Pulumi package is based on the edgecenter Terraform Provider.
    edgecenter logo
    edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center