edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center
edgecenter.getLblistener
Explore with Pulumi AI
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.
- Loadbalancer
Id string - The uuid for the load balancer.
- Project
Id double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name 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.
- Loadbalancer
Id string - The uuid for the load balancer.
- Project
Id float64 - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id float64 - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name 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.
- loadbalancer
Id String - The uuid for the load balancer.
- project
Id Double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name 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.
- loadbalancer
Id string - The uuid for the load balancer.
- project
Id number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name 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.
- loadbalancer
Id String - The uuid for the load balancer.
- project
Id Number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
getLblistener Result
The following output properties are available:
- Allowed
Cidrs 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.
- Loadbalancer
Id string - The uuid for the load balancer.
- Name string
- The name of the load balancer listener.
- Operating
Status string - The current operational status of the load balancer.
- Pool
Count double - Number of pools associated with the load balancer.
- Protocol string
- Available values is 'HTTP', 'HTTPS', 'TCP', 'UDP'
- Protocol
Port double - The port on which the protocol is bound.
- Provisioning
Status string - The current provisioning status of the load balancer.
- Timeout
Client doubleData - The timeout for the frontend client inactivity (in milliseconds).
- Timeout
Member doubleConnect - The timeout for the backend member connection (in milliseconds).
- Timeout
Member doubleData - The timeout for the backend member inactivity (in milliseconds).
- Project
Id double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- Allowed
Cidrs []string - The allowed CIDRs for listener.
- Id string
- The ID of this resource.
- L7policies []string
- Set of l7policy uuids attached to this listener.
- Loadbalancer
Id string - The uuid for the load balancer.
- Name string
- The name of the load balancer listener.
- Operating
Status string - The current operational status of the load balancer.
- Pool
Count float64 - Number of pools associated with the load balancer.
- Protocol string
- Available values is 'HTTP', 'HTTPS', 'TCP', 'UDP'
- Protocol
Port float64 - The port on which the protocol is bound.
- Provisioning
Status string - The current provisioning status of the load balancer.
- Timeout
Client float64Data - The timeout for the frontend client inactivity (in milliseconds).
- Timeout
Member float64Connect - The timeout for the backend member connection (in milliseconds).
- Timeout
Member float64Data - The timeout for the backend member inactivity (in milliseconds).
- Project
Id float64 - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id float64 - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- allowed
Cidrs 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.
- loadbalancer
Id String - The uuid for the load balancer.
- name String
- The name of the load balancer listener.
- operating
Status String - The current operational status of the load balancer.
- pool
Count Double - Number of pools associated with the load balancer.
- protocol String
- Available values is 'HTTP', 'HTTPS', 'TCP', 'UDP'
- protocol
Port Double - The port on which the protocol is bound.
- provisioning
Status String - The current provisioning status of the load balancer.
- timeout
Client DoubleData - The timeout for the frontend client inactivity (in milliseconds).
- timeout
Member DoubleConnect - The timeout for the backend member connection (in milliseconds).
- timeout
Member DoubleData - The timeout for the backend member inactivity (in milliseconds).
- project
Id Double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- allowed
Cidrs string[] - The allowed CIDRs for listener.
- id string
- The ID of this resource.
- l7policies string[]
- Set of l7policy uuids attached to this listener.
- loadbalancer
Id string - The uuid for the load balancer.
- name string
- The name of the load balancer listener.
- operating
Status string - The current operational status of the load balancer.
- pool
Count number - Number of pools associated with the load balancer.
- protocol string
- Available values is 'HTTP', 'HTTPS', 'TCP', 'UDP'
- protocol
Port number - The port on which the protocol is bound.
- provisioning
Status string - The current provisioning status of the load balancer.
- timeout
Client numberData - The timeout for the frontend client inactivity (in milliseconds).
- timeout
Member numberConnect - The timeout for the backend member connection (in milliseconds).
- timeout
Member numberData - The timeout for the backend member inactivity (in milliseconds).
- project
Id number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name 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_ floatdata - The timeout for the frontend client inactivity (in milliseconds).
- timeout_
member_ floatconnect - The timeout for the backend member connection (in milliseconds).
- timeout_
member_ floatdata - 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.
- allowed
Cidrs 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.
- loadbalancer
Id String - The uuid for the load balancer.
- name String
- The name of the load balancer listener.
- operating
Status String - The current operational status of the load balancer.
- pool
Count Number - Number of pools associated with the load balancer.
- protocol String
- Available values is 'HTTP', 'HTTPS', 'TCP', 'UDP'
- protocol
Port Number - The port on which the protocol is bound.
- provisioning
Status String - The current provisioning status of the load balancer.
- timeout
Client NumberData - The timeout for the frontend client inactivity (in milliseconds).
- timeout
Member NumberConnect - The timeout for the backend member connection (in milliseconds).
- timeout
Member NumberData - The timeout for the backend member inactivity (in milliseconds).
- project
Id Number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name 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 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center