gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core
gcorelabs.getRouter
Explore with Pulumi AI
Example Usage
Using getRouter
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 getRouter(args: GetRouterArgs, opts?: InvokeOptions): Promise<GetRouterResult>
function getRouterOutput(args: GetRouterOutputArgs, opts?: InvokeOptions): Output<GetRouterResult>
def get_router(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) -> GetRouterResult
def get_router_output(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[GetRouterResult]
func LookupRouter(ctx *Context, args *LookupRouterArgs, opts ...InvokeOption) (*LookupRouterResult, error)
func LookupRouterOutput(ctx *Context, args *LookupRouterOutputArgs, opts ...InvokeOption) LookupRouterResultOutput
> Note: This function is named LookupRouter
in the Go SDK.
public static class GetRouter
{
public static Task<GetRouterResult> InvokeAsync(GetRouterArgs args, InvokeOptions? opts = null)
public static Output<GetRouterResult> Invoke(GetRouterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRouterResult> getRouter(GetRouterArgs args, InvokeOptions options)
public static Output<GetRouterResult> getRouter(GetRouterArgs args, InvokeOptions options)
fn::invoke:
function: gcorelabs:index/getRouter:getRouter
arguments:
# arguments dictionary
The following arguments are supported:
- Name
This property is required. string - Id string
- The ID of this resource.
- Project
Id double - Project
Name string - Region
Id double - Region
Name string
- Name
This property is required. string - Id string
- The ID of this resource.
- Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string
- name
This property is required. String - id String
- The ID of this resource.
- project
Id Double - project
Name String - region
Id Double - region
Name String
- name
This property is required. string - id string
- The ID of this resource.
- project
Id number - project
Name string - region
Id number - region
Name string
- name
This property is required. str - id str
- The ID of this resource.
- project_
id float - project_
name str - region_
id float - region_
name str
- name
This property is required. String - id String
- The ID of this resource.
- project
Id Number - project
Name String - region
Id Number - region
Name String
getRouter Result
The following output properties are available:
- External
Gateway List<GetInfos Router External Gateway Info> - Id string
- The ID of this resource.
- Interfaces
List<Get
Router Interface> - Name string
- Routes
List<Get
Router Route> - Status string
- Project
Id double - Project
Name string - Region
Id double - Region
Name string
- External
Gateway []GetInfos Router External Gateway Info - Id string
- The ID of this resource.
- Interfaces
[]Get
Router Interface - Name string
- Routes
[]Get
Router Route - Status string
- Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string
- external
Gateway List<GetInfos Router External Gateway Info> - id String
- The ID of this resource.
- interfaces
List<Get
Router Interface> - name String
- routes
List<Get
Router Route> - status String
- project
Id Double - project
Name String - region
Id Double - region
Name String
- external
Gateway GetInfos Router External Gateway Info[] - id string
- The ID of this resource.
- interfaces
Get
Router Interface[] - name string
- routes
Get
Router Route[] - status string
- project
Id number - project
Name string - region
Id number - region
Name string
- external_
gateway_ Sequence[Getinfos Router External Gateway Info] - id str
- The ID of this resource.
- interfaces
Sequence[Get
Router Interface] - name str
- routes
Sequence[Get
Router Route] - status str
- project_
id float - project_
name str - region_
id float - region_
name str
- external
Gateway List<Property Map>Infos - id String
- The ID of this resource.
- interfaces List<Property Map>
- name String
- routes List<Property Map>
- status String
- project
Id Number - project
Name String - region
Id Number - region
Name String
Supporting Types
GetRouterExternalGatewayInfo
- Enable
Snat This property is required. bool - External
Fixed Ips This property is required. List<GetRouter External Gateway Info External Fixed Ip> - Network
Id This property is required. string
- Enable
Snat This property is required. bool - External
Fixed Ips This property is required. []GetRouter External Gateway Info External Fixed Ip - Network
Id This property is required. string
- enable
Snat This property is required. Boolean - external
Fixed Ips This property is required. List<GetRouter External Gateway Info External Fixed Ip> - network
Id This property is required. String
- enable
Snat This property is required. boolean - external
Fixed Ips This property is required. GetRouter External Gateway Info External Fixed Ip[] - network
Id This property is required. string
- enable_
snat This property is required. bool - external_
fixed_ ips This property is required. Sequence[GetRouter External Gateway Info External Fixed Ip] - network_
id This property is required. str
- enable
Snat This property is required. Boolean - external
Fixed Ips This property is required. List<Property Map> - network
Id This property is required. String
GetRouterExternalGatewayInfoExternalFixedIp
- ip_
address This property is required. str - subnet_
id This property is required. str
GetRouterInterface
- ip_
address This property is required. str - mac_
address This property is required. str - network_
id This property is required. str - port_
id This property is required. str - subnet_
id This property is required. str - type
This property is required. str
GetRouterRoute
- Destination
This property is required. string - Nexthop
This property is required. string
- Destination
This property is required. string - Nexthop
This property is required. string
- destination
This property is required. String - nexthop
This property is required. String
- destination
This property is required. string - nexthop
This property is required. string
- destination
This property is required. str - nexthop
This property is required. str
- destination
This property is required. String - nexthop
This property is required. String
Package Details
- Repository
- gcorelabs g-core/terraform-provider-gcorelabs
- License
- Notes
- This Pulumi package is based on the
gcorelabs
Terraform Provider.