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 exampleCloudNetworkRouter = gcore.getCloudNetworkRouter({
projectId: 0,
regionId: 0,
routerId: "router_id",
});
import pulumi
import pulumi_gcore as gcore
example_cloud_network_router = gcore.get_cloud_network_router(project_id=0,
region_id=0,
router_id="router_id")
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.LookupCloudNetworkRouter(ctx, &gcore.LookupCloudNetworkRouterArgs{
ProjectId: pulumi.Float64Ref(0),
RegionId: pulumi.Float64Ref(0),
RouterId: "router_id",
}, 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 exampleCloudNetworkRouter = Gcore.GetCloudNetworkRouter.Invoke(new()
{
ProjectId = 0,
RegionId = 0,
RouterId = "router_id",
});
});
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.GetCloudNetworkRouterArgs;
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 exampleCloudNetworkRouter = GcoreFunctions.getCloudNetworkRouter(GetCloudNetworkRouterArgs.builder()
.projectId(0)
.regionId(0)
.routerId("router_id")
.build());
}
}
variables:
exampleCloudNetworkRouter:
fn::invoke:
function: gcore:getCloudNetworkRouter
arguments:
projectId: 0
regionId: 0
routerId: router_id
Using getCloudNetworkRouter
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 getCloudNetworkRouter(args: GetCloudNetworkRouterArgs, opts?: InvokeOptions): Promise<GetCloudNetworkRouterResult>
function getCloudNetworkRouterOutput(args: GetCloudNetworkRouterOutputArgs, opts?: InvokeOptions): Output<GetCloudNetworkRouterResult>def get_cloud_network_router(project_id: Optional[float] = None,
region_id: Optional[float] = None,
router_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudNetworkRouterResult
def get_cloud_network_router_output(project_id: Optional[pulumi.Input[float]] = None,
region_id: Optional[pulumi.Input[float]] = None,
router_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudNetworkRouterResult]func LookupCloudNetworkRouter(ctx *Context, args *LookupCloudNetworkRouterArgs, opts ...InvokeOption) (*LookupCloudNetworkRouterResult, error)
func LookupCloudNetworkRouterOutput(ctx *Context, args *LookupCloudNetworkRouterOutputArgs, opts ...InvokeOption) LookupCloudNetworkRouterResultOutput> Note: This function is named LookupCloudNetworkRouter in the Go SDK.
public static class GetCloudNetworkRouter
{
public static Task<GetCloudNetworkRouterResult> InvokeAsync(GetCloudNetworkRouterArgs args, InvokeOptions? opts = null)
public static Output<GetCloudNetworkRouterResult> Invoke(GetCloudNetworkRouterInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCloudNetworkRouterResult> getCloudNetworkRouter(GetCloudNetworkRouterArgs args, InvokeOptions options)
public static Output<GetCloudNetworkRouterResult> getCloudNetworkRouter(GetCloudNetworkRouterArgs args, InvokeOptions options)
fn::invoke:
function: gcore:index/getCloudNetworkRouter:getCloudNetworkRouter
arguments:
# arguments dictionaryThe following arguments are supported:
- router_
id str - project_
id float - region_
id float
getCloudNetworkRouter Result
The following output properties are available:
- 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 Router External Gateway Info - State of this router's external gateway.
- Id string
- The ID of this resource.
- Interfaces
List<Get
Cloud Network Router Interface> - List of router interfaces.
- Name string
- Router name
- Region string
- Region name
- Router
Id string - Routes
List<Get
Cloud Network Router Route> - List of custom routes.
- Status string
- Status of the router.
- Updated
At string - Datetime when the router was last updated
- Project
Id double - Region
Id double
- 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 Router External Gateway Info - State of this router's external gateway.
- Id string
- The ID of this resource.
- Interfaces
[]Get
Cloud Network Router Interface - List of router interfaces.
- Name string
- Router name
- Region string
- Region name
- Router
Id string - Routes
[]Get
Cloud Network Router Route - List of custom routes.
- Status string
- Status of the router.
- Updated
At string - Datetime when the router was last updated
- Project
Id float64 - Region
Id float64
- 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 Router External Gateway Info - State of this router's external gateway.
- id String
- The ID of this resource.
- interfaces
List<Get
Cloud Network Router Interface> - List of router interfaces.
- name String
- Router name
- region String
- Region name
- router
Id String - routes
List<Get
Cloud Network Router Route> - List of custom routes.
- status String
- Status of the router.
- updated
At String - Datetime when the router was last updated
- project
Id Double - region
Id Double
- 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 Router External Gateway Info - State of this router's external gateway.
- id string
- The ID of this resource.
- interfaces
Get
Cloud Network Router Interface[] - List of router interfaces.
- name string
- Router name
- region string
- Region name
- router
Id string - routes
Get
Cloud Network Router Route[] - List of custom routes.
- status string
- Status of the router.
- updated
At string - Datetime when the router was last updated
- project
Id number - region
Id number
- 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 Router External Gateway Info - State of this router's external gateway.
- id str
- The ID of this resource.
- interfaces
Sequence[Get
Cloud Network Router Interface] - List of router interfaces.
- name str
- Router name
- region str
- Region name
- router_
id str - routes
Sequence[Get
Cloud Network Router Route] - List of custom routes.
- status str
- Status of the router.
- updated_
at str - Datetime when the router was last updated
- project_
id float - region_
id float
- 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
- The ID of this resource.
- interfaces List<Property Map>
- List of router interfaces.
- name String
- Router name
- region String
- Region name
- router
Id String - routes List<Property Map>
- List of custom routes.
- status String
- Status of the router.
- updated
At String - Datetime when the router was last updated
- project
Id Number - region
Id Number
Supporting Types
GetCloudNetworkRouterExternalGatewayInfo
- Enable
Snat bool - Is SNAT enabled.
- External
Fixed List<GetIps Cloud Network Router 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 Router 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 Router 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 Router 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 Router 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.
GetCloudNetworkRouterExternalGatewayInfoExternalFixedIp
- ip_
address str - IP address
- subnet_
id str - ID of the subnet that allocated the IP
GetCloudNetworkRouterInterface
- Ip
Assignments List<GetCloud Network Router 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 Router 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 Router 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 Router 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 Router 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
GetCloudNetworkRouterInterfaceIpAssignment
- ip_
address str - IP address
- subnet_
id str - ID of the subnet that allocated the IP
GetCloudNetworkRouterRoute
- 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
