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

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,
    };
}
Copy
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)
Copy
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
	})
}
Copy
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),
    };
});
Copy
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()));
    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func LookupRdeType(ctx *Context, args *LookupRdeTypeArgs, opts ...InvokeOption) (*LookupRdeTypeResult, error)
func LookupRdeTypeOutput(ctx *Context, args *LookupRdeTypeOutputArgs, opts ...InvokeOption) LookupRdeTypeResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetRdeTypeResult> getRdeType(GetRdeTypeArgs args, InvokeOptions options)
public static Output<GetRdeTypeResult> getRdeType(GetRdeTypeArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: vcd:index/getRdeType:getRdeType
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Nss This property is required. string
A unique namespace associated with the Runtime Defined Entity Type.
Vendor This property is required. string
The vendor of the Runtime Defined Entity Type.
Version This property is required. string
The version of the Runtime Defined Entity Type. Must follow semantic versioning syntax.
Id string
Nss This property is required. string
A unique namespace associated with the Runtime Defined Entity Type.
Vendor This property is required. string
The vendor of the Runtime Defined Entity Type.
Version This property is required. string
The version of the Runtime Defined Entity Type. Must follow semantic versioning syntax.
Id string
nss This property is required. String
A unique namespace associated with the Runtime Defined Entity Type.
vendor This property is required. String
The vendor of the Runtime Defined Entity Type.
version This property is required. String
The version of the Runtime Defined Entity Type. Must follow semantic versioning syntax.
id String
nss This property is required. string
A unique namespace associated with the Runtime Defined Entity Type.
vendor This property is required. string
The vendor of the Runtime Defined Entity Type.
version This property is required. string
The version of the Runtime Defined Entity Type. Must follow semantic versioning syntax.
id string
nss This property is required. str
A unique namespace associated with the Runtime Defined Entity Type.
vendor This property is required. str
The vendor of the Runtime Defined Entity Type.
version This property is required. str
The version of the Runtime Defined Entity Type. Must follow semantic versioning syntax.
id str
nss This property is required. String
A unique namespace associated with the Runtime Defined Entity Type.
vendor This property is required. String
The vendor of the Runtime Defined Entity Type.
version This property is required. 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 This property is required. string
Event This property is required. string
BehaviorId This property is required. string
Event This property is required. string
behaviorId This property is required. String
event This property is required. String
behaviorId This property is required. string
event This property is required. string
behavior_id This property is required. str
event This property is required. str
behaviorId This property is required. String
event This property is required. String

Package Details

Repository
vcd vmware/terraform-provider-vcd
License
Notes
This Pulumi package is based on the vcd Terraform Provider.