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);
import pulumi
import pulumi_vcd as vcd
my_pvdc = vcd.get_provider_vdc(name="my-pvdc")
pulumi.export("providerVdc", my_pvdc.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 {
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
})
}
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)),
};
});
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());
}
}
variables:
my-pvdc:
fn::invoke:
function: vcd:getProviderVdc
arguments:
name: my-pvdc
outputs:
providerVdc: ${["my-pvdc"].id}
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 toSYSTEM, false if it belongs toGENERAL.
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>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]func LookupProviderVdc(ctx *Context, args *LookupProviderVdcArgs, opts ...InvokeOption) (*LookupProviderVdcResult, error)
func LookupProviderVdcOutput(ctx *Context, args *LookupProviderVdcOutputArgs, opts ...InvokeOption) LookupProviderVdcResultOutput> 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)
}public static CompletableFuture<GetProviderVdcResult> getProviderVdc(GetProviderVdcArgs args, InvokeOptions options)
public static Output<GetProviderVdcResult> getProviderVdc(GetProviderVdcArgs args, InvokeOptions options)
fn::invoke:
function: vcd:index/getProviderVdc:getProviderVdc
arguments:
# arguments dictionaryThe following arguments are supported:
getProviderVdc Result
The following output properties are available:
- Capabilities List<string>
- Set of virtual hardware versions supported by this Provider VDC.
- Compute
Capacities List<GetProvider Vdc Compute Capacity> - An indicator of CPU and memory capacity. See Compute Capacity below for details.
- Compute
Provider stringScope - 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.
- External
Network List<string>Ids - Set of IDs of External Networks.
- Highest
Supported stringHardware Version - The highest virtual hardware version supported by this Provider VDC.
- Host
Ids List<string> - Set with all the hosts which are connected to VC server.
- Id string
- 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 Dictionary<string, string>
- (Deprecated) Use
metadata_entryinstead. Key and value pairs for Provider VDC Metadata. - Metadata
Entries List<GetProvider Vdc Metadata Entry> - A set of metadata entries assigned to the Provider VDC. See Metadata section for details.
- Name string
- Network
Pool List<string>Ids - Set IDs of the Network Pools used by this Provider VDC.
- Nsxt
Manager stringId - ID of the registered NSX-T Manager that backs networking operations for this Provider VDC.
- Resource
Pool List<string>Ids - 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).
- Storage
Container List<string>Ids - Storage
Profile List<string>Ids - Set of IDs to the Storage Profiles available to this Provider VDC.
- Storage
Profile List<string>Names - Universal
Network stringPool Id - ID of the universal network reference.
- Vcenter
Id 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.
- Compute
Capacities []GetProvider Vdc Compute Capacity - An indicator of CPU and memory capacity. See Compute Capacity below for details.
- Compute
Provider stringScope - 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.
- External
Network []stringIds - Set of IDs of External Networks.
- Highest
Supported stringHardware Version - The highest virtual hardware version supported by this Provider VDC.
- Host
Ids []string - Set with all the hosts which are connected to VC server.
- Id string
- 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 map[string]string
- (Deprecated) Use
metadata_entryinstead. Key and value pairs for Provider VDC Metadata. - Metadata
Entries []GetProvider Vdc Metadata Entry - A set of metadata entries assigned to the Provider VDC. See Metadata section for details.
- Name string
- Network
Pool []stringIds - Set IDs of the Network Pools used by this Provider VDC.
- Nsxt
Manager stringId - ID of the registered NSX-T Manager that backs networking operations for this Provider VDC.
- Resource
Pool []stringIds - 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).
- Storage
Container []stringIds - Storage
Profile []stringIds - Set of IDs to the Storage Profiles available to this Provider VDC.
- Storage
Profile []stringNames - Universal
Network stringPool Id - ID of the universal network reference.
- Vcenter
Id 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.
- compute
Capacities List<GetProvider Vdc Compute Capacity> - An indicator of CPU and memory capacity. See Compute Capacity below for details.
- compute
Provider StringScope - 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.
- external
Network List<String>Ids - Set of IDs of External Networks.
- highest
Supported StringHardware Version - The highest virtual hardware version supported by this Provider VDC.
- host
Ids List<String> - Set with all the hosts which are connected to VC server.
- id String
- is
Enabled 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_entryinstead. Key and value pairs for Provider VDC Metadata. - metadata
Entries List<GetProvider Vdc Metadata Entry> - A set of metadata entries assigned to the Provider VDC. See Metadata section for details.
- name String
- network
Pool List<String>Ids - Set IDs of the Network Pools used by this Provider VDC.
- nsxt
Manager StringId - ID of the registered NSX-T Manager that backs networking operations for this Provider VDC.
- resource
Pool List<String>Ids - 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).
- storage
Container List<String>Ids - storage
Profile List<String>Ids - Set of IDs to the Storage Profiles available to this Provider VDC.
- storage
Profile List<String>Names - universal
Network StringPool Id - ID of the universal network reference.
- vcenter
Id 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.
- compute
Capacities GetProvider Vdc Compute Capacity[] - An indicator of CPU and memory capacity. See Compute Capacity below for details.
- compute
Provider stringScope - 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.
- external
Network string[]Ids - Set of IDs of External Networks.
- highest
Supported stringHardware Version - The highest virtual hardware version supported by this Provider VDC.
- host
Ids string[] - Set with all the hosts which are connected to VC server.
- id string
- is
Enabled 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_entryinstead. Key and value pairs for Provider VDC Metadata. - metadata
Entries GetProvider Vdc Metadata Entry[] - A set of metadata entries assigned to the Provider VDC. See Metadata section for details.
- name string
- network
Pool string[]Ids - Set IDs of the Network Pools used by this Provider VDC.
- nsxt
Manager stringId - ID of the registered NSX-T Manager that backs networking operations for this Provider VDC.
- resource
Pool string[]Ids - 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).
- storage
Container string[]Ids - storage
Profile string[]Ids - Set of IDs to the Storage Profiles available to this Provider VDC.
- storage
Profile string[]Names - universal
Network stringPool Id - ID of the universal network reference.
- vcenter
Id 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[GetProvider Vdc Compute Capacity] - An indicator of CPU and memory capacity. See Compute Capacity below for details.
- compute_
provider_ strscope - 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_ Sequence[str]ids - Set of IDs of External Networks.
- highest_
supported_ strhardware_ version - 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_entryinstead. Key and value pairs for Provider VDC Metadata. - metadata_
entries Sequence[GetProvider Vdc Metadata Entry] - A set of metadata entries assigned to the Provider VDC. See Metadata section for details.
- name str
- network_
pool_ Sequence[str]ids - Set IDs of the Network Pools used by this Provider VDC.
- nsxt_
manager_ strid - ID of the registered NSX-T Manager that backs networking operations for this Provider VDC.
- resource_
pool_ Sequence[str]ids - 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_ Sequence[str]ids - storage_
profile_ Sequence[str]ids - Set of IDs to the Storage Profiles available to this Provider VDC.
- storage_
profile_ Sequence[str]names - universal_
network_ strpool_ id - 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.
- compute
Capacities List<Property Map> - An indicator of CPU and memory capacity. See Compute Capacity below for details.
- compute
Provider StringScope - 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.
- external
Network List<String>Ids - Set of IDs of External Networks.
- highest
Supported StringHardware Version - The highest virtual hardware version supported by this Provider VDC.
- host
Ids List<String> - Set with all the hosts which are connected to VC server.
- id String
- is
Enabled 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_entryinstead. Key and value pairs for Provider VDC Metadata. - metadata
Entries List<Property Map> - A set of metadata entries assigned to the Provider VDC. See Metadata section for details.
- name String
- network
Pool List<String>Ids - Set IDs of the Network Pools used by this Provider VDC.
- nsxt
Manager StringId - ID of the registered NSX-T Manager that backs networking operations for this Provider VDC.
- resource
Pool List<String>Ids - 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).
- storage
Container List<String>Ids - storage
Profile List<String>Ids - Set of IDs to the Storage Profiles available to this Provider VDC.
- storage
Profile List<String>Names - universal
Network StringPool Id - ID of the universal network reference.
- vcenter
Id String - ID of the vCenter Server that provides the Resource Pools and Datastores.
Supporting Types
GetProviderVdcComputeCapacity
- cpus List<Property Map>
- is
Elastic Boolean - is
Ha Boolean - memories List<Property Map>
GetProviderVdcComputeCapacityCpus
GetProviderVdcComputeCapacityMemory
GetProviderVdcMetadataEntry
- 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
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcdTerraform Provider.