vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware
vcd.getOrgVdc
Explore with Pulumi AI
Provides a VMware Cloud Director Organization VDC data source. An Organization VDC can be used to reference a VDC and use its data within other resources or data sources.
Note: This resource supports NSX-T and NSX-V based Org VDCs
Supported in provider v2.5+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";
const my_org_vdc = vcd.getOrgVdc({
org: "my-org",
name: "my-vdc",
});
export const providerVdc = my_org_vdc.then(my_org_vdc => my_org_vdc.providerVdcName);
import pulumi
import pulumi_vcd as vcd
my_org_vdc = vcd.get_org_vdc(org="my-org",
name="my-vdc")
pulumi.export("providerVdc", my_org_vdc.provider_vdc_name)
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 {
my_org_vdc, err := vcd.LookupOrgVdc(ctx, &vcd.LookupOrgVdcArgs{
Org: pulumi.StringRef("my-org"),
Name: "my-vdc",
}, nil)
if err != nil {
return err
}
ctx.Export("providerVdc", my_org_vdc.ProviderVdcName)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vcd = Pulumi.Vcd;
return await Deployment.RunAsync(() =>
{
var my_org_vdc = Vcd.GetOrgVdc.Invoke(new()
{
Org = "my-org",
Name = "my-vdc",
});
return new Dictionary<string, object?>
{
["providerVdc"] = my_org_vdc.Apply(my_org_vdc => my_org_vdc.Apply(getOrgVdcResult => getOrgVdcResult.ProviderVdcName)),
};
});
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.GetOrgVdcArgs;
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 my-org-vdc = VcdFunctions.getOrgVdc(GetOrgVdcArgs.builder()
.org("my-org")
.name("my-vdc")
.build());
ctx.export("providerVdc", my_org_vdc.providerVdcName());
}
}
variables:
my-org-vdc:
fn::invoke:
function: vcd:getOrgVdc
arguments:
org: my-org
name: my-vdc
outputs:
providerVdc: ${["my-org-vdc"].providerVdcName}
Using getOrgVdc
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 getOrgVdc(args: GetOrgVdcArgs, opts?: InvokeOptions): Promise<GetOrgVdcResult>
function getOrgVdcOutput(args: GetOrgVdcOutputArgs, opts?: InvokeOptions): Output<GetOrgVdcResult>
def get_org_vdc(id: Optional[str] = None,
name: Optional[str] = None,
org: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOrgVdcResult
def get_org_vdc_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
org: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOrgVdcResult]
func LookupOrgVdc(ctx *Context, args *LookupOrgVdcArgs, opts ...InvokeOption) (*LookupOrgVdcResult, error)
func LookupOrgVdcOutput(ctx *Context, args *LookupOrgVdcOutputArgs, opts ...InvokeOption) LookupOrgVdcResultOutput
> Note: This function is named LookupOrgVdc
in the Go SDK.
public static class GetOrgVdc
{
public static Task<GetOrgVdcResult> InvokeAsync(GetOrgVdcArgs args, InvokeOptions? opts = null)
public static Output<GetOrgVdcResult> Invoke(GetOrgVdcInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOrgVdcResult> getOrgVdc(GetOrgVdcArgs args, InvokeOptions options)
public static Output<GetOrgVdcResult> getOrgVdc(GetOrgVdcArgs args, InvokeOptions options)
fn::invoke:
function: vcd:index/getOrgVdc:getOrgVdc
arguments:
# arguments dictionary
The following arguments are supported:
getOrgVdc Result
The following output properties are available:
- Allocation
Model string - Allow
Over boolCommit - Compute
Capacities List<GetOrg Vdc Compute Capacity> - Cpu
Guaranteed double - Cpu
Speed double - Default
Compute stringPolicy Id - Default
Vm stringSizing Policy Id - Description string
- Edge
Cluster stringId - (v3.8+, VCD 10.3+) An ID of NSX-T Edge Cluster which should provide vApp Networking Services or DHCP for Isolated Networks. This value might be unavailable in data source if user has insufficient rights.
- Elasticity bool
- Enable
Fast boolProvisioning - Enable
Nsxv boolDistributed Firewall - Enable
Thin boolProvisioning - Enable
Vm boolDiscovery - Enabled bool
- Id string
- Include
Vm boolMemory Overhead - Memory
Guaranteed double - Metadata Dictionary<string, string>
- Metadata
Entries List<GetOrg Vdc Metadata Entry> - Name string
- Network
Pool stringName - Network
Quota double - Nic
Quota double - Provider
Vdc stringName - Storage
Profiles List<GetOrg Vdc Storage Profile> - Vm
Placement List<string>Policy Ids - Vm
Quota double - Vm
Sizing List<string>Policy Ids - Vm
Vgpu List<string>Policy Ids - Org string
- Allocation
Model string - Allow
Over boolCommit - Compute
Capacities []GetOrg Vdc Compute Capacity - Cpu
Guaranteed float64 - Cpu
Speed float64 - Default
Compute stringPolicy Id - Default
Vm stringSizing Policy Id - Description string
- Edge
Cluster stringId - (v3.8+, VCD 10.3+) An ID of NSX-T Edge Cluster which should provide vApp Networking Services or DHCP for Isolated Networks. This value might be unavailable in data source if user has insufficient rights.
- Elasticity bool
- Enable
Fast boolProvisioning - Enable
Nsxv boolDistributed Firewall - Enable
Thin boolProvisioning - Enable
Vm boolDiscovery - Enabled bool
- Id string
- Include
Vm boolMemory Overhead - Memory
Guaranteed float64 - Metadata map[string]string
- Metadata
Entries []GetOrg Vdc Metadata Entry - Name string
- Network
Pool stringName - Network
Quota float64 - Nic
Quota float64 - Provider
Vdc stringName - Storage
Profiles []GetOrg Vdc Storage Profile - Vm
Placement []stringPolicy Ids - Vm
Quota float64 - Vm
Sizing []stringPolicy Ids - Vm
Vgpu []stringPolicy Ids - Org string
- allocation
Model String - allow
Over BooleanCommit - compute
Capacities List<GetOrg Vdc Compute Capacity> - cpu
Guaranteed Double - cpu
Speed Double - default
Compute StringPolicy Id - default
Vm StringSizing Policy Id - description String
- edge
Cluster StringId - (v3.8+, VCD 10.3+) An ID of NSX-T Edge Cluster which should provide vApp Networking Services or DHCP for Isolated Networks. This value might be unavailable in data source if user has insufficient rights.
- elasticity Boolean
- enable
Fast BooleanProvisioning - enable
Nsxv BooleanDistributed Firewall - enable
Thin BooleanProvisioning - enable
Vm BooleanDiscovery - enabled Boolean
- id String
- include
Vm BooleanMemory Overhead - memory
Guaranteed Double - metadata Map<String,String>
- metadata
Entries List<GetOrg Vdc Metadata Entry> - name String
- network
Pool StringName - network
Quota Double - nic
Quota Double - provider
Vdc StringName - storage
Profiles List<GetOrg Vdc Storage Profile> - vm
Placement List<String>Policy Ids - vm
Quota Double - vm
Sizing List<String>Policy Ids - vm
Vgpu List<String>Policy Ids - org String
- allocation
Model string - allow
Over booleanCommit - compute
Capacities GetOrg Vdc Compute Capacity[] - cpu
Guaranteed number - cpu
Speed number - default
Compute stringPolicy Id - default
Vm stringSizing Policy Id - description string
- edge
Cluster stringId - (v3.8+, VCD 10.3+) An ID of NSX-T Edge Cluster which should provide vApp Networking Services or DHCP for Isolated Networks. This value might be unavailable in data source if user has insufficient rights.
- elasticity boolean
- enable
Fast booleanProvisioning - enable
Nsxv booleanDistributed Firewall - enable
Thin booleanProvisioning - enable
Vm booleanDiscovery - enabled boolean
- id string
- include
Vm booleanMemory Overhead - memory
Guaranteed number - metadata {[key: string]: string}
- metadata
Entries GetOrg Vdc Metadata Entry[] - name string
- network
Pool stringName - network
Quota number - nic
Quota number - provider
Vdc stringName - storage
Profiles GetOrg Vdc Storage Profile[] - vm
Placement string[]Policy Ids - vm
Quota number - vm
Sizing string[]Policy Ids - vm
Vgpu string[]Policy Ids - org string
- allocation_
model str - allow_
over_ boolcommit - compute_
capacities Sequence[GetOrg Vdc Compute Capacity] - cpu_
guaranteed float - cpu_
speed float - default_
compute_ strpolicy_ id - default_
vm_ strsizing_ policy_ id - description str
- edge_
cluster_ strid - (v3.8+, VCD 10.3+) An ID of NSX-T Edge Cluster which should provide vApp Networking Services or DHCP for Isolated Networks. This value might be unavailable in data source if user has insufficient rights.
- elasticity bool
- enable_
fast_ boolprovisioning - enable_
nsxv_ booldistributed_ firewall - enable_
thin_ boolprovisioning - enable_
vm_ booldiscovery - enabled bool
- id str
- include_
vm_ boolmemory_ overhead - memory_
guaranteed float - metadata Mapping[str, str]
- metadata_
entries Sequence[GetOrg Vdc Metadata Entry] - name str
- network_
pool_ strname - network_
quota float - nic_
quota float - provider_
vdc_ strname - storage_
profiles Sequence[GetOrg Vdc Storage Profile] - vm_
placement_ Sequence[str]policy_ ids - vm_
quota float - vm_
sizing_ Sequence[str]policy_ ids - vm_
vgpu_ Sequence[str]policy_ ids - org str
- allocation
Model String - allow
Over BooleanCommit - compute
Capacities List<Property Map> - cpu
Guaranteed Number - cpu
Speed Number - default
Compute StringPolicy Id - default
Vm StringSizing Policy Id - description String
- edge
Cluster StringId - (v3.8+, VCD 10.3+) An ID of NSX-T Edge Cluster which should provide vApp Networking Services or DHCP for Isolated Networks. This value might be unavailable in data source if user has insufficient rights.
- elasticity Boolean
- enable
Fast BooleanProvisioning - enable
Nsxv BooleanDistributed Firewall - enable
Thin BooleanProvisioning - enable
Vm BooleanDiscovery - enabled Boolean
- id String
- include
Vm BooleanMemory Overhead - memory
Guaranteed Number - metadata Map<String>
- metadata
Entries List<Property Map> - name String
- network
Pool StringName - network
Quota Number - nic
Quota Number - provider
Vdc StringName - storage
Profiles List<Property Map> - vm
Placement List<String>Policy Ids - vm
Quota Number - vm
Sizing List<String>Policy Ids - vm
Vgpu List<String>Policy Ids - org String
Supporting Types
GetOrgVdcComputeCapacity
GetOrgVdcComputeCapacityCpus
GetOrgVdcComputeCapacityMemory
GetOrgVdcMetadataEntry
- Is
System bool - Key string
- Type string
- User
Access string - Value string
- Is
System bool - Key string
- Type string
- User
Access string - Value string
- is
System Boolean - key String
- type String
- user
Access String - value String
- is
System boolean - key string
- type string
- user
Access string - value string
- is_
system bool - key str
- type str
- user_
access str - value str
- is
System Boolean - key String
- type String
- user
Access String - value String
GetOrgVdcStorageProfile
- Default bool
- Enabled bool
- Limit double
- Name string
- Organization VDC name
- Storage
Used doubleIn Mb
- Default bool
- Enabled bool
- Limit float64
- Name string
- Organization VDC name
- Storage
Used float64In Mb
- default_ Boolean
- enabled Boolean
- limit Double
- name String
- Organization VDC name
- storage
Used DoubleIn Mb
- default boolean
- enabled boolean
- limit number
- name string
- Organization VDC name
- storage
Used numberIn Mb
- default bool
- enabled bool
- limit float
- name str
- Organization VDC name
- storage_
used_ floatin_ mb
- default Boolean
- enabled Boolean
- limit Number
- name String
- Organization VDC name
- storage
Used NumberIn Mb
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.