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

vcd.getRdeType

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 Type from VMware Cloud Director.

    Supported in provider v3.9+

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vcd from "@pulumi/vcd";
    
    export = async () => {
        const myRdeType = await vcd.getRdeType({
            vendor: "bigcorp",
            nss: "tech",
            version: "1.2.3",
        });
        return {
            "type-name": myRdeType.name,
            "type-id": myRdeType.id,
        };
    }
    
    import pulumi
    import pulumi_vcd as vcd
    
    my_rde_type = vcd.get_rde_type(vendor="bigcorp",
        nss="tech",
        version="1.2.3")
    pulumi.export("type-name", my_rde_type.name)
    pulumi.export("type-id", my_rde_type.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 {
    		myRdeType, err := vcd.LookupRdeType(ctx, &vcd.LookupRdeTypeArgs{
    			Vendor:  "bigcorp",
    			Nss:     "tech",
    			Version: "1.2.3",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("type-name", myRdeType.Name)
    		ctx.Export("type-id", myRdeType.Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vcd = Pulumi.Vcd;
    
    return await Deployment.RunAsync(() => 
    {
        var myRdeType = Vcd.GetRdeType.Invoke(new()
        {
            Vendor = "bigcorp",
            Nss = "tech",
            Version = "1.2.3",
        });
    
        return new Dictionary<string, object?>
        {
            ["type-name"] = myRdeType.Apply(getRdeTypeResult => getRdeTypeResult.Name),
            ["type-id"] = myRdeType.Apply(getRdeTypeResult => getRdeTypeResult.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.GetRdeTypeArgs;
    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 myRdeType = VcdFunctions.getRdeType(GetRdeTypeArgs.builder()
                .vendor("bigcorp")
                .nss("tech")
                .version("1.2.3")
                .build());
    
            ctx.export("type-name", myRdeType.applyValue(getRdeTypeResult -> getRdeTypeResult.name()));
            ctx.export("type-id", myRdeType.applyValue(getRdeTypeResult -> getRdeTypeResult.id()));
        }
    }
    
    variables:
      myRdeType:
        fn::invoke:
          function: vcd:getRdeType
          arguments:
            vendor: bigcorp
            nss: tech
            version: 1.2.3
    outputs:
      type-name: ${myRdeType.name}
      type-id: ${myRdeType.id}
    

    Using getRdeType

    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 getRdeType(args: GetRdeTypeArgs, opts?: InvokeOptions): Promise<GetRdeTypeResult>
    function getRdeTypeOutput(args: GetRdeTypeOutputArgs, opts?: InvokeOptions): Output<GetRdeTypeResult>
    def get_rde_type(id: Optional[str] = None,
                     nss: Optional[str] = None,
                     vendor: Optional[str] = None,
                     version: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetRdeTypeResult
    def get_rde_type_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[GetRdeTypeResult]
    func LookupRdeType(ctx *Context, args *LookupRdeTypeArgs, opts ...InvokeOption) (*LookupRdeTypeResult, error)
    func LookupRdeTypeOutput(ctx *Context, args *LookupRdeTypeOutputArgs, opts ...InvokeOption) LookupRdeTypeResultOutput

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

    public static class GetRdeType 
    {
        public static Task<GetRdeTypeResult> InvokeAsync(GetRdeTypeArgs args, InvokeOptions? opts = null)
        public static Output<GetRdeTypeResult> Invoke(GetRdeTypeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRdeTypeResult> getRdeType(GetRdeTypeArgs args, InvokeOptions options)
    public static Output<GetRdeTypeResult> getRdeType(GetRdeTypeArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vcd:index/getRdeType:getRdeType
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getRdeType Result

    The following output properties are available:

    Description string
    ExternalId string
    Hooks List<GetRdeTypeHook>
    Id string
    InheritedVersion string
    InterfaceIds List<string>
    Name string
    Nss string
    Readonly bool
    Schema string
    Vendor string
    Version string
    Description string
    ExternalId string
    Hooks []GetRdeTypeHook
    Id string
    InheritedVersion string
    InterfaceIds []string
    Name string
    Nss string
    Readonly bool
    Schema string
    Vendor string
    Version string
    description String
    externalId String
    hooks List<GetRdeTypeHook>
    id String
    inheritedVersion String
    interfaceIds List<String>
    name String
    nss String
    readonly Boolean
    schema String
    vendor String
    version String
    description string
    externalId string
    hooks GetRdeTypeHook[]
    id string
    inheritedVersion string
    interfaceIds string[]
    name string
    nss string
    readonly boolean
    schema string
    vendor string
    version string
    description String
    externalId String
    hooks List<Property Map>
    id String
    inheritedVersion String
    interfaceIds List<String>
    name String
    nss String
    readonly Boolean
    schema String
    vendor String
    version String

    Supporting Types

    GetRdeTypeHook

    BehaviorId string
    Event string
    BehaviorId string
    Event string
    behaviorId String
    event String
    behaviorId string
    event string
    behaviorId String
    event 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