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

vcd.getRdeInterfaceBehavior

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 RDE Interface Behavior from VMware Cloud Director.

    Supported in provider v3.10+. Requires System Administrator privileges.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vcd from "@pulumi/vcd";
    
    const myInterface = vcd.getRdeInterface({
        vendor: "vmware",
        nss: "k8s",
        version: "1.0.0",
    });
    const myBehavior = myInterface.then(myInterface => vcd.getRdeInterfaceBehavior({
        rdeInterfaceId: myInterface.id,
        name: "createKubeConfig",
    }));
    export const executionId = myBehavior.then(myBehavior => myBehavior.execution?.id);
    export const executionType = myBehavior.then(myBehavior => myBehavior.execution?.type);
    
    import pulumi
    import pulumi_vcd as vcd
    
    my_interface = vcd.get_rde_interface(vendor="vmware",
        nss="k8s",
        version="1.0.0")
    my_behavior = vcd.get_rde_interface_behavior(rde_interface_id=my_interface.id,
        name="createKubeConfig")
    pulumi.export("executionId", my_behavior.execution["id"])
    pulumi.export("executionType", my_behavior.execution["type"])
    
    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:  "vmware",
    			Nss:     "k8s",
    			Version: "1.0.0",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		myBehavior, err := vcd.LookupRdeInterfaceBehavior(ctx, &vcd.LookupRdeInterfaceBehaviorArgs{
    			RdeInterfaceId: myInterface.Id,
    			Name:           "createKubeConfig",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("executionId", myBehavior.Execution.Id)
    		ctx.Export("executionType", myBehavior.Execution.Type)
    		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 = "vmware",
            Nss = "k8s",
            Version = "1.0.0",
        });
    
        var myBehavior = Vcd.GetRdeInterfaceBehavior.Invoke(new()
        {
            RdeInterfaceId = myInterface.Apply(getRdeInterfaceResult => getRdeInterfaceResult.Id),
            Name = "createKubeConfig",
        });
    
        return new Dictionary<string, object?>
        {
            ["executionId"] = myBehavior.Apply(getRdeInterfaceBehaviorResult => getRdeInterfaceBehaviorResult.Execution?.Id),
            ["executionType"] = myBehavior.Apply(getRdeInterfaceBehaviorResult => getRdeInterfaceBehaviorResult.Execution?.Type),
        };
    });
    
    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 com.pulumi.vcd.inputs.GetRdeInterfaceBehaviorArgs;
    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("vmware")
                .nss("k8s")
                .version("1.0.0")
                .build());
    
            final var myBehavior = VcdFunctions.getRdeInterfaceBehavior(GetRdeInterfaceBehaviorArgs.builder()
                .rdeInterfaceId(myInterface.applyValue(getRdeInterfaceResult -> getRdeInterfaceResult.id()))
                .name("createKubeConfig")
                .build());
    
            ctx.export("executionId", myBehavior.applyValue(getRdeInterfaceBehaviorResult -> getRdeInterfaceBehaviorResult.execution().id()));
            ctx.export("executionType", myBehavior.applyValue(getRdeInterfaceBehaviorResult -> getRdeInterfaceBehaviorResult.execution().type()));
        }
    }
    
    variables:
      myInterface:
        fn::invoke:
          function: vcd:getRdeInterface
          arguments:
            vendor: vmware
            nss: k8s
            version: 1.0.0
      myBehavior:
        fn::invoke:
          function: vcd:getRdeInterfaceBehavior
          arguments:
            rdeInterfaceId: ${myInterface.id}
            name: createKubeConfig
    outputs:
      executionId: ${myBehavior.execution.id}
      executionType: ${myBehavior.execution.type}
    

    Using getRdeInterfaceBehavior

    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 getRdeInterfaceBehavior(args: GetRdeInterfaceBehaviorArgs, opts?: InvokeOptions): Promise<GetRdeInterfaceBehaviorResult>
    function getRdeInterfaceBehaviorOutput(args: GetRdeInterfaceBehaviorOutputArgs, opts?: InvokeOptions): Output<GetRdeInterfaceBehaviorResult>
    def get_rde_interface_behavior(id: Optional[str] = None,
                                   name: Optional[str] = None,
                                   rde_interface_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetRdeInterfaceBehaviorResult
    def get_rde_interface_behavior_output(id: Optional[pulumi.Input[str]] = None,
                                   name: Optional[pulumi.Input[str]] = None,
                                   rde_interface_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetRdeInterfaceBehaviorResult]
    func LookupRdeInterfaceBehavior(ctx *Context, args *LookupRdeInterfaceBehaviorArgs, opts ...InvokeOption) (*LookupRdeInterfaceBehaviorResult, error)
    func LookupRdeInterfaceBehaviorOutput(ctx *Context, args *LookupRdeInterfaceBehaviorOutputArgs, opts ...InvokeOption) LookupRdeInterfaceBehaviorResultOutput

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

    public static class GetRdeInterfaceBehavior 
    {
        public static Task<GetRdeInterfaceBehaviorResult> InvokeAsync(GetRdeInterfaceBehaviorArgs args, InvokeOptions? opts = null)
        public static Output<GetRdeInterfaceBehaviorResult> Invoke(GetRdeInterfaceBehaviorInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRdeInterfaceBehaviorResult> getRdeInterfaceBehavior(GetRdeInterfaceBehaviorArgs args, InvokeOptions options)
    public static Output<GetRdeInterfaceBehaviorResult> getRdeInterfaceBehavior(GetRdeInterfaceBehaviorArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vcd:index/getRdeInterfaceBehavior:getRdeInterfaceBehavior
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the RDE Interface Behavior to fetch
    RdeInterfaceId string
    The ID of the RDE Interface that owns the Behavior to fetch
    Id string
    Name string
    The name of the RDE Interface Behavior to fetch
    RdeInterfaceId string
    The ID of the RDE Interface that owns the Behavior to fetch
    Id string
    name String
    The name of the RDE Interface Behavior to fetch
    rdeInterfaceId String
    The ID of the RDE Interface that owns the Behavior to fetch
    id String
    name string
    The name of the RDE Interface Behavior to fetch
    rdeInterfaceId string
    The ID of the RDE Interface that owns the Behavior to fetch
    id string
    name str
    The name of the RDE Interface Behavior to fetch
    rde_interface_id str
    The ID of the RDE Interface that owns the Behavior to fetch
    id str
    name String
    The name of the RDE Interface Behavior to fetch
    rdeInterfaceId String
    The ID of the RDE Interface that owns the Behavior to fetch
    id String

    getRdeInterfaceBehavior Result

    The following output properties are available:

    Description string
    Execution Dictionary<string, string>

    Deprecated: Deprecated

    ExecutionJson string
    Id string
    Name string
    RdeInterfaceId string
    Ref string
    Description string
    Execution map[string]string

    Deprecated: Deprecated

    ExecutionJson string
    Id string
    Name string
    RdeInterfaceId string
    Ref string
    description String
    execution Map<String,String>

    Deprecated: Deprecated

    executionJson String
    id String
    name String
    rdeInterfaceId String
    ref String
    description string
    execution {[key: string]: string}

    Deprecated: Deprecated

    executionJson string
    id string
    name string
    rdeInterfaceId string
    ref string
    description str
    execution Mapping[str, str]

    Deprecated: Deprecated

    execution_json str
    id str
    name str
    rde_interface_id str
    ref str
    description String
    execution Map<String>

    Deprecated: Deprecated

    executionJson String
    id String
    name String
    rdeInterfaceId String
    ref 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