vcd.getOrgVdcTemplate
Explore with Pulumi AI
Provides a data source to read Organization VDC Templates from VMware Cloud Director. Can be used by System Administrators or tenants, only if the template is published in that tenant.
Supported in provider v3.13+
VDC Templates that do not use NSX-T can be read, but may be missing some details.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";
const template = vcd.getOrgVdcTemplate({
name: "myTemplate",
});
import pulumi
import pulumi_vcd as vcd
template = vcd.get_org_vdc_template(name="myTemplate")
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 {
_, err := vcd.LookupOrgVdcTemplate(ctx, &vcd.LookupOrgVdcTemplateArgs{
Name: "myTemplate",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vcd = Pulumi.Vcd;
return await Deployment.RunAsync(() =>
{
var template = Vcd.GetOrgVdcTemplate.Invoke(new()
{
Name = "myTemplate",
});
});
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.GetOrgVdcTemplateArgs;
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 template = VcdFunctions.getOrgVdcTemplate(GetOrgVdcTemplateArgs.builder()
.name("myTemplate")
.build());
}
}
variables:
template:
fn::invoke:
function: vcd:getOrgVdcTemplate
arguments:
name: myTemplate
Note that when using the data source as a tenant,
name
is the VDC Template name as seen by tenants
Using getOrgVdcTemplate
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 getOrgVdcTemplate(args: GetOrgVdcTemplateArgs, opts?: InvokeOptions): Promise<GetOrgVdcTemplateResult>
function getOrgVdcTemplateOutput(args: GetOrgVdcTemplateOutputArgs, opts?: InvokeOptions): Output<GetOrgVdcTemplateResult>
def get_org_vdc_template(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOrgVdcTemplateResult
def get_org_vdc_template_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOrgVdcTemplateResult]
func LookupOrgVdcTemplate(ctx *Context, args *LookupOrgVdcTemplateArgs, opts ...InvokeOption) (*LookupOrgVdcTemplateResult, error)
func LookupOrgVdcTemplateOutput(ctx *Context, args *LookupOrgVdcTemplateOutputArgs, opts ...InvokeOption) LookupOrgVdcTemplateResultOutput
> Note: This function is named LookupOrgVdcTemplate
in the Go SDK.
public static class GetOrgVdcTemplate
{
public static Task<GetOrgVdcTemplateResult> InvokeAsync(GetOrgVdcTemplateArgs args, InvokeOptions? opts = null)
public static Output<GetOrgVdcTemplateResult> Invoke(GetOrgVdcTemplateInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOrgVdcTemplateResult> getOrgVdcTemplate(GetOrgVdcTemplateArgs args, InvokeOptions options)
public static Output<GetOrgVdcTemplateResult> getOrgVdcTemplate(GetOrgVdcTemplateArgs args, InvokeOptions options)
fn::invoke:
function: vcd:index/getOrgVdcTemplate:getOrgVdcTemplate
arguments:
# arguments dictionary
The following arguments are supported:
getOrgVdcTemplate Result
The following output properties are available:
- Allocation
Model string - Compute
Configurations List<GetOrg Vdc Template Compute Configuration> - Description string
- Edge
Gateways List<GetOrg Vdc Template Edge Gateway> - Enable
Fast boolProvisioning - Enable
Thin boolProvisioning - Id string
- Name string
- Network
Pool stringId - Nic
Quota double - Provider
Vdcs List<GetOrg Vdc Template Provider Vdc> - Provisioned
Network doubleQuota - Readable
By List<string>Org Ids - Storage
Profiles List<GetOrg Vdc Template Storage Profile> - Tenant
Description string - Tenant
Name string - Vm
Quota double
- Allocation
Model string - Compute
Configurations []GetOrg Vdc Template Compute Configuration - Description string
- Edge
Gateways []GetOrg Vdc Template Edge Gateway - Enable
Fast boolProvisioning - Enable
Thin boolProvisioning - Id string
- Name string
- Network
Pool stringId - Nic
Quota float64 - Provider
Vdcs []GetOrg Vdc Template Provider Vdc - Provisioned
Network float64Quota - Readable
By []stringOrg Ids - Storage
Profiles []GetOrg Vdc Template Storage Profile - Tenant
Description string - Tenant
Name string - Vm
Quota float64
- allocation
Model String - compute
Configurations List<GetOrg Vdc Template Compute Configuration> - description String
- edge
Gateways List<GetOrg Vdc Template Edge Gateway> - enable
Fast BooleanProvisioning - enable
Thin BooleanProvisioning - id String
- name String
- network
Pool StringId - nic
Quota Double - provider
Vdcs List<GetOrg Vdc Template Provider Vdc> - provisioned
Network DoubleQuota - readable
By List<String>Org Ids - storage
Profiles List<GetOrg Vdc Template Storage Profile> - tenant
Description String - tenant
Name String - vm
Quota Double
- allocation
Model string - compute
Configurations GetOrg Vdc Template Compute Configuration[] - description string
- edge
Gateways GetOrg Vdc Template Edge Gateway[] - enable
Fast booleanProvisioning - enable
Thin booleanProvisioning - id string
- name string
- network
Pool stringId - nic
Quota number - provider
Vdcs GetOrg Vdc Template Provider Vdc[] - provisioned
Network numberQuota - readable
By string[]Org Ids - storage
Profiles GetOrg Vdc Template Storage Profile[] - tenant
Description string - tenant
Name string - vm
Quota number
- allocation_
model str - compute_
configurations Sequence[GetOrg Vdc Template Compute Configuration] - description str
- edge_
gateways Sequence[GetOrg Vdc Template Edge Gateway] - enable_
fast_ boolprovisioning - enable_
thin_ boolprovisioning - id str
- name str
- network_
pool_ strid - nic_
quota float - provider_
vdcs Sequence[GetOrg Vdc Template Provider Vdc] - provisioned_
network_ floatquota - readable_
by_ Sequence[str]org_ ids - storage_
profiles Sequence[GetOrg Vdc Template Storage Profile] - tenant_
description str - tenant_
name str - vm_
quota float
- allocation
Model String - compute
Configurations List<Property Map> - description String
- edge
Gateways List<Property Map> - enable
Fast BooleanProvisioning - enable
Thin BooleanProvisioning - id String
- name String
- network
Pool StringId - nic
Quota Number - provider
Vdcs List<Property Map> - provisioned
Network NumberQuota - readable
By List<String>Org Ids - storage
Profiles List<Property Map> - tenant
Description String - tenant
Name String - vm
Quota Number
Supporting Types
GetOrgVdcTemplateComputeConfiguration
- Cpu
Allocated double - Cpu
Guaranteed double - Cpu
Limit double - Cpu
Speed double - Elasticity bool
- Include
Vm boolMemory Overhead - Memory
Allocated double - Memory
Guaranteed double - Memory
Limit double
- Cpu
Allocated float64 - Cpu
Guaranteed float64 - Cpu
Limit float64 - Cpu
Speed float64 - Elasticity bool
- Include
Vm boolMemory Overhead - Memory
Allocated float64 - Memory
Guaranteed float64 - Memory
Limit float64
- cpu
Allocated Double - cpu
Guaranteed Double - cpu
Limit Double - cpu
Speed Double - elasticity Boolean
- include
Vm BooleanMemory Overhead - memory
Allocated Double - memory
Guaranteed Double - memory
Limit Double
- cpu
Allocated number - cpu
Guaranteed number - cpu
Limit number - cpu
Speed number - elasticity boolean
- include
Vm booleanMemory Overhead - memory
Allocated number - memory
Guaranteed number - memory
Limit number
- cpu_
allocated float - cpu_
guaranteed float - cpu_
limit float - cpu_
speed float - elasticity bool
- include_
vm_ boolmemory_ overhead - memory_
allocated float - memory_
guaranteed float - memory_
limit float
- cpu
Allocated Number - cpu
Guaranteed Number - cpu
Limit Number - cpu
Speed Number - elasticity Boolean
- include
Vm BooleanMemory Overhead - memory
Allocated Number - memory
Guaranteed Number - memory
Limit Number
GetOrgVdcTemplateEdgeGateway
- Description string
- Ip
Allocation doubleCount - Name string
- Name of the existing Organization VDC Template to read
- Routed
Network stringDescription - Routed
Network stringGateway Cidr - Routed
Network stringName - Static
Ip List<GetPools Org Vdc Template Edge Gateway Static Ip Pool>
- Description string
- Ip
Allocation float64Count - Name string
- Name of the existing Organization VDC Template to read
- Routed
Network stringDescription - Routed
Network stringGateway Cidr - Routed
Network stringName - Static
Ip []GetPools Org Vdc Template Edge Gateway Static Ip Pool
- description String
- ip
Allocation DoubleCount - name String
- Name of the existing Organization VDC Template to read
- routed
Network StringDescription - routed
Network StringGateway Cidr - routed
Network StringName - static
Ip List<GetPools Org Vdc Template Edge Gateway Static Ip Pool>
- description string
- ip
Allocation numberCount - name string
- Name of the existing Organization VDC Template to read
- routed
Network stringDescription - routed
Network stringGateway Cidr - routed
Network stringName - static
Ip GetPools Org Vdc Template Edge Gateway Static Ip Pool[]
- description str
- ip_
allocation_ floatcount - name str
- Name of the existing Organization VDC Template to read
- routed_
network_ strdescription - routed_
network_ strgateway_ cidr - routed_
network_ strname - static_
ip_ Sequence[Getpools Org Vdc Template Edge Gateway Static Ip Pool]
- description String
- ip
Allocation NumberCount - name String
- Name of the existing Organization VDC Template to read
- routed
Network StringDescription - routed
Network StringGateway Cidr - routed
Network StringName - static
Ip List<Property Map>Pools
GetOrgVdcTemplateEdgeGatewayStaticIpPool
- End
Address string - Start
Address string
- End
Address string - Start
Address string
- end
Address String - start
Address String
- end
Address string - start
Address string
- end_
address str - start_
address str
- end
Address String - start
Address String
GetOrgVdcTemplateProviderVdc
- External
Network stringId - Gateway
Edge stringCluster Id - Id string
- Services
Edge stringCluster Id
- External
Network stringId - Gateway
Edge stringCluster Id - Id string
- Services
Edge stringCluster Id
- external
Network StringId - gateway
Edge StringCluster Id - id String
- services
Edge StringCluster Id
- external
Network stringId - gateway
Edge stringCluster Id - id string
- services
Edge stringCluster Id
- external
Network StringId - gateway
Edge StringCluster Id - id String
- services
Edge StringCluster Id
GetOrgVdcTemplateStorageProfile
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.