Viewing docs for gcore 2.0.0-alpha.3
published on Monday, Mar 30, 2026 by g-core
published on Monday, Mar 30, 2026 by g-core
Viewing docs for gcore 2.0.0-alpha.3
published on Monday, Mar 30, 2026 by g-core
published on Monday, Mar 30, 2026 by g-core
Routers interconnect subnets and manage network routing, including external gateway connectivity and static routes.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const exampleCloudNetworkRouters = gcore.getCloudNetworkRouters({
projectId: 0,
regionId: 0,
});
import pulumi
import pulumi_gcore as gcore
example_cloud_network_routers = gcore.get_cloud_network_routers(project_id=0,
region_id=0)
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.GetCloudNetworkRouters(ctx, &gcore.GetCloudNetworkRoutersArgs{
ProjectId: pulumi.Float64Ref(0),
RegionId: pulumi.Float64Ref(0),
}, 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 exampleCloudNetworkRouters = Gcore.GetCloudNetworkRouters.Invoke(new()
{
ProjectId = 0,
RegionId = 0,
});
});
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.GetCloudNetworkRoutersArgs;
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 exampleCloudNetworkRouters = GcoreFunctions.getCloudNetworkRouters(GetCloudNetworkRoutersArgs.builder()
.projectId(0)
.regionId(0)
.build());
}
}
variables:
exampleCloudNetworkRouters:
fn::invoke:
function: gcore:getCloudNetworkRouters
arguments:
projectId: 0
regionId: 0
Using getCloudNetworkRouters
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 getCloudNetworkRouters(args: GetCloudNetworkRoutersArgs, opts?: InvokeOptions): Promise<GetCloudNetworkRoutersResult>
function getCloudNetworkRoutersOutput(args: GetCloudNetworkRoutersOutputArgs, opts?: InvokeOptions): Output<GetCloudNetworkRoutersResult>def get_cloud_network_routers(max_items: Optional[float] = None,
project_id: Optional[float] = None,
region_id: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudNetworkRoutersResult
def get_cloud_network_routers_output(max_items: Optional[pulumi.Input[float]] = None,
project_id: Optional[pulumi.Input[float]] = None,
region_id: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudNetworkRoutersResult]func GetCloudNetworkRouters(ctx *Context, args *GetCloudNetworkRoutersArgs, opts ...InvokeOption) (*GetCloudNetworkRoutersResult, error)
func GetCloudNetworkRoutersOutput(ctx *Context, args *GetCloudNetworkRoutersOutputArgs, opts ...InvokeOption) GetCloudNetworkRoutersResultOutput> Note: This function is named GetCloudNetworkRouters in the Go SDK.
public static class GetCloudNetworkRouters
{
public static Task<GetCloudNetworkRoutersResult> InvokeAsync(GetCloudNetworkRoutersArgs args, InvokeOptions? opts = null)
public static Output<GetCloudNetworkRoutersResult> Invoke(GetCloudNetworkRoutersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCloudNetworkRoutersResult> getCloudNetworkRouters(GetCloudNetworkRoutersArgs args, InvokeOptions options)
public static Output<GetCloudNetworkRoutersResult> getCloudNetworkRouters(GetCloudNetworkRoutersArgs args, InvokeOptions options)
fn::invoke:
function: gcore:index/getCloudNetworkRouters:getCloudNetworkRouters
arguments:
# arguments dictionaryThe following arguments are supported:
- max_
items float - Max items to fetch, default: 1000
- project_
id float - region_
id float
getCloudNetworkRouters Result
The following output properties are available:
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[Get
Cloud Network Routers Item] - The items returned by the data source
- max_
items float - Max items to fetch, default: 1000
- project_
id float - region_
id float
Supporting Types
GetCloudNetworkRoutersItem
- Created
At string - Datetime when the router was created
- Creator
Task stringId - Task that created this entity
- Distributed bool
- Whether the router is distributed or centralized.
- External
Gateway GetInfo Cloud Network Routers Item External Gateway Info - State of this router's external gateway.
- Id string
- Router ID
- Interfaces
List<Get
Cloud Network Routers Item Interface> - List of router interfaces.
- Name string
- Router name
- Project
Id double - Project ID
- Region string
- Region name
- Region
Id double - Region ID
- Routes
List<Get
Cloud Network Routers Item Route> - List of custom routes.
- Status string
- Status of the router.
- Updated
At string - Datetime when the router was last updated
- Created
At string - Datetime when the router was created
- Creator
Task stringId - Task that created this entity
- Distributed bool
- Whether the router is distributed or centralized.
- External
Gateway GetInfo Cloud Network Routers Item External Gateway Info - State of this router's external gateway.
- Id string
- Router ID
- Interfaces
[]Get
Cloud Network Routers Item Interface - List of router interfaces.
- Name string
- Router name
- Project
Id float64 - Project ID
- Region string
- Region name
- Region
Id float64 - Region ID
- Routes
[]Get
Cloud Network Routers Item Route - List of custom routes.
- Status string
- Status of the router.
- Updated
At string - Datetime when the router was last updated
- created
At String - Datetime when the router was created
- creator
Task StringId - Task that created this entity
- distributed Boolean
- Whether the router is distributed or centralized.
- external
Gateway GetInfo Cloud Network Routers Item External Gateway Info - State of this router's external gateway.
- id String
- Router ID
- interfaces
List<Get
Cloud Network Routers Item Interface> - List of router interfaces.
- name String
- Router name
- project
Id Double - Project ID
- region String
- Region name
- region
Id Double - Region ID
- routes
List<Get
Cloud Network Routers Item Route> - List of custom routes.
- status String
- Status of the router.
- updated
At String - Datetime when the router was last updated
- created
At string - Datetime when the router was created
- creator
Task stringId - Task that created this entity
- distributed boolean
- Whether the router is distributed or centralized.
- external
Gateway GetInfo Cloud Network Routers Item External Gateway Info - State of this router's external gateway.
- id string
- Router ID
- interfaces
Get
Cloud Network Routers Item Interface[] - List of router interfaces.
- name string
- Router name
- project
Id number - Project ID
- region string
- Region name
- region
Id number - Region ID
- routes
Get
Cloud Network Routers Item Route[] - List of custom routes.
- status string
- Status of the router.
- updated
At string - Datetime when the router was last updated
- created_
at str - Datetime when the router was created
- creator_
task_ strid - Task that created this entity
- distributed bool
- Whether the router is distributed or centralized.
- external_
gateway_ Getinfo Cloud Network Routers Item External Gateway Info - State of this router's external gateway.
- id str
- Router ID
- interfaces
Sequence[Get
Cloud Network Routers Item Interface] - List of router interfaces.
- name str
- Router name
- project_
id float - Project ID
- region str
- Region name
- region_
id float - Region ID
- routes
Sequence[Get
Cloud Network Routers Item Route] - List of custom routes.
- status str
- Status of the router.
- updated_
at str - Datetime when the router was last updated
- created
At String - Datetime when the router was created
- creator
Task StringId - Task that created this entity
- distributed Boolean
- Whether the router is distributed or centralized.
- external
Gateway Property MapInfo - State of this router's external gateway.
- id String
- Router ID
- interfaces List<Property Map>
- List of router interfaces.
- name String
- Router name
- project
Id Number - Project ID
- region String
- Region name
- region
Id Number - Region ID
- routes List<Property Map>
- List of custom routes.
- status String
- Status of the router.
- updated
At String - Datetime when the router was last updated
GetCloudNetworkRoutersItemExternalGatewayInfo
- Enable
Snat bool - Is SNAT enabled.
- External
Fixed List<GetIps Cloud Network Routers Item External Gateway Info External Fixed Ip> - List of external IPs that emit SNAT-ed traffic.
- Network
Id string - Id of the external network.
- Enable
Snat bool - Is SNAT enabled.
- External
Fixed []GetIps Cloud Network Routers Item External Gateway Info External Fixed Ip - List of external IPs that emit SNAT-ed traffic.
- Network
Id string - Id of the external network.
- enable
Snat Boolean - Is SNAT enabled.
- external
Fixed List<GetIps Cloud Network Routers Item External Gateway Info External Fixed Ip> - List of external IPs that emit SNAT-ed traffic.
- network
Id String - Id of the external network.
- enable
Snat boolean - Is SNAT enabled.
- external
Fixed GetIps Cloud Network Routers Item External Gateway Info External Fixed Ip[] - List of external IPs that emit SNAT-ed traffic.
- network
Id string - Id of the external network.
- enable_
snat bool - Is SNAT enabled.
- external_
fixed_ Sequence[Getips Cloud Network Routers Item External Gateway Info External Fixed Ip] - List of external IPs that emit SNAT-ed traffic.
- network_
id str - Id of the external network.
- enable
Snat Boolean - Is SNAT enabled.
- external
Fixed List<Property Map>Ips - List of external IPs that emit SNAT-ed traffic.
- network
Id String - Id of the external network.
GetCloudNetworkRoutersItemExternalGatewayInfoExternalFixedIp
- ip_
address str - IP address
- subnet_
id str - ID of the subnet that allocated the IP
GetCloudNetworkRoutersItemInterface
- Ip
Assignments List<GetCloud Network Routers Item Interface Ip Assignment> - IP addresses assigned to this port
- Mac
Address string - MAC address of the virtual port
- Network
Id string - ID of the network the port is attached to
- Port
Id string - ID of virtual ethernet port object
- Ip
Assignments []GetCloud Network Routers Item Interface Ip Assignment - IP addresses assigned to this port
- Mac
Address string - MAC address of the virtual port
- Network
Id string - ID of the network the port is attached to
- Port
Id string - ID of virtual ethernet port object
- ip
Assignments List<GetCloud Network Routers Item Interface Ip Assignment> - IP addresses assigned to this port
- mac
Address String - MAC address of the virtual port
- network
Id String - ID of the network the port is attached to
- port
Id String - ID of virtual ethernet port object
- ip
Assignments GetCloud Network Routers Item Interface Ip Assignment[] - IP addresses assigned to this port
- mac
Address string - MAC address of the virtual port
- network
Id string - ID of the network the port is attached to
- port
Id string - ID of virtual ethernet port object
- ip_
assignments Sequence[GetCloud Network Routers Item Interface Ip Assignment] - IP addresses assigned to this port
- mac_
address str - MAC address of the virtual port
- network_
id str - ID of the network the port is attached to
- port_
id str - ID of virtual ethernet port object
- ip
Assignments List<Property Map> - IP addresses assigned to this port
- mac
Address String - MAC address of the virtual port
- network
Id String - ID of the network the port is attached to
- port
Id String - ID of virtual ethernet port object
GetCloudNetworkRoutersItemInterfaceIpAssignment
- ip_
address str - IP address
- subnet_
id str - ID of the subnet that allocated the IP
GetCloudNetworkRoutersItemRoute
- Destination string
- CIDR of destination IPv4 or IPv6 subnet.
- Nexthop string
- IPv4 or IPv6 address to forward traffic to if it's destination IP matches 'destination' CIDR.
- Destination string
- CIDR of destination IPv4 or IPv6 subnet.
- Nexthop string
- IPv4 or IPv6 address to forward traffic to if it's destination IP matches 'destination' CIDR.
- destination String
- CIDR of destination IPv4 or IPv6 subnet.
- nexthop String
- IPv4 or IPv6 address to forward traffic to if it's destination IP matches 'destination' CIDR.
- destination string
- CIDR of destination IPv4 or IPv6 subnet.
- nexthop string
- IPv4 or IPv6 address to forward traffic to if it's destination IP matches 'destination' CIDR.
- destination str
- CIDR of destination IPv4 or IPv6 subnet.
- nexthop str
- IPv4 or IPv6 address to forward traffic to if it's destination IP matches 'destination' CIDR.
- destination String
- CIDR of destination IPv4 or IPv6 subnet.
- nexthop String
- IPv4 or IPv6 address to forward traffic to if it's destination IP matches 'destination' CIDR.
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.3
published on Monday, Mar 30, 2026 by g-core
published on Monday, Mar 30, 2026 by g-core
