Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs
iosxe.getVrf
Explore with Pulumi AI
This data source can read the VRF configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Iosxe = Pulumi.Iosxe;
return await Deployment.RunAsync(() =>
{
var example = Iosxe.GetVrf.Invoke(new()
{
Name = "VRF22",
});
});
package main
import (
"github.com/lbrlabs/pulumi-iosxe/sdk/go/iosxe"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iosxe.LookupVrf(ctx, &iosxe.LookupVrfArgs{
Name: "VRF22",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.iosxe.IosxeFunctions;
import com.pulumi.iosxe.inputs.GetVrfArgs;
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 example = IosxeFunctions.getVrf(GetVrfArgs.builder()
.name("VRF22")
.build());
}
}
import pulumi
import pulumi_iosxe as iosxe
example = iosxe.get_vrf(name="VRF22")
import * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@pulumi/iosxe";
const example = iosxe.getVrf({
name: "VRF22",
});
variables:
example:
fn::invoke:
Function: iosxe:getVrf
Arguments:
name: VRF22
Using getVrf
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 getVrf(args: GetVrfArgs, opts?: InvokeOptions): Promise<GetVrfResult>
function getVrfOutput(args: GetVrfOutputArgs, opts?: InvokeOptions): Output<GetVrfResult>
def get_vrf(device: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVrfResult
def get_vrf_output(device: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVrfResult]
func LookupVrf(ctx *Context, args *LookupVrfArgs, opts ...InvokeOption) (*LookupVrfResult, error)
func LookupVrfOutput(ctx *Context, args *LookupVrfOutputArgs, opts ...InvokeOption) LookupVrfResultOutput
> Note: This function is named LookupVrf
in the Go SDK.
public static class GetVrf
{
public static Task<GetVrfResult> InvokeAsync(GetVrfArgs args, InvokeOptions? opts = null)
public static Output<GetVrfResult> Invoke(GetVrfInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVrfResult> getVrf(GetVrfArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: iosxe:index/getVrf:getVrf
arguments:
# arguments dictionary
The following arguments are supported:
getVrf Result
The following output properties are available:
- Address
Family boolIpv4 - Address family
- Address
Family boolIpv6 - Address family
- Description string
- VRF specific description
- Id string
- The path of the retrieved object.
- Ipv4Route
Target List<Lbrlabs.Export Stitchings Pulumi Package. Iosxe. Outputs. Get Vrf Ipv4Route Target Export Stitching> - Export Target-VPN community
- Ipv4Route
Target List<Lbrlabs.Exports Pulumi Package. Iosxe. Outputs. Get Vrf Ipv4Route Target Export> - Export Target-VPN community
- Ipv4Route
Target List<Lbrlabs.Import Stitchings Pulumi Package. Iosxe. Outputs. Get Vrf Ipv4Route Target Import Stitching> - Import Target-VPN community
- Ipv4Route
Target List<Lbrlabs.Imports Pulumi Package. Iosxe. Outputs. Get Vrf Ipv4Route Target Import> - Import Target-VPN community
- Ipv6Route
Target List<Lbrlabs.Export Stitchings Pulumi Package. Iosxe. Outputs. Get Vrf Ipv6Route Target Export Stitching> - Export Target-VPN community
- Ipv6Route
Target List<Lbrlabs.Exports Pulumi Package. Iosxe. Outputs. Get Vrf Ipv6Route Target Export> - Export Target-VPN community
- Ipv6Route
Target List<Lbrlabs.Import Stitchings Pulumi Package. Iosxe. Outputs. Get Vrf Ipv6Route Target Import Stitching> - Import Target-VPN community
- Ipv6Route
Target List<Lbrlabs.Imports Pulumi Package. Iosxe. Outputs. Get Vrf Ipv6Route Target Import> - Import Target-VPN community
- Name string
- WORD;;VRF name
- Rd string
- Specify Route Distinguisher
- Route
Target List<Lbrlabs.Exports Pulumi Package. Iosxe. Outputs. Get Vrf Route Target Export> - Export Target-VPN community
- Route
Target List<Lbrlabs.Imports Pulumi Package. Iosxe. Outputs. Get Vrf Route Target Import> - Import Target-VPN community
- Vpn
Id string - Configure VPN ID in rfc2685 format
- Device string
- A device name from the provider configuration.
- Address
Family boolIpv4 - Address family
- Address
Family boolIpv6 - Address family
- Description string
- VRF specific description
- Id string
- The path of the retrieved object.
- Ipv4Route
Target []GetExport Stitchings Vrf Ipv4Route Target Export Stitching - Export Target-VPN community
- Ipv4Route
Target []GetExports Vrf Ipv4Route Target Export - Export Target-VPN community
- Ipv4Route
Target []GetImport Stitchings Vrf Ipv4Route Target Import Stitching - Import Target-VPN community
- Ipv4Route
Target []GetImports Vrf Ipv4Route Target Import - Import Target-VPN community
- Ipv6Route
Target []GetExport Stitchings Vrf Ipv6Route Target Export Stitching - Export Target-VPN community
- Ipv6Route
Target []GetExports Vrf Ipv6Route Target Export - Export Target-VPN community
- Ipv6Route
Target []GetImport Stitchings Vrf Ipv6Route Target Import Stitching - Import Target-VPN community
- Ipv6Route
Target []GetImports Vrf Ipv6Route Target Import - Import Target-VPN community
- Name string
- WORD;;VRF name
- Rd string
- Specify Route Distinguisher
- Route
Target []GetExports Vrf Route Target Export - Export Target-VPN community
- Route
Target []GetImports Vrf Route Target Import - Import Target-VPN community
- Vpn
Id string - Configure VPN ID in rfc2685 format
- Device string
- A device name from the provider configuration.
- address
Family BooleanIpv4 - Address family
- address
Family BooleanIpv6 - Address family
- description String
- VRF specific description
- id String
- The path of the retrieved object.
- ipv4Route
Target List<GetExport Stitchings Vrf Ipv4Route Target Export Stitching> - Export Target-VPN community
- ipv4Route
Target List<GetExports Vrf Ipv4Route Target Export> - Export Target-VPN community
- ipv4Route
Target List<GetImport Stitchings Vrf Ipv4Route Target Import Stitching> - Import Target-VPN community
- ipv4Route
Target List<GetImports Vrf Ipv4Route Target Import> - Import Target-VPN community
- ipv6Route
Target List<GetExport Stitchings Vrf Ipv6Route Target Export Stitching> - Export Target-VPN community
- ipv6Route
Target List<GetExports Vrf Ipv6Route Target Export> - Export Target-VPN community
- ipv6Route
Target List<GetImport Stitchings Vrf Ipv6Route Target Import Stitching> - Import Target-VPN community
- ipv6Route
Target List<GetImports Vrf Ipv6Route Target Import> - Import Target-VPN community
- name String
- WORD;;VRF name
- rd String
- Specify Route Distinguisher
- route
Target List<GetExports Vrf Route Target Export> - Export Target-VPN community
- route
Target List<GetImports Vrf Route Target Import> - Import Target-VPN community
- vpn
Id String - Configure VPN ID in rfc2685 format
- device String
- A device name from the provider configuration.
- address
Family booleanIpv4 - Address family
- address
Family booleanIpv6 - Address family
- description string
- VRF specific description
- id string
- The path of the retrieved object.
- ipv4Route
Target GetExport Stitchings Vrf Ipv4Route Target Export Stitching[] - Export Target-VPN community
- ipv4Route
Target GetExports Vrf Ipv4Route Target Export[] - Export Target-VPN community
- ipv4Route
Target GetImport Stitchings Vrf Ipv4Route Target Import Stitching[] - Import Target-VPN community
- ipv4Route
Target GetImports Vrf Ipv4Route Target Import[] - Import Target-VPN community
- ipv6Route
Target GetExport Stitchings Vrf Ipv6Route Target Export Stitching[] - Export Target-VPN community
- ipv6Route
Target GetExports Vrf Ipv6Route Target Export[] - Export Target-VPN community
- ipv6Route
Target GetImport Stitchings Vrf Ipv6Route Target Import Stitching[] - Import Target-VPN community
- ipv6Route
Target GetImports Vrf Ipv6Route Target Import[] - Import Target-VPN community
- name string
- WORD;;VRF name
- rd string
- Specify Route Distinguisher
- route
Target GetExports Vrf Route Target Export[] - Export Target-VPN community
- route
Target GetImports Vrf Route Target Import[] - Import Target-VPN community
- vpn
Id string - Configure VPN ID in rfc2685 format
- device string
- A device name from the provider configuration.
- address_
family_ boolipv4 - Address family
- address_
family_ boolipv6 - Address family
- description str
- VRF specific description
- id str
- The path of the retrieved object.
- ipv4_
route_ Sequence[Gettarget_ export_ stitchings Vrf Ipv4Route Target Export Stitching] - Export Target-VPN community
- ipv4_
route_ Sequence[Gettarget_ exports Vrf Ipv4Route Target Export] - Export Target-VPN community
- ipv4_
route_ Sequence[Gettarget_ import_ stitchings Vrf Ipv4Route Target Import Stitching] - Import Target-VPN community
- ipv4_
route_ Sequence[Gettarget_ imports Vrf Ipv4Route Target Import] - Import Target-VPN community
- ipv6_
route_ Sequence[Gettarget_ export_ stitchings Vrf Ipv6Route Target Export Stitching] - Export Target-VPN community
- ipv6_
route_ Sequence[Gettarget_ exports Vrf Ipv6Route Target Export] - Export Target-VPN community
- ipv6_
route_ Sequence[Gettarget_ import_ stitchings Vrf Ipv6Route Target Import Stitching] - Import Target-VPN community
- ipv6_
route_ Sequence[Gettarget_ imports Vrf Ipv6Route Target Import] - Import Target-VPN community
- name str
- WORD;;VRF name
- rd str
- Specify Route Distinguisher
- route_
target_ Sequence[Getexports Vrf Route Target Export] - Export Target-VPN community
- route_
target_ Sequence[Getimports Vrf Route Target Import] - Import Target-VPN community
- vpn_
id str - Configure VPN ID in rfc2685 format
- device str
- A device name from the provider configuration.
- address
Family BooleanIpv4 - Address family
- address
Family BooleanIpv6 - Address family
- description String
- VRF specific description
- id String
- The path of the retrieved object.
- ipv4Route
Target List<Property Map>Export Stitchings - Export Target-VPN community
- ipv4Route
Target List<Property Map>Exports - Export Target-VPN community
- ipv4Route
Target List<Property Map>Import Stitchings - Import Target-VPN community
- ipv4Route
Target List<Property Map>Imports - Import Target-VPN community
- ipv6Route
Target List<Property Map>Export Stitchings - Export Target-VPN community
- ipv6Route
Target List<Property Map>Exports - Export Target-VPN community
- ipv6Route
Target List<Property Map>Import Stitchings - Import Target-VPN community
- ipv6Route
Target List<Property Map>Imports - Import Target-VPN community
- name String
- WORD;;VRF name
- rd String
- Specify Route Distinguisher
- route
Target List<Property Map>Exports - Export Target-VPN community
- route
Target List<Property Map>Imports - Import Target-VPN community
- vpn
Id String - Configure VPN ID in rfc2685 format
- device String
- A device name from the provider configuration.
Supporting Types
GetVrfIpv4RouteTargetExport
- Value string
- Value
- Value string
- Value
- value String
- Value
- value string
- Value
- value str
- Value
- value String
- Value
GetVrfIpv4RouteTargetExportStitching
GetVrfIpv4RouteTargetImport
- Value string
- Value
- Value string
- Value
- value String
- Value
- value string
- Value
- value str
- Value
- value String
- Value
GetVrfIpv4RouteTargetImportStitching
GetVrfIpv6RouteTargetExport
- Value string
- Value
- Value string
- Value
- value String
- Value
- value string
- Value
- value str
- Value
- value String
- Value
GetVrfIpv6RouteTargetExportStitching
GetVrfIpv6RouteTargetImport
- Value string
- Value
- Value string
- Value
- value String
- Value
- value string
- Value
- value str
- Value
- value String
- Value
GetVrfIpv6RouteTargetImportStitching
GetVrfRouteTargetExport
GetVrfRouteTargetImport
Package Details
- Repository
- iosxe lbrlabs/pulumi-iosxe
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
iosxe
Terraform Provider.