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,
};
}
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
- External
Id string - Hooks
List<Get
Rde Type Hook> - Id string
- Inherited
Version string - Interface
Ids List<string> - Name string
- Nss string
- Readonly bool
- Schema string
- Vendor string
- Version string
- Description string
- External
Id string - Hooks
[]Get
Rde Type Hook - Id string
- Inherited
Version string - Interface
Ids []string - Name string
- Nss string
- Readonly bool
- Schema string
- Vendor string
- Version string
- description String
- external
Id String - hooks
List<Get
Rde Type Hook> - id String
- inherited
Version String - interface
Ids List<String> - name String
- nss String
- readonly Boolean
- schema String
- vendor String
- version String
- description string
- external
Id string - hooks
Get
Rde Type Hook[] - id string
- inherited
Version string - interface
Ids string[] - name string
- nss string
- readonly boolean
- schema string
- vendor string
- version string
- description str
- external_
id str - hooks
Sequence[Get
Rde Type Hook] - id str
- inherited_
version str - interface_
ids Sequence[str] - name str
- nss str
- readonly bool
- schema str
- vendor str
- version str
- description String
- external
Id String - hooks List<Property Map>
- id String
- inherited
Version String - interface
Ids List<String> - name String
- nss String
- readonly Boolean
- schema String
- vendor String
- version String
Supporting Types
GetRdeTypeHook
- Behavior
Id string - Event string
- Behavior
Id string - Event string
- behavior
Id String - event String
- behavior
Id string - event string
- behavior_
id str - event str
- behavior
Id String - event String
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.