1. Packages
  2. Vcd Provider
  3. API Docs
  4. getRdeInterface
vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware

vcd.getRdeInterface

Explore with Pulumi AI

vcd logo
vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware

    Provides the capability of fetching an existing Runtime Defined Entity Interface from VMware Cloud Director.

    Supported in provider v3.9+

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vcd from "@pulumi/vcd";
    
    const myInterface = vcd.getRdeInterface({
        vendor: "bigcorp",
        nss: "tech",
        version: "1.2.3",
    });
    export const interfaceName = myInterface.then(myInterface => myInterface.name);
    export const interfaceId = myInterface.then(myInterface => myInterface.id);
    
    import pulumi
    import pulumi_vcd as vcd
    
    my_interface = vcd.get_rde_interface(vendor="bigcorp",
        nss="tech",
        version="1.2.3")
    pulumi.export("interfaceName", my_interface.name)
    pulumi.export("interfaceId", my_interface.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vcd/v3/vcd"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		myInterface, err := vcd.LookupRdeInterface(ctx, &vcd.LookupRdeInterfaceArgs{
    			Vendor:  "bigcorp",
    			Nss:     "tech",
    			Version: "1.2.3",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("interfaceName", myInterface.Name)
    		ctx.Export("interfaceId", myInterface.Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vcd = Pulumi.Vcd;
    
    return await Deployment.RunAsync(() => 
    {
        var myInterface = Vcd.GetRdeInterface.Invoke(new()
        {
            Vendor = "bigcorp",
            Nss = "tech",
            Version = "1.2.3",
        });
    
        return new Dictionary<string, object?>
        {
            ["interfaceName"] = myInterface.Apply(getRdeInterfaceResult => getRdeInterfaceResult.Name),
            ["interfaceId"] = myInterface.Apply(getRdeInterfaceResult => getRdeInterfaceResult.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vcd.VcdFunctions;
    import com.pulumi.vcd.inputs.GetRdeInterfaceArgs;
    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 myInterface = VcdFunctions.getRdeInterface(GetRdeInterfaceArgs.builder()
                .vendor("bigcorp")
                .nss("tech")
                .version("1.2.3")
                .build());
    
            ctx.export("interfaceName", myInterface.applyValue(getRdeInterfaceResult -> getRdeInterfaceResult.name()));
            ctx.export("interfaceId", myInterface.applyValue(getRdeInterfaceResult -> getRdeInterfaceResult.id()));
        }
    }
    
    variables:
      myInterface:
        fn::invoke:
          function: vcd:getRdeInterface
          arguments:
            vendor: bigcorp
            nss: tech
            version: 1.2.3
    outputs:
      interfaceName: ${myInterface.name}
      interfaceId: ${myInterface.id}
    

    Using getRdeInterface

    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 getRdeInterface(args: GetRdeInterfaceArgs, opts?: InvokeOptions): Promise<GetRdeInterfaceResult>
    function getRdeInterfaceOutput(args: GetRdeInterfaceOutputArgs, opts?: InvokeOptions): Output<GetRdeInterfaceResult>
    def get_rde_interface(id: Optional[str] = None,
                          nss: Optional[str] = None,
                          vendor: Optional[str] = None,
                          version: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetRdeInterfaceResult
    def get_rde_interface_output(id: Optional[pulumi.Input[str]] = None,
                          nss: Optional[pulumi.Input[str]] = None,
                          vendor: Optional[pulumi.Input[str]] = None,
                          version: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetRdeInterfaceResult]
    func LookupRdeInterface(ctx *Context, args *LookupRdeInterfaceArgs, opts ...InvokeOption) (*LookupRdeInterfaceResult, error)
    func LookupRdeInterfaceOutput(ctx *Context, args *LookupRdeInterfaceOutputArgs, opts ...InvokeOption) LookupRdeInterfaceResultOutput

    > Note: This function is named LookupRdeInterface in the Go SDK.

    public static class GetRdeInterface 
    {
        public static Task<GetRdeInterfaceResult> InvokeAsync(GetRdeInterfaceArgs args, InvokeOptions? opts = null)
        public static Output<GetRdeInterfaceResult> Invoke(GetRdeInterfaceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRdeInterfaceResult> getRdeInterface(GetRdeInterfaceArgs args, InvokeOptions options)
    public static Output<GetRdeInterfaceResult> getRdeInterface(GetRdeInterfaceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vcd:index/getRdeInterface:getRdeInterface
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Nss string
    A unique namespace associated with the RDE Interface.
    Vendor string
    The vendor of the RDE Interface.
    Version string
    The version of the RDE Interface. Must follow semantic versioning syntax.
    Id string
    Nss string
    A unique namespace associated with the RDE Interface.
    Vendor string
    The vendor of the RDE Interface.
    Version string
    The version of the RDE Interface. Must follow semantic versioning syntax.
    Id string
    nss String
    A unique namespace associated with the RDE Interface.
    vendor String
    The vendor of the RDE Interface.
    version String
    The version of the RDE Interface. Must follow semantic versioning syntax.
    id String
    nss string
    A unique namespace associated with the RDE Interface.
    vendor string
    The vendor of the RDE Interface.
    version string
    The version of the RDE Interface. Must follow semantic versioning syntax.
    id string
    nss str
    A unique namespace associated with the RDE Interface.
    vendor str
    The vendor of the RDE Interface.
    version str
    The version of the RDE Interface. Must follow semantic versioning syntax.
    id str
    nss String
    A unique namespace associated with the RDE Interface.
    vendor String
    The vendor of the RDE Interface.
    version String
    The version of the RDE Interface. Must follow semantic versioning syntax.
    id String

    getRdeInterface Result

    The following output properties are available:

    Id string
    Name string
    Nss string
    Readonly bool
    Vendor string
    Version string
    Id string
    Name string
    Nss string
    Readonly bool
    Vendor string
    Version string
    id String
    name String
    nss String
    readonly Boolean
    vendor String
    version String
    id string
    name string
    nss string
    readonly boolean
    vendor string
    version string
    id str
    name str
    nss str
    readonly bool
    vendor str
    version str
    id String
    name String
    nss String
    readonly Boolean
    vendor String
    version String

    Package Details

    Repository
    vcd vmware/terraform-provider-vcd
    License
    Notes
    This Pulumi package is based on the vcd Terraform Provider.
    vcd logo
    vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware