Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs
iosxe.getInterfaceMpls
Explore with Pulumi AI
This data source can read the Interface MPLS configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Iosxe = Pulumi.Iosxe;
return await Deployment.RunAsync(() =>
{
var example = Iosxe.GetInterfaceMpls.Invoke(new()
{
Name = "1",
Type = "Loopback",
});
});
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.LookupInterfaceMpls(ctx, &iosxe.LookupInterfaceMplsArgs{
Name: "1",
Type: "Loopback",
}, 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.GetInterfaceMplsArgs;
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.getInterfaceMpls(GetInterfaceMplsArgs.builder()
.name("1")
.type("Loopback")
.build());
}
}
import pulumi
import pulumi_iosxe as iosxe
example = iosxe.get_interface_mpls(name="1",
type="Loopback")
import * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@pulumi/iosxe";
const example = iosxe.getInterfaceMpls({
name: "1",
type: "Loopback",
});
variables:
example:
fn::invoke:
Function: iosxe:getInterfaceMpls
Arguments:
name: '1'
type: Loopback
Using getInterfaceMpls
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 getInterfaceMpls(args: GetInterfaceMplsArgs, opts?: InvokeOptions): Promise<GetInterfaceMplsResult>
function getInterfaceMplsOutput(args: GetInterfaceMplsOutputArgs, opts?: InvokeOptions): Output<GetInterfaceMplsResult>
def get_interface_mpls(device: Optional[str] = None,
name: Optional[str] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInterfaceMplsResult
def get_interface_mpls_output(device: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInterfaceMplsResult]
func LookupInterfaceMpls(ctx *Context, args *LookupInterfaceMplsArgs, opts ...InvokeOption) (*LookupInterfaceMplsResult, error)
func LookupInterfaceMplsOutput(ctx *Context, args *LookupInterfaceMplsOutputArgs, opts ...InvokeOption) LookupInterfaceMplsResultOutput
> Note: This function is named LookupInterfaceMpls
in the Go SDK.
public static class GetInterfaceMpls
{
public static Task<GetInterfaceMplsResult> InvokeAsync(GetInterfaceMplsArgs args, InvokeOptions? opts = null)
public static Output<GetInterfaceMplsResult> Invoke(GetInterfaceMplsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInterfaceMplsResult> getInterfaceMpls(GetInterfaceMplsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: iosxe:index/getInterfaceMpls:getInterfaceMpls
arguments:
# arguments dictionary
The following arguments are supported:
getInterfaceMpls Result
The following output properties are available:
Package Details
- Repository
- iosxe lbrlabs/pulumi-iosxe
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
iosxe
Terraform Provider.