vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware
vcd.getRde
Explore with Pulumi AI
Provides the capability of reading an existing Runtime Defined Entity in VMware Cloud Director.
VCD allows to have multiple RDEs of the same RDE Type with the same name, meaning that the data source will not be able to fetch a RDE in this situation, as this data source can only retrieve unique RDEs.
Supported in provider v3.9+
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
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 com.pulumi.vcd.inputs.GetRdeArgs;
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 myType = VcdFunctions.getRdeType(GetRdeTypeArgs.builder()
.vendor("bigcorp")
.namespace("tech1")
.version("1.2.3")
.build());
final var myRde = VcdFunctions.getRde(GetRdeArgs.builder()
.org("my-org")
.rdeTypeId(data.vcd_rde_type().my-type().id())
.name("My custom RDE")
.build());
ctx.export("rdeOutput", vcd_rde.my_rde().entity());
}
}
variables:
myType:
fn::invoke:
function: vcd:getRdeType
arguments:
vendor: bigcorp
namespace: tech1
version: 1.2.3
myRde:
fn::invoke:
function: vcd:getRde
arguments:
org: my-org
rdeTypeId: ${data.vcd_rde_type"my-type"[%!s(MISSING)].id}
name: My custom RDE
outputs:
rdeOutput: ${vcd_rde.my_rde.entity}
Using getRde
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 getRde(args: GetRdeArgs, opts?: InvokeOptions): Promise<GetRdeResult>
function getRdeOutput(args: GetRdeOutputArgs, opts?: InvokeOptions): Output<GetRdeResult>
def get_rde(id: Optional[str] = None,
name: Optional[str] = None,
org: Optional[str] = None,
rde_type_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRdeResult
def get_rde_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
org: Optional[pulumi.Input[str]] = None,
rde_type_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRdeResult]
func LookupRde(ctx *Context, args *LookupRdeArgs, opts ...InvokeOption) (*LookupRdeResult, error)
func LookupRdeOutput(ctx *Context, args *LookupRdeOutputArgs, opts ...InvokeOption) LookupRdeResultOutput
> Note: This function is named LookupRde
in the Go SDK.
public static class GetRde
{
public static Task<GetRdeResult> InvokeAsync(GetRdeArgs args, InvokeOptions? opts = null)
public static Output<GetRdeResult> Invoke(GetRdeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRdeResult> getRde(GetRdeArgs args, InvokeOptions options)
public static Output<GetRdeResult> getRde(GetRdeArgs args, InvokeOptions options)
fn::invoke:
function: vcd:index/getRde:getRde
arguments:
# arguments dictionary
The following arguments are supported:
- name str
- The name of the Runtime Defined Entity.
- rde_
type_ strid - The ID of the RDE Type of the RDE to fetch.
- id str
- org str
- Name of the Organization that owns the RDE, optional if defined at provider level.
getRde Result
The following output properties are available:
- Entity string
- The entity JSON.
- External
Id string - Id string
- Metadata
Entries List<GetRde Metadata Entry> - A set of metadata entries that belong to the RDE. Read the resource documentation for the details of the sub-attributes.
- Name string
- Org
Id string - The ID of the Organization to which the Runtime Defined Entity belongs.
- Owner
User stringId - The ID of the Organization user that owns this Runtime Defined Entity.
- Rde
Type stringId - State string
- It can be
RESOLVED
,RESOLUTION_ERROR
orPRE_CREATED
. - Org string
- Entity string
- The entity JSON.
- External
Id string - Id string
- Metadata
Entries []GetRde Metadata Entry - A set of metadata entries that belong to the RDE. Read the resource documentation for the details of the sub-attributes.
- Name string
- Org
Id string - The ID of the Organization to which the Runtime Defined Entity belongs.
- Owner
User stringId - The ID of the Organization user that owns this Runtime Defined Entity.
- Rde
Type stringId - State string
- It can be
RESOLVED
,RESOLUTION_ERROR
orPRE_CREATED
. - Org string
- entity String
- The entity JSON.
- external
Id String - id String
- metadata
Entries List<GetRde Metadata Entry> - A set of metadata entries that belong to the RDE. Read the resource documentation for the details of the sub-attributes.
- name String
- org
Id String - The ID of the Organization to which the Runtime Defined Entity belongs.
- owner
User StringId - The ID of the Organization user that owns this Runtime Defined Entity.
- rde
Type StringId - state String
- It can be
RESOLVED
,RESOLUTION_ERROR
orPRE_CREATED
. - org String
- entity string
- The entity JSON.
- external
Id string - id string
- metadata
Entries GetRde Metadata Entry[] - A set of metadata entries that belong to the RDE. Read the resource documentation for the details of the sub-attributes.
- name string
- org
Id string - The ID of the Organization to which the Runtime Defined Entity belongs.
- owner
User stringId - The ID of the Organization user that owns this Runtime Defined Entity.
- rde
Type stringId - state string
- It can be
RESOLVED
,RESOLUTION_ERROR
orPRE_CREATED
. - org string
- entity str
- The entity JSON.
- external_
id str - id str
- metadata_
entries Sequence[GetRde Metadata Entry] - A set of metadata entries that belong to the RDE. Read the resource documentation for the details of the sub-attributes.
- name str
- org_
id str - The ID of the Organization to which the Runtime Defined Entity belongs.
- owner_
user_ strid - The ID of the Organization user that owns this Runtime Defined Entity.
- rde_
type_ strid - state str
- It can be
RESOLVED
,RESOLUTION_ERROR
orPRE_CREATED
. - org str
- entity String
- The entity JSON.
- external
Id String - id String
- metadata
Entries List<Property Map> - A set of metadata entries that belong to the RDE. Read the resource documentation for the details of the sub-attributes.
- name String
- org
Id String - The ID of the Organization to which the Runtime Defined Entity belongs.
- owner
User StringId - The ID of the Organization user that owns this Runtime Defined Entity.
- rde
Type StringId - state String
- It can be
RESOLVED
,RESOLUTION_ERROR
orPRE_CREATED
. - org String
Supporting Types
GetRdeMetadataEntry
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.