Viewing docs for gcore 2.0.0-alpha.4
published on Friday, Apr 17, 2026 by g-core
published on Friday, Apr 17, 2026 by g-core
Viewing docs for gcore 2.0.0-alpha.4
published on Friday, Apr 17, 2026 by g-core
published on Friday, Apr 17, 2026 by g-core
Load balancer listeners handle incoming traffic on specified protocols and ports, forwarding requests to backend pools.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const exampleCloudLoadBalancerListener = gcore.getCloudLoadBalancerListener({
projectId: 1,
regionId: 1,
listenerId: "00000000-0000-4000-8000-000000000000",
showStats: true,
});
import pulumi
import pulumi_gcore as gcore
example_cloud_load_balancer_listener = gcore.get_cloud_load_balancer_listener(project_id=1,
region_id=1,
listener_id="00000000-0000-4000-8000-000000000000",
show_stats=True)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gcore.LookupCloudLoadBalancerListener(ctx, &gcore.LookupCloudLoadBalancerListenerArgs{
ProjectId: pulumi.Float64Ref(1),
RegionId: pulumi.Float64Ref(1),
ListenerId: "00000000-0000-4000-8000-000000000000",
ShowStats: pulumi.BoolRef(true),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var exampleCloudLoadBalancerListener = Gcore.GetCloudLoadBalancerListener.Invoke(new()
{
ProjectId = 1,
RegionId = 1,
ListenerId = "00000000-0000-4000-8000-000000000000",
ShowStats = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.GcoreFunctions;
import com.pulumi.gcore.inputs.GetCloudLoadBalancerListenerArgs;
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 exampleCloudLoadBalancerListener = GcoreFunctions.getCloudLoadBalancerListener(GetCloudLoadBalancerListenerArgs.builder()
.projectId(1)
.regionId(1)
.listenerId("00000000-0000-4000-8000-000000000000")
.showStats(true)
.build());
}
}
variables:
exampleCloudLoadBalancerListener:
fn::invoke:
function: gcore:getCloudLoadBalancerListener
arguments:
projectId: 1
regionId: 1
listenerId: 00000000-0000-4000-8000-000000000000
showStats: true
Using getCloudLoadBalancerListener
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 getCloudLoadBalancerListener(args: GetCloudLoadBalancerListenerArgs, opts?: InvokeOptions): Promise<GetCloudLoadBalancerListenerResult>
function getCloudLoadBalancerListenerOutput(args: GetCloudLoadBalancerListenerOutputArgs, opts?: InvokeOptions): Output<GetCloudLoadBalancerListenerResult>def get_cloud_load_balancer_listener(listener_id: Optional[str] = None,
project_id: Optional[float] = None,
region_id: Optional[float] = None,
show_stats: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudLoadBalancerListenerResult
def get_cloud_load_balancer_listener_output(listener_id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[float]] = None,
region_id: Optional[pulumi.Input[float]] = None,
show_stats: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudLoadBalancerListenerResult]func LookupCloudLoadBalancerListener(ctx *Context, args *LookupCloudLoadBalancerListenerArgs, opts ...InvokeOption) (*LookupCloudLoadBalancerListenerResult, error)
func LookupCloudLoadBalancerListenerOutput(ctx *Context, args *LookupCloudLoadBalancerListenerOutputArgs, opts ...InvokeOption) LookupCloudLoadBalancerListenerResultOutput> Note: This function is named LookupCloudLoadBalancerListener in the Go SDK.
public static class GetCloudLoadBalancerListener
{
public static Task<GetCloudLoadBalancerListenerResult> InvokeAsync(GetCloudLoadBalancerListenerArgs args, InvokeOptions? opts = null)
public static Output<GetCloudLoadBalancerListenerResult> Invoke(GetCloudLoadBalancerListenerInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCloudLoadBalancerListenerResult> getCloudLoadBalancerListener(GetCloudLoadBalancerListenerArgs args, InvokeOptions options)
public static Output<GetCloudLoadBalancerListenerResult> getCloudLoadBalancerListener(GetCloudLoadBalancerListenerArgs args, InvokeOptions options)
fn::invoke:
function: gcore:index/getCloudLoadBalancerListener:getCloudLoadBalancerListener
arguments:
# arguments dictionaryThe following arguments are supported:
- Listener
Id string - Listener ID
- Project
Id double - Project ID
- Region
Id double - Region ID
- Show
Stats bool - Show stats
- Listener
Id string - Listener ID
- Project
Id float64 - Project ID
- Region
Id float64 - Region ID
- Show
Stats bool - Show stats
- listener
Id String - Listener ID
- project
Id Double - Project ID
- region
Id Double - Region ID
- show
Stats Boolean - Show stats
- listener
Id string - Listener ID
- project
Id number - Project ID
- region
Id number - Region ID
- show
Stats boolean - Show stats
- listener_
id str - Listener ID
- project_
id float - Project ID
- region_
id float - Region ID
- show_
stats bool - Show stats
- listener
Id String - Listener ID
- project
Id Number - Project ID
- region
Id Number - Region ID
- show
Stats Boolean - Show stats
getCloudLoadBalancerListener Result
The following output properties are available:
- Admin
State boolUp - Administrative state of the resource. When set to true, the resource is enabled and operational. When set to false, the resource is disabled and will not process traffic. Defaults to true.
- Allowed
Cidrs List<string> - Network CIDRs from which service will be accessible
- Connection
Limit double - Limit of simultaneous connections
- Creator
Task stringId - Task that created this entity
- Id string
- Listener ID
- Insert
Headers Dictionary<string, string> - Dictionary of additional header insertion into HTTP headers. Only used with HTTP and
TERMINATED_HTTPSprotocols. - Listener
Id string - Listener ID
- Load
Balancer stringId - Load balancer ID
- Name string
- Load balancer listener name
- Operating
Status string - Listener operating status Available values: "DEGRADED", "DRAINING", "ERROR", "NO_MONITOR", "OFFLINE", "ONLINE".
- Pool
Count double - Number of pools (for UI)
- Protocol string
- Load balancer protocol Available values: "HTTP", "HTTPS", "PROMETHEUS", "TCP", "TERMINATED_HTTPS", "UDP".
- Protocol
Port double - Protocol port
- Provisioning
Status string - Listener lifecycle status Available values: "ACTIVE", "DELETED", "ERROR", "PENDINGCREATE", "PENDINGDELETE", "PENDING_UPDATE".
- Secret
Id string - ID of the secret where PKCS12 file is stored for
TERMINATED_HTTPSor PROMETHEUS load balancer - Show
Stats bool - Show stats
- Sni
Secret List<string>Ids - List of secret's ID containing PKCS12 format certificate/key bundles for
TERMINATED_HTTPSor PROMETHEUS listeners - Stats
Get
Cloud Load Balancer Listener Stats - Statistics of the load balancer. It is available only in get functions by a flag.
- Timeout
Client doubleData - Frontend client inactivity timeout in milliseconds
- User
Lists List<GetCloud Load Balancer Listener User List> - Load balancer listener users list
- Project
Id double - Project ID
- Region
Id double - Region ID
- Admin
State boolUp - Administrative state of the resource. When set to true, the resource is enabled and operational. When set to false, the resource is disabled and will not process traffic. Defaults to true.
- Allowed
Cidrs []string - Network CIDRs from which service will be accessible
- Connection
Limit float64 - Limit of simultaneous connections
- Creator
Task stringId - Task that created this entity
- Id string
- Listener ID
- Insert
Headers map[string]string - Dictionary of additional header insertion into HTTP headers. Only used with HTTP and
TERMINATED_HTTPSprotocols. - Listener
Id string - Listener ID
- Load
Balancer stringId - Load balancer ID
- Name string
- Load balancer listener name
- Operating
Status string - Listener operating status Available values: "DEGRADED", "DRAINING", "ERROR", "NO_MONITOR", "OFFLINE", "ONLINE".
- Pool
Count float64 - Number of pools (for UI)
- Protocol string
- Load balancer protocol Available values: "HTTP", "HTTPS", "PROMETHEUS", "TCP", "TERMINATED_HTTPS", "UDP".
- Protocol
Port float64 - Protocol port
- Provisioning
Status string - Listener lifecycle status Available values: "ACTIVE", "DELETED", "ERROR", "PENDINGCREATE", "PENDINGDELETE", "PENDING_UPDATE".
- Secret
Id string - ID of the secret where PKCS12 file is stored for
TERMINATED_HTTPSor PROMETHEUS load balancer - Show
Stats bool - Show stats
- Sni
Secret []stringIds - List of secret's ID containing PKCS12 format certificate/key bundles for
TERMINATED_HTTPSor PROMETHEUS listeners - Stats
Get
Cloud Load Balancer Listener Stats - Statistics of the load balancer. It is available only in get functions by a flag.
- Timeout
Client float64Data - Frontend client inactivity timeout in milliseconds
- User
Lists []GetCloud Load Balancer Listener User List - Load balancer listener users list
- Project
Id float64 - Project ID
- Region
Id float64 - Region ID
- admin
State BooleanUp - Administrative state of the resource. When set to true, the resource is enabled and operational. When set to false, the resource is disabled and will not process traffic. Defaults to true.
- allowed
Cidrs List<String> - Network CIDRs from which service will be accessible
- connection
Limit Double - Limit of simultaneous connections
- creator
Task StringId - Task that created this entity
- id String
- Listener ID
- insert
Headers Map<String,String> - Dictionary of additional header insertion into HTTP headers. Only used with HTTP and
TERMINATED_HTTPSprotocols. - listener
Id String - Listener ID
- load
Balancer StringId - Load balancer ID
- name String
- Load balancer listener name
- operating
Status String - Listener operating status Available values: "DEGRADED", "DRAINING", "ERROR", "NO_MONITOR", "OFFLINE", "ONLINE".
- pool
Count Double - Number of pools (for UI)
- protocol String
- Load balancer protocol Available values: "HTTP", "HTTPS", "PROMETHEUS", "TCP", "TERMINATED_HTTPS", "UDP".
- protocol
Port Double - Protocol port
- provisioning
Status String - Listener lifecycle status Available values: "ACTIVE", "DELETED", "ERROR", "PENDINGCREATE", "PENDINGDELETE", "PENDING_UPDATE".
- secret
Id String - ID of the secret where PKCS12 file is stored for
TERMINATED_HTTPSor PROMETHEUS load balancer - show
Stats Boolean - Show stats
- sni
Secret List<String>Ids - List of secret's ID containing PKCS12 format certificate/key bundles for
TERMINATED_HTTPSor PROMETHEUS listeners - stats
Get
Cloud Load Balancer Listener Stats - Statistics of the load balancer. It is available only in get functions by a flag.
- timeout
Client DoubleData - Frontend client inactivity timeout in milliseconds
- user
Lists List<GetCloud Load Balancer Listener User List> - Load balancer listener users list
- project
Id Double - Project ID
- region
Id Double - Region ID
- admin
State booleanUp - Administrative state of the resource. When set to true, the resource is enabled and operational. When set to false, the resource is disabled and will not process traffic. Defaults to true.
- allowed
Cidrs string[] - Network CIDRs from which service will be accessible
- connection
Limit number - Limit of simultaneous connections
- creator
Task stringId - Task that created this entity
- id string
- Listener ID
- insert
Headers {[key: string]: string} - Dictionary of additional header insertion into HTTP headers. Only used with HTTP and
TERMINATED_HTTPSprotocols. - listener
Id string - Listener ID
- load
Balancer stringId - Load balancer ID
- name string
- Load balancer listener name
- operating
Status string - Listener operating status Available values: "DEGRADED", "DRAINING", "ERROR", "NO_MONITOR", "OFFLINE", "ONLINE".
- pool
Count number - Number of pools (for UI)
- protocol string
- Load balancer protocol Available values: "HTTP", "HTTPS", "PROMETHEUS", "TCP", "TERMINATED_HTTPS", "UDP".
- protocol
Port number - Protocol port
- provisioning
Status string - Listener lifecycle status Available values: "ACTIVE", "DELETED", "ERROR", "PENDINGCREATE", "PENDINGDELETE", "PENDING_UPDATE".
- secret
Id string - ID of the secret where PKCS12 file is stored for
TERMINATED_HTTPSor PROMETHEUS load balancer - show
Stats boolean - Show stats
- sni
Secret string[]Ids - List of secret's ID containing PKCS12 format certificate/key bundles for
TERMINATED_HTTPSor PROMETHEUS listeners - stats
Get
Cloud Load Balancer Listener Stats - Statistics of the load balancer. It is available only in get functions by a flag.
- timeout
Client numberData - Frontend client inactivity timeout in milliseconds
- user
Lists GetCloud Load Balancer Listener User List[] - Load balancer listener users list
- project
Id number - Project ID
- region
Id number - Region ID
- admin_
state_ boolup - Administrative state of the resource. When set to true, the resource is enabled and operational. When set to false, the resource is disabled and will not process traffic. Defaults to true.
- allowed_
cidrs Sequence[str] - Network CIDRs from which service will be accessible
- connection_
limit float - Limit of simultaneous connections
- creator_
task_ strid - Task that created this entity
- id str
- Listener ID
- insert_
headers Mapping[str, str] - Dictionary of additional header insertion into HTTP headers. Only used with HTTP and
TERMINATED_HTTPSprotocols. - listener_
id str - Listener ID
- load_
balancer_ strid - Load balancer ID
- name str
- Load balancer listener name
- operating_
status str - Listener operating status Available values: "DEGRADED", "DRAINING", "ERROR", "NO_MONITOR", "OFFLINE", "ONLINE".
- pool_
count float - Number of pools (for UI)
- protocol str
- Load balancer protocol Available values: "HTTP", "HTTPS", "PROMETHEUS", "TCP", "TERMINATED_HTTPS", "UDP".
- protocol_
port float - Protocol port
- provisioning_
status str - Listener lifecycle status Available values: "ACTIVE", "DELETED", "ERROR", "PENDINGCREATE", "PENDINGDELETE", "PENDING_UPDATE".
- secret_
id str - ID of the secret where PKCS12 file is stored for
TERMINATED_HTTPSor PROMETHEUS load balancer - show_
stats bool - Show stats
- sni_
secret_ Sequence[str]ids - List of secret's ID containing PKCS12 format certificate/key bundles for
TERMINATED_HTTPSor PROMETHEUS listeners - stats
Get
Cloud Load Balancer Listener Stats - Statistics of the load balancer. It is available only in get functions by a flag.
- timeout_
client_ floatdata - Frontend client inactivity timeout in milliseconds
- user_
lists Sequence[GetCloud Load Balancer Listener User List] - Load balancer listener users list
- project_
id float - Project ID
- region_
id float - Region ID
- admin
State BooleanUp - Administrative state of the resource. When set to true, the resource is enabled and operational. When set to false, the resource is disabled and will not process traffic. Defaults to true.
- allowed
Cidrs List<String> - Network CIDRs from which service will be accessible
- connection
Limit Number - Limit of simultaneous connections
- creator
Task StringId - Task that created this entity
- id String
- Listener ID
- insert
Headers Map<String> - Dictionary of additional header insertion into HTTP headers. Only used with HTTP and
TERMINATED_HTTPSprotocols. - listener
Id String - Listener ID
- load
Balancer StringId - Load balancer ID
- name String
- Load balancer listener name
- operating
Status String - Listener operating status Available values: "DEGRADED", "DRAINING", "ERROR", "NO_MONITOR", "OFFLINE", "ONLINE".
- pool
Count Number - Number of pools (for UI)
- protocol String
- Load balancer protocol Available values: "HTTP", "HTTPS", "PROMETHEUS", "TCP", "TERMINATED_HTTPS", "UDP".
- protocol
Port Number - Protocol port
- provisioning
Status String - Listener lifecycle status Available values: "ACTIVE", "DELETED", "ERROR", "PENDINGCREATE", "PENDINGDELETE", "PENDING_UPDATE".
- secret
Id String - ID of the secret where PKCS12 file is stored for
TERMINATED_HTTPSor PROMETHEUS load balancer - show
Stats Boolean - Show stats
- sni
Secret List<String>Ids - List of secret's ID containing PKCS12 format certificate/key bundles for
TERMINATED_HTTPSor PROMETHEUS listeners - stats Property Map
- Statistics of the load balancer. It is available only in get functions by a flag.
- timeout
Client NumberData - Frontend client inactivity timeout in milliseconds
- user
Lists List<Property Map> - Load balancer listener users list
- project
Id Number - Project ID
- region
Id Number - Region ID
Supporting Types
GetCloudLoadBalancerListenerStats
- Active
Connections double - Currently active connections
- Bytes
In double - Total bytes received
- Bytes
Out double - Total bytes sent
- Request
Errors double - Total requests that were unable to be fulfilled
- Total
Connections double - Total connections handled
- Active
Connections float64 - Currently active connections
- Bytes
In float64 - Total bytes received
- Bytes
Out float64 - Total bytes sent
- Request
Errors float64 - Total requests that were unable to be fulfilled
- Total
Connections float64 - Total connections handled
- active
Connections Double - Currently active connections
- bytes
In Double - Total bytes received
- bytes
Out Double - Total bytes sent
- request
Errors Double - Total requests that were unable to be fulfilled
- total
Connections Double - Total connections handled
- active
Connections number - Currently active connections
- bytes
In number - Total bytes received
- bytes
Out number - Total bytes sent
- request
Errors number - Total requests that were unable to be fulfilled
- total
Connections number - Total connections handled
- active_
connections float - Currently active connections
- bytes_
in float - Total bytes received
- bytes_
out float - Total bytes sent
- request_
errors float - Total requests that were unable to be fulfilled
- total_
connections float - Total connections handled
- active
Connections Number - Currently active connections
- bytes
In Number - Total bytes received
- bytes
Out Number - Total bytes sent
- request
Errors Number - Total requests that were unable to be fulfilled
- total
Connections Number - Total connections handled
GetCloudLoadBalancerListenerUserList
- Encrypted
Password string - Encrypted password to auth via Basic Authentication
- Username string
- Username to auth via Basic Authentication
- Encrypted
Password string - Encrypted password to auth via Basic Authentication
- Username string
- Username to auth via Basic Authentication
- encrypted
Password String - Encrypted password to auth via Basic Authentication
- username String
- Username to auth via Basic Authentication
- encrypted
Password string - Encrypted password to auth via Basic Authentication
- username string
- Username to auth via Basic Authentication
- encrypted_
password str - Encrypted password to auth via Basic Authentication
- username str
- Username to auth via Basic Authentication
- encrypted
Password String - Encrypted password to auth via Basic Authentication
- username String
- Username to auth via Basic Authentication
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcoreTerraform Provider.
Viewing docs for gcore 2.0.0-alpha.4
published on Friday, Apr 17, 2026 by g-core
published on Friday, Apr 17, 2026 by g-core
