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

vcd.getProviderVdc

Explore with Pulumi AI

Gives a VMware Cloud Director Provider VDC data source. This data source can be used to reference a Provider VDC and use its data within other resources or data sources.

Supported in provider v3.8+

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";

const my_pvdc = vcd.getProviderVdc({
    name: "my-pvdc",
});
export const providerVdc = my_pvdc.then(my_pvdc => my_pvdc.id);
Copy
import pulumi
import pulumi_vcd as vcd

my_pvdc = vcd.get_provider_vdc(name="my-pvdc")
pulumi.export("providerVdc", my_pvdc.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 {
		my_pvdc, err := vcd.LookupProviderVdc(ctx, &vcd.LookupProviderVdcArgs{
			Name: "my-pvdc",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("providerVdc", my_pvdc.Id)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vcd = Pulumi.Vcd;

return await Deployment.RunAsync(() => 
{
    var my_pvdc = Vcd.GetProviderVdc.Invoke(new()
    {
        Name = "my-pvdc",
    });

    return new Dictionary<string, object?>
    {
        ["providerVdc"] = my_pvdc.Apply(my_pvdc => my_pvdc.Apply(getProviderVdcResult => getProviderVdcResult.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.GetProviderVdcArgs;
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-pvdc = VcdFunctions.getProviderVdc(GetProviderVdcArgs.builder()
            .name("my-pvdc")
            .build());

        ctx.export("providerVdc", my_pvdc.id());
    }
}
Copy
variables:
  my-pvdc:
    fn::invoke:
      function: vcd:getProviderVdc
      arguments:
        name: my-pvdc
outputs:
  providerVdc: ${["my-pvdc"].id}
Copy

Compute Capacity

The compute_capacity attribute is a list with a single item which has the following nested attributes:

  • cpu - An indicator of CPU. See CPU and memory below.
  • memory - An indicator of memory. See CPU and memory below.
  • is_elastic - True if compute capacity can grow or shrink based on demand.
  • is_ha - True if compute capacity is highly available.

CPU and memory

The cpu and memory indicators have the following nested attributes:

  • allocation - Allocated CPU/Memory for this Provider VDC.
  • overhead - CPU/Memory overhead for this Provider VDC.
  • reserved - Reserved CPU/Memory for this Provider VDC.
  • total - Total CPU/Memory for this Provider VDC.
  • units - Units for the CPU/Memory of this Provider VDC.
  • used - Used CPU/Memory in this Provider VDC.

Metadata

The metadata_entry (v3.8+) is a set of metadata entries that have the following structure:

  • key - Key of this metadata entry.
  • value - Value of this metadata entry.
  • type - Type of this metadata entry. One of: MetadataStringValue, MetadataNumberValue, MetadataDateTimeValue, MetadataBooleanValue.
  • user_access - User access level for this metadata entry. One of: PRIVATE (hidden), READONLY (read only), READWRITE (read/write).
  • is_system - Domain for this metadata entry. true if it belongs to SYSTEM, false if it belongs to GENERAL.

Using getProviderVdc

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 getProviderVdc(args: GetProviderVdcArgs, opts?: InvokeOptions): Promise<GetProviderVdcResult>
function getProviderVdcOutput(args: GetProviderVdcOutputArgs, opts?: InvokeOptions): Output<GetProviderVdcResult>
Copy
def get_provider_vdc(id: Optional[str] = None,
                     name: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetProviderVdcResult
def get_provider_vdc_output(id: Optional[pulumi.Input[str]] = None,
                     name: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetProviderVdcResult]
Copy
func LookupProviderVdc(ctx *Context, args *LookupProviderVdcArgs, opts ...InvokeOption) (*LookupProviderVdcResult, error)
func LookupProviderVdcOutput(ctx *Context, args *LookupProviderVdcOutputArgs, opts ...InvokeOption) LookupProviderVdcResultOutput
Copy

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

public static class GetProviderVdc 
{
    public static Task<GetProviderVdcResult> InvokeAsync(GetProviderVdcArgs args, InvokeOptions? opts = null)
    public static Output<GetProviderVdcResult> Invoke(GetProviderVdcInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetProviderVdcResult> getProviderVdc(GetProviderVdcArgs args, InvokeOptions options)
public static Output<GetProviderVdcResult> getProviderVdc(GetProviderVdcArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: vcd:index/getProviderVdc:getProviderVdc
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Provider VDC name
Id string
Name This property is required. string
Provider VDC name
Id string
name This property is required. String
Provider VDC name
id String
name This property is required. string
Provider VDC name
id string
name This property is required. str
Provider VDC name
id str
name This property is required. String
Provider VDC name
id String

getProviderVdc Result

The following output properties are available:

Capabilities List<string>
Set of virtual hardware versions supported by this Provider VDC.
ComputeCapacities List<GetProviderVdcComputeCapacity>
An indicator of CPU and memory capacity. See Compute Capacity below for details.
ComputeProviderScope string
Represents the compute fault domain for this Provider VDC. This value is a tenant-facing tag that is shown to tenants when viewing fault domains of the child Organization VDCs (for example, a VDC Group).
Description string
Optional description of the Provider VDC.
ExternalNetworkIds List<string>
Set of IDs of External Networks.
HighestSupportedHardwareVersion string
The highest virtual hardware version supported by this Provider VDC.
HostIds List<string>
Set with all the hosts which are connected to VC server.
Id string
IsEnabled bool
True if this Provider VDC is enabled and can provide resources to organization VDCs. A Provider VDC is always enabled on creation.
Metadata Dictionary<string, string>
(Deprecated) Use metadata_entry instead. Key and value pairs for Provider VDC Metadata.

Deprecated: Deprecated

MetadataEntries List<GetProviderVdcMetadataEntry>
A set of metadata entries assigned to the Provider VDC. See Metadata section for details.
Name string
NetworkPoolIds List<string>
Set IDs of the Network Pools used by this Provider VDC.
NsxtManagerId string
ID of the registered NSX-T Manager that backs networking operations for this Provider VDC.
ResourcePoolIds List<string>
Set of IDs of the Resource Pools backing this provider VDC.
Status double
Status of the Provider VDC, it can be -1 (creation failed), 0 (not ready), 1 (ready), 2 (unknown) or 3 (unrecognized).
StorageContainerIds List<string>
StorageProfileIds List<string>
Set of IDs to the Storage Profiles available to this Provider VDC.
StorageProfileNames List<string>
UniversalNetworkPoolId string
ID of the universal network reference.
VcenterId string
ID of the vCenter Server that provides the Resource Pools and Datastores.
Capabilities []string
Set of virtual hardware versions supported by this Provider VDC.
ComputeCapacities []GetProviderVdcComputeCapacity
An indicator of CPU and memory capacity. See Compute Capacity below for details.
ComputeProviderScope string
Represents the compute fault domain for this Provider VDC. This value is a tenant-facing tag that is shown to tenants when viewing fault domains of the child Organization VDCs (for example, a VDC Group).
Description string
Optional description of the Provider VDC.
ExternalNetworkIds []string
Set of IDs of External Networks.
HighestSupportedHardwareVersion string
The highest virtual hardware version supported by this Provider VDC.
HostIds []string
Set with all the hosts which are connected to VC server.
Id string
IsEnabled bool
True if this Provider VDC is enabled and can provide resources to organization VDCs. A Provider VDC is always enabled on creation.
Metadata map[string]string
(Deprecated) Use metadata_entry instead. Key and value pairs for Provider VDC Metadata.

Deprecated: Deprecated

MetadataEntries []GetProviderVdcMetadataEntry
A set of metadata entries assigned to the Provider VDC. See Metadata section for details.
Name string
NetworkPoolIds []string
Set IDs of the Network Pools used by this Provider VDC.
NsxtManagerId string
ID of the registered NSX-T Manager that backs networking operations for this Provider VDC.
ResourcePoolIds []string
Set of IDs of the Resource Pools backing this provider VDC.
Status float64
Status of the Provider VDC, it can be -1 (creation failed), 0 (not ready), 1 (ready), 2 (unknown) or 3 (unrecognized).
StorageContainerIds []string
StorageProfileIds []string
Set of IDs to the Storage Profiles available to this Provider VDC.
StorageProfileNames []string
UniversalNetworkPoolId string
ID of the universal network reference.
VcenterId string
ID of the vCenter Server that provides the Resource Pools and Datastores.
capabilities List<String>
Set of virtual hardware versions supported by this Provider VDC.
computeCapacities List<GetProviderVdcComputeCapacity>
An indicator of CPU and memory capacity. See Compute Capacity below for details.
computeProviderScope String
Represents the compute fault domain for this Provider VDC. This value is a tenant-facing tag that is shown to tenants when viewing fault domains of the child Organization VDCs (for example, a VDC Group).
description String
Optional description of the Provider VDC.
externalNetworkIds List<String>
Set of IDs of External Networks.
highestSupportedHardwareVersion String
The highest virtual hardware version supported by this Provider VDC.
hostIds List<String>
Set with all the hosts which are connected to VC server.
id String
isEnabled Boolean
True if this Provider VDC is enabled and can provide resources to organization VDCs. A Provider VDC is always enabled on creation.
metadata Map<String,String>
(Deprecated) Use metadata_entry instead. Key and value pairs for Provider VDC Metadata.

Deprecated: Deprecated

metadataEntries List<GetProviderVdcMetadataEntry>
A set of metadata entries assigned to the Provider VDC. See Metadata section for details.
name String
networkPoolIds List<String>
Set IDs of the Network Pools used by this Provider VDC.
nsxtManagerId String
ID of the registered NSX-T Manager that backs networking operations for this Provider VDC.
resourcePoolIds List<String>
Set of IDs of the Resource Pools backing this provider VDC.
status Double
Status of the Provider VDC, it can be -1 (creation failed), 0 (not ready), 1 (ready), 2 (unknown) or 3 (unrecognized).
storageContainerIds List<String>
storageProfileIds List<String>
Set of IDs to the Storage Profiles available to this Provider VDC.
storageProfileNames List<String>
universalNetworkPoolId String
ID of the universal network reference.
vcenterId String
ID of the vCenter Server that provides the Resource Pools and Datastores.
capabilities string[]
Set of virtual hardware versions supported by this Provider VDC.
computeCapacities GetProviderVdcComputeCapacity[]
An indicator of CPU and memory capacity. See Compute Capacity below for details.
computeProviderScope string
Represents the compute fault domain for this Provider VDC. This value is a tenant-facing tag that is shown to tenants when viewing fault domains of the child Organization VDCs (for example, a VDC Group).
description string
Optional description of the Provider VDC.
externalNetworkIds string[]
Set of IDs of External Networks.
highestSupportedHardwareVersion string
The highest virtual hardware version supported by this Provider VDC.
hostIds string[]
Set with all the hosts which are connected to VC server.
id string
isEnabled boolean
True if this Provider VDC is enabled and can provide resources to organization VDCs. A Provider VDC is always enabled on creation.
metadata {[key: string]: string}
(Deprecated) Use metadata_entry instead. Key and value pairs for Provider VDC Metadata.

Deprecated: Deprecated

metadataEntries GetProviderVdcMetadataEntry[]
A set of metadata entries assigned to the Provider VDC. See Metadata section for details.
name string
networkPoolIds string[]
Set IDs of the Network Pools used by this Provider VDC.
nsxtManagerId string
ID of the registered NSX-T Manager that backs networking operations for this Provider VDC.
resourcePoolIds string[]
Set of IDs of the Resource Pools backing this provider VDC.
status number
Status of the Provider VDC, it can be -1 (creation failed), 0 (not ready), 1 (ready), 2 (unknown) or 3 (unrecognized).
storageContainerIds string[]
storageProfileIds string[]
Set of IDs to the Storage Profiles available to this Provider VDC.
storageProfileNames string[]
universalNetworkPoolId string
ID of the universal network reference.
vcenterId string
ID of the vCenter Server that provides the Resource Pools and Datastores.
capabilities Sequence[str]
Set of virtual hardware versions supported by this Provider VDC.
compute_capacities Sequence[GetProviderVdcComputeCapacity]
An indicator of CPU and memory capacity. See Compute Capacity below for details.
compute_provider_scope str
Represents the compute fault domain for this Provider VDC. This value is a tenant-facing tag that is shown to tenants when viewing fault domains of the child Organization VDCs (for example, a VDC Group).
description str
Optional description of the Provider VDC.
external_network_ids Sequence[str]
Set of IDs of External Networks.
highest_supported_hardware_version str
The highest virtual hardware version supported by this Provider VDC.
host_ids Sequence[str]
Set with all the hosts which are connected to VC server.
id str
is_enabled bool
True if this Provider VDC is enabled and can provide resources to organization VDCs. A Provider VDC is always enabled on creation.
metadata Mapping[str, str]
(Deprecated) Use metadata_entry instead. Key and value pairs for Provider VDC Metadata.

Deprecated: Deprecated

metadata_entries Sequence[GetProviderVdcMetadataEntry]
A set of metadata entries assigned to the Provider VDC. See Metadata section for details.
name str
network_pool_ids Sequence[str]
Set IDs of the Network Pools used by this Provider VDC.
nsxt_manager_id str
ID of the registered NSX-T Manager that backs networking operations for this Provider VDC.
resource_pool_ids Sequence[str]
Set of IDs of the Resource Pools backing this provider VDC.
status float
Status of the Provider VDC, it can be -1 (creation failed), 0 (not ready), 1 (ready), 2 (unknown) or 3 (unrecognized).
storage_container_ids Sequence[str]
storage_profile_ids Sequence[str]
Set of IDs to the Storage Profiles available to this Provider VDC.
storage_profile_names Sequence[str]
universal_network_pool_id str
ID of the universal network reference.
vcenter_id str
ID of the vCenter Server that provides the Resource Pools and Datastores.
capabilities List<String>
Set of virtual hardware versions supported by this Provider VDC.
computeCapacities List<Property Map>
An indicator of CPU and memory capacity. See Compute Capacity below for details.
computeProviderScope String
Represents the compute fault domain for this Provider VDC. This value is a tenant-facing tag that is shown to tenants when viewing fault domains of the child Organization VDCs (for example, a VDC Group).
description String
Optional description of the Provider VDC.
externalNetworkIds List<String>
Set of IDs of External Networks.
highestSupportedHardwareVersion String
The highest virtual hardware version supported by this Provider VDC.
hostIds List<String>
Set with all the hosts which are connected to VC server.
id String
isEnabled Boolean
True if this Provider VDC is enabled and can provide resources to organization VDCs. A Provider VDC is always enabled on creation.
metadata Map<String>
(Deprecated) Use metadata_entry instead. Key and value pairs for Provider VDC Metadata.

Deprecated: Deprecated

metadataEntries List<Property Map>
A set of metadata entries assigned to the Provider VDC. See Metadata section for details.
name String
networkPoolIds List<String>
Set IDs of the Network Pools used by this Provider VDC.
nsxtManagerId String
ID of the registered NSX-T Manager that backs networking operations for this Provider VDC.
resourcePoolIds List<String>
Set of IDs of the Resource Pools backing this provider VDC.
status Number
Status of the Provider VDC, it can be -1 (creation failed), 0 (not ready), 1 (ready), 2 (unknown) or 3 (unrecognized).
storageContainerIds List<String>
storageProfileIds List<String>
Set of IDs to the Storage Profiles available to this Provider VDC.
storageProfileNames List<String>
universalNetworkPoolId String
ID of the universal network reference.
vcenterId String
ID of the vCenter Server that provides the Resource Pools and Datastores.

Supporting Types

GetProviderVdcComputeCapacity

Cpus This property is required. List<GetProviderVdcComputeCapacityCpus>
IsElastic This property is required. bool
IsHa This property is required. bool
Memories This property is required. List<GetProviderVdcComputeCapacityMemory>
Cpus This property is required. []GetProviderVdcComputeCapacityCpus
IsElastic This property is required. bool
IsHa This property is required. bool
Memories This property is required. []GetProviderVdcComputeCapacityMemory
cpus This property is required. List<GetProviderVdcComputeCapacityCpus>
isElastic This property is required. Boolean
isHa This property is required. Boolean
memories This property is required. List<GetProviderVdcComputeCapacityMemory>
cpus This property is required. GetProviderVdcComputeCapacityCpus[]
isElastic This property is required. boolean
isHa This property is required. boolean
memories This property is required. GetProviderVdcComputeCapacityMemory[]
cpus This property is required. Sequence[GetProviderVdcComputeCapacityCpus]
is_elastic This property is required. bool
is_ha This property is required. bool
memories This property is required. Sequence[GetProviderVdcComputeCapacityMemory]
cpus This property is required. List<Property Map>
isElastic This property is required. Boolean
isHa This property is required. Boolean
memories This property is required. List<Property Map>

GetProviderVdcComputeCapacityCpus

Allocation This property is required. double
Overhead This property is required. double
Reserved This property is required. double
Total This property is required. double
Units This property is required. string
Used This property is required. double
Allocation This property is required. float64
Overhead This property is required. float64
Reserved This property is required. float64
Total This property is required. float64
Units This property is required. string
Used This property is required. float64
allocation This property is required. Double
overhead This property is required. Double
reserved This property is required. Double
total This property is required. Double
units This property is required. String
used This property is required. Double
allocation This property is required. number
overhead This property is required. number
reserved This property is required. number
total This property is required. number
units This property is required. string
used This property is required. number
allocation This property is required. float
overhead This property is required. float
reserved This property is required. float
total This property is required. float
units This property is required. str
used This property is required. float
allocation This property is required. Number
overhead This property is required. Number
reserved This property is required. Number
total This property is required. Number
units This property is required. String
used This property is required. Number

GetProviderVdcComputeCapacityMemory

Allocation This property is required. double
Overhead This property is required. double
Reserved This property is required. double
Total This property is required. double
Units This property is required. string
Used This property is required. double
Allocation This property is required. float64
Overhead This property is required. float64
Reserved This property is required. float64
Total This property is required. float64
Units This property is required. string
Used This property is required. float64
allocation This property is required. Double
overhead This property is required. Double
reserved This property is required. Double
total This property is required. Double
units This property is required. String
used This property is required. Double
allocation This property is required. number
overhead This property is required. number
reserved This property is required. number
total This property is required. number
units This property is required. string
used This property is required. number
allocation This property is required. float
overhead This property is required. float
reserved This property is required. float
total This property is required. float
units This property is required. str
used This property is required. float
allocation This property is required. Number
overhead This property is required. Number
reserved This property is required. Number
total This property is required. Number
units This property is required. String
used This property is required. Number

GetProviderVdcMetadataEntry

IsSystem This property is required. bool
Key This property is required. string
Type This property is required. string
UserAccess This property is required. string
Value This property is required. string
IsSystem This property is required. bool
Key This property is required. string
Type This property is required. string
UserAccess This property is required. string
Value This property is required. string
isSystem This property is required. Boolean
key This property is required. String
type This property is required. String
userAccess This property is required. String
value This property is required. String
isSystem This property is required. boolean
key This property is required. string
type This property is required. string
userAccess This property is required. string
value This property is required. string
is_system This property is required. bool
key This property is required. str
type This property is required. str
user_access This property is required. str
value This property is required. str
isSystem This property is required. Boolean
key This property is required. String
type This property is required. String
userAccess This property is required. String
value 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.