vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs
vkcs.getNetworkingRouter
Explore with Pulumi AI
Use this data source to get the ID of an available VKCS router.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const router = vkcs.getNetworkingRouter({
name: "router-tf-example",
tags: ["tf-example"],
});
import pulumi
import pulumi_vkcs as vkcs
router = vkcs.get_networking_router(name="router-tf-example",
tags=["tf-example"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vkcs.LookupNetworkingRouter(ctx, &vkcs.LookupNetworkingRouterArgs{
Name: pulumi.StringRef("router-tf-example"),
Tags: []string{
"tf-example",
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var router = Vkcs.GetNetworkingRouter.Invoke(new()
{
Name = "router-tf-example",
Tags = new[]
{
"tf-example",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.VkcsFunctions;
import com.pulumi.vkcs.inputs.GetNetworkingRouterArgs;
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 router = VkcsFunctions.getNetworkingRouter(GetNetworkingRouterArgs.builder()
.name("router-tf-example")
.tags("tf-example")
.build());
}
}
variables:
router:
fn::invoke:
function: vkcs:getNetworkingRouter
arguments:
name: router-tf-example
tags:
- tf-example
Using getNetworkingRouter
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 getNetworkingRouter(args: GetNetworkingRouterArgs, opts?: InvokeOptions): Promise<GetNetworkingRouterResult>
function getNetworkingRouterOutput(args: GetNetworkingRouterOutputArgs, opts?: InvokeOptions): Output<GetNetworkingRouterResult>
def get_networking_router(admin_state_up: Optional[bool] = None,
description: Optional[str] = None,
enable_snat: Optional[bool] = None,
id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
router_id: Optional[str] = None,
sdn: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
tenant_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkingRouterResult
def get_networking_router_output(admin_state_up: Optional[pulumi.Input[bool]] = None,
description: Optional[pulumi.Input[str]] = None,
enable_snat: Optional[pulumi.Input[bool]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
router_id: Optional[pulumi.Input[str]] = None,
sdn: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
tenant_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkingRouterResult]
func LookupNetworkingRouter(ctx *Context, args *LookupNetworkingRouterArgs, opts ...InvokeOption) (*LookupNetworkingRouterResult, error)
func LookupNetworkingRouterOutput(ctx *Context, args *LookupNetworkingRouterOutputArgs, opts ...InvokeOption) LookupNetworkingRouterResultOutput
> Note: This function is named LookupNetworkingRouter
in the Go SDK.
public static class GetNetworkingRouter
{
public static Task<GetNetworkingRouterResult> InvokeAsync(GetNetworkingRouterArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkingRouterResult> Invoke(GetNetworkingRouterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNetworkingRouterResult> getNetworkingRouter(GetNetworkingRouterArgs args, InvokeOptions options)
public static Output<GetNetworkingRouterResult> getNetworkingRouter(GetNetworkingRouterArgs args, InvokeOptions options)
fn::invoke:
function: vkcs:index/getNetworkingRouter:getNetworkingRouter
arguments:
# arguments dictionary
The following arguments are supported:
- Admin
State boolUp - optional boolean → Administrative up/down status for the router (must be "true" or "false" if provided).
- Description string
- optional string → Human-readable description of the router.
- Enable
Snat bool - optional boolean → The value that points out if the Source NAT is enabled on the router.
- Id string
- optional string → The UUID of the router resource.
- Name string
- optional string → The name of the router.
- Region string
- optional string → The region in which to obtain the Network client. A Network client is needed to retrieve router ids. If omitted, the
region
argument of the provider is used. - Router
Id string - optional deprecated string → The UUID of the router resource. Deprecated This argument is deprecated, please, use the
id
attribute instead. - Sdn string
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- Status string
- optional string → The status of the router (ACTIVE/DOWN).
- List<string>
- optional set of string → The list of router tags to filter.
- Tenant
Id string - optional string → The owner of the router.
- Admin
State boolUp - optional boolean → Administrative up/down status for the router (must be "true" or "false" if provided).
- Description string
- optional string → Human-readable description of the router.
- Enable
Snat bool - optional boolean → The value that points out if the Source NAT is enabled on the router.
- Id string
- optional string → The UUID of the router resource.
- Name string
- optional string → The name of the router.
- Region string
- optional string → The region in which to obtain the Network client. A Network client is needed to retrieve router ids. If omitted, the
region
argument of the provider is used. - Router
Id string - optional deprecated string → The UUID of the router resource. Deprecated This argument is deprecated, please, use the
id
attribute instead. - Sdn string
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- Status string
- optional string → The status of the router (ACTIVE/DOWN).
- []string
- optional set of string → The list of router tags to filter.
- Tenant
Id string - optional string → The owner of the router.
- admin
State BooleanUp - optional boolean → Administrative up/down status for the router (must be "true" or "false" if provided).
- description String
- optional string → Human-readable description of the router.
- enable
Snat Boolean - optional boolean → The value that points out if the Source NAT is enabled on the router.
- id String
- optional string → The UUID of the router resource.
- name String
- optional string → The name of the router.
- region String
- optional string → The region in which to obtain the Network client. A Network client is needed to retrieve router ids. If omitted, the
region
argument of the provider is used. - router
Id String - optional deprecated string → The UUID of the router resource. Deprecated This argument is deprecated, please, use the
id
attribute instead. - sdn String
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- status String
- optional string → The status of the router (ACTIVE/DOWN).
- List<String>
- optional set of string → The list of router tags to filter.
- tenant
Id String - optional string → The owner of the router.
- admin
State booleanUp - optional boolean → Administrative up/down status for the router (must be "true" or "false" if provided).
- description string
- optional string → Human-readable description of the router.
- enable
Snat boolean - optional boolean → The value that points out if the Source NAT is enabled on the router.
- id string
- optional string → The UUID of the router resource.
- name string
- optional string → The name of the router.
- region string
- optional string → The region in which to obtain the Network client. A Network client is needed to retrieve router ids. If omitted, the
region
argument of the provider is used. - router
Id string - optional deprecated string → The UUID of the router resource. Deprecated This argument is deprecated, please, use the
id
attribute instead. - sdn string
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- status string
- optional string → The status of the router (ACTIVE/DOWN).
- string[]
- optional set of string → The list of router tags to filter.
- tenant
Id string - optional string → The owner of the router.
- admin_
state_ boolup - optional boolean → Administrative up/down status for the router (must be "true" or "false" if provided).
- description str
- optional string → Human-readable description of the router.
- enable_
snat bool - optional boolean → The value that points out if the Source NAT is enabled on the router.
- id str
- optional string → The UUID of the router resource.
- name str
- optional string → The name of the router.
- region str
- optional string → The region in which to obtain the Network client. A Network client is needed to retrieve router ids. If omitted, the
region
argument of the provider is used. - router_
id str - optional deprecated string → The UUID of the router resource. Deprecated This argument is deprecated, please, use the
id
attribute instead. - sdn str
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- status str
- optional string → The status of the router (ACTIVE/DOWN).
- Sequence[str]
- optional set of string → The list of router tags to filter.
- tenant_
id str - optional string → The owner of the router.
- admin
State BooleanUp - optional boolean → Administrative up/down status for the router (must be "true" or "false" if provided).
- description String
- optional string → Human-readable description of the router.
- enable
Snat Boolean - optional boolean → The value that points out if the Source NAT is enabled on the router.
- id String
- optional string → The UUID of the router resource.
- name String
- optional string → The name of the router.
- region String
- optional string → The region in which to obtain the Network client. A Network client is needed to retrieve router ids. If omitted, the
region
argument of the provider is used. - router
Id String - optional deprecated string → The UUID of the router resource. Deprecated This argument is deprecated, please, use the
id
attribute instead. - sdn String
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- status String
- optional string → The status of the router (ACTIVE/DOWN).
- List<String>
- optional set of string → The list of router tags to filter.
- tenant
Id String - optional string → The owner of the router.
getNetworkingRouter Result
The following output properties are available:
- List<string>
- set of string → The set of string tags applied on the router.
- Enable
Snat bool - External
Fixed List<GetIps Networking Router External Fixed Ip> - object → List of external gateways of the router.New since v0.7.4.
- External
Network stringId - string → The network UUID of an external gateway for the router.
- Id string
- Router
Id string - Admin
State boolUp - Description string
- Name string
- Region string
- Sdn string
- Status string
- List<string>
- Tenant
Id string
- []string
- set of string → The set of string tags applied on the router.
- Enable
Snat bool - External
Fixed []GetIps Networking Router External Fixed Ip - object → List of external gateways of the router.New since v0.7.4.
- External
Network stringId - string → The network UUID of an external gateway for the router.
- Id string
- Router
Id string - Admin
State boolUp - Description string
- Name string
- Region string
- Sdn string
- Status string
- []string
- Tenant
Id string
- List<String>
- set of string → The set of string tags applied on the router.
- enable
Snat Boolean - external
Fixed List<GetIps Networking Router External Fixed Ip> - object → List of external gateways of the router.New since v0.7.4.
- external
Network StringId - string → The network UUID of an external gateway for the router.
- id String
- router
Id String - admin
State BooleanUp - description String
- name String
- region String
- sdn String
- status String
- List<String>
- tenant
Id String
- string[]
- set of string → The set of string tags applied on the router.
- enable
Snat boolean - external
Fixed GetIps Networking Router External Fixed Ip[] - object → List of external gateways of the router.New since v0.7.4.
- external
Network stringId - string → The network UUID of an external gateway for the router.
- id string
- router
Id string - admin
State booleanUp - description string
- name string
- region string
- sdn string
- status string
- string[]
- tenant
Id string
- Sequence[str]
- set of string → The set of string tags applied on the router.
- enable_
snat bool - external_
fixed_ Sequence[Getips Networking Router External Fixed Ip] - object → List of external gateways of the router.New since v0.7.4.
- external_
network_ strid - string → The network UUID of an external gateway for the router.
- id str
- router_
id str - admin_
state_ boolup - description str
- name str
- region str
- sdn str
- status str
- Sequence[str]
- tenant_
id str
- List<String>
- set of string → The set of string tags applied on the router.
- enable
Snat Boolean - external
Fixed List<Property Map>Ips - object → List of external gateways of the router.New since v0.7.4.
- external
Network StringId - string → The network UUID of an external gateway for the router.
- id String
- router
Id String - admin
State BooleanUp - description String
- name String
- region String
- sdn String
- status String
- List<String>
- tenant
Id String
Supporting Types
GetNetworkingRouterExternalFixedIp
- ip_
address str - subnet_
id str
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcs
Terraform Provider.