vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware
vcd.getRdeInterfaceBehavior
Explore with Pulumi AI
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
- Rde
Interface stringId - 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
- Rde
Interface stringId - 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
- rde
Interface StringId - 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
- rde
Interface stringId - 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_ strid - 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
- rde
Interface StringId - 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>
- Execution
Json string - Id string
- Name string
- Rde
Interface stringId - Ref string
- Description string
- Execution map[string]string
- Execution
Json string - Id string
- Name string
- Rde
Interface stringId - Ref string
- description String
- execution Map<String,String>
- execution
Json String - id String
- name String
- rde
Interface StringId - ref String
- description string
- execution {[key: string]: string}
- execution
Json string - id string
- name string
- rde
Interface stringId - ref string
- description str
- execution Mapping[str, str]
- execution_
json str - id str
- name str
- rde_
interface_ strid - ref str
- description String
- execution Map<String>
- execution
Json String - id String
- name String
- rde
Interface StringId - ref String
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.