vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware
vcd.getVm
Explore with Pulumi AI
Using getVm
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 getVm(args: GetVmArgs, opts?: InvokeOptions): Promise<GetVmResult>
function getVmOutput(args: GetVmOutputArgs, opts?: InvokeOptions): Output<GetVmResult>
def get_vm(id: Optional[str] = None,
name: Optional[str] = None,
network_dhcp_wait_seconds: Optional[float] = None,
org: Optional[str] = None,
placement_policy_id: Optional[str] = None,
sizing_policy_id: Optional[str] = None,
vapp_name: Optional[str] = None,
vdc: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVmResult
def get_vm_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
network_dhcp_wait_seconds: Optional[pulumi.Input[float]] = None,
org: Optional[pulumi.Input[str]] = None,
placement_policy_id: Optional[pulumi.Input[str]] = None,
sizing_policy_id: Optional[pulumi.Input[str]] = None,
vapp_name: Optional[pulumi.Input[str]] = None,
vdc: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVmResult]
func LookupVm(ctx *Context, args *LookupVmArgs, opts ...InvokeOption) (*LookupVmResult, error)
func LookupVmOutput(ctx *Context, args *LookupVmOutputArgs, opts ...InvokeOption) LookupVmResultOutput
> Note: This function is named LookupVm
in the Go SDK.
public static class GetVm
{
public static Task<GetVmResult> InvokeAsync(GetVmArgs args, InvokeOptions? opts = null)
public static Output<GetVmResult> Invoke(GetVmInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVmResult> getVm(GetVmArgs args, InvokeOptions options)
public static Output<GetVmResult> getVm(GetVmArgs args, InvokeOptions options)
fn::invoke:
function: vcd:index/getVm:getVm
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- A name or ID for the standalone VM in VDC
- Id string
- Network
Dhcp doubleWait Seconds - Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
- Placement
Policy stringId - Sizing
Policy stringId - Vapp
Name string - Vdc string
- The name of VDC to use, optional if defined at provider level
- Name string
- A name or ID for the standalone VM in VDC
- Id string
- Network
Dhcp float64Wait Seconds - Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
- Placement
Policy stringId - Sizing
Policy stringId - Vapp
Name string - Vdc string
- The name of VDC to use, optional if defined at provider level
- name String
- A name or ID for the standalone VM in VDC
- id String
- network
Dhcp DoubleWait Seconds - org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
- placement
Policy StringId - sizing
Policy StringId - vapp
Name String - vdc String
- The name of VDC to use, optional if defined at provider level
- name string
- A name or ID for the standalone VM in VDC
- id string
- network
Dhcp numberWait Seconds - org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
- placement
Policy stringId - sizing
Policy stringId - vapp
Name string - vdc string
- The name of VDC to use, optional if defined at provider level
- name str
- A name or ID for the standalone VM in VDC
- id str
- network_
dhcp_ floatwait_ seconds - org str
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
- placement_
policy_ strid - sizing_
policy_ strid - vapp_
name str - vdc str
- The name of VDC to use, optional if defined at provider level
- name String
- A name or ID for the standalone VM in VDC
- id String
- network
Dhcp NumberWait Seconds - org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
- placement
Policy StringId - sizing
Policy StringId - vapp
Name String - vdc String
- The name of VDC to use, optional if defined at provider level
getVm Result
The following output properties are available:
- Boot
Options List<GetVm Boot Option> - Computer
Name string - Cpu
Cores double - Cpu
Hot boolAdd Enabled - Cpu
Limit double - Cpu
Priority string - Cpu
Reservation double - double
- Cpus double
- Customizations
List<Get
Vm Customization> - Description string
- Disks
List<Get
Vm Disk> - Expose
Hardware boolVirtualization - Extra
Configs List<GetVm Extra Config> - Firmware string
- Guest
Properties Dictionary<string, string> - Hardware
Version string - Href string
- Id string
- Inherited
Metadata Dictionary<string, string> - Internal
Disks List<GetVm Internal Disk> - Memory double
- Memory
Hot boolAdd Enabled - Memory
Limit double - Memory
Priority string - Memory
Reservation double - double
- Metadata Dictionary<string, string>
- Metadata
Entries List<GetVm Metadata Entry> - Name string
- Networks
List<Get
Vm Network> - Os
Type string - Placement
Policy stringId - List<string>
- Sizing
Policy stringId - Status double
- Status
Text string - Storage
Profile string - Vapp
Id string - Vapp
Name string - Vm
Type string - Network
Dhcp doubleWait Seconds - Org string
- Vdc string
- Boot
Options []GetVm Boot Option - Computer
Name string - Cpu
Cores float64 - Cpu
Hot boolAdd Enabled - Cpu
Limit float64 - Cpu
Priority string - Cpu
Reservation float64 - float64
- Cpus float64
- Customizations
[]Get
Vm Customization - Description string
- Disks
[]Get
Vm Disk - Expose
Hardware boolVirtualization - Extra
Configs []GetVm Extra Config - Firmware string
- Guest
Properties map[string]string - Hardware
Version string - Href string
- Id string
- Inherited
Metadata map[string]string - Internal
Disks []GetVm Internal Disk Type - Memory float64
- Memory
Hot boolAdd Enabled - Memory
Limit float64 - Memory
Priority string - Memory
Reservation float64 - float64
- Metadata map[string]string
- Metadata
Entries []GetVm Metadata Entry - Name string
- Networks
[]Get
Vm Network - Os
Type string - Placement
Policy stringId - []string
- Sizing
Policy stringId - Status float64
- Status
Text string - Storage
Profile string - Vapp
Id string - Vapp
Name string - Vm
Type string - Network
Dhcp float64Wait Seconds - Org string
- Vdc string
- boot
Options List<GetVm Boot Option> - computer
Name String - cpu
Cores Double - cpu
Hot BooleanAdd Enabled - cpu
Limit Double - cpu
Priority String - cpu
Reservation Double - Double
- cpus Double
- customizations
List<Get
Vm Customization> - description String
- disks
List<Get
Vm Disk> - expose
Hardware BooleanVirtualization - extra
Configs List<GetVm Extra Config> - firmware String
- guest
Properties Map<String,String> - hardware
Version String - href String
- id String
- inherited
Metadata Map<String,String> - internal
Disks List<GetVm Internal Disk> - memory Double
- memory
Hot BooleanAdd Enabled - memory
Limit Double - memory
Priority String - memory
Reservation Double - Double
- metadata Map<String,String>
- metadata
Entries List<GetVm Metadata Entry> - name String
- networks
List<Get
Vm Network> - os
Type String - placement
Policy StringId - List<String>
- sizing
Policy StringId - status Double
- status
Text String - storage
Profile String - vapp
Id String - vapp
Name String - vm
Type String - network
Dhcp DoubleWait Seconds - org String
- vdc String
- boot
Options GetVm Boot Option[] - computer
Name string - cpu
Cores number - cpu
Hot booleanAdd Enabled - cpu
Limit number - cpu
Priority string - cpu
Reservation number - number
- cpus number
- customizations
Get
Vm Customization[] - description string
- disks
Get
Vm Disk[] - expose
Hardware booleanVirtualization - extra
Configs GetVm Extra Config[] - firmware string
- guest
Properties {[key: string]: string} - hardware
Version string - href string
- id string
- inherited
Metadata {[key: string]: string} - internal
Disks GetVm Internal Disk[] - memory number
- memory
Hot booleanAdd Enabled - memory
Limit number - memory
Priority string - memory
Reservation number - number
- metadata {[key: string]: string}
- metadata
Entries GetVm Metadata Entry[] - name string
- networks
Get
Vm Network[] - os
Type string - placement
Policy stringId - string[]
- sizing
Policy stringId - status number
- status
Text string - storage
Profile string - vapp
Id string - vapp
Name string - vm
Type string - network
Dhcp numberWait Seconds - org string
- vdc string
- boot_
options Sequence[GetVm Boot Option] - computer_
name str - cpu_
cores float - cpu_
hot_ booladd_ enabled - cpu_
limit float - cpu_
priority str - cpu_
reservation float - float
- cpus float
- customizations
Sequence[Get
Vm Customization] - description str
- disks
Sequence[Get
Vm Disk] - expose_
hardware_ boolvirtualization - extra_
configs Sequence[GetVm Extra Config] - firmware str
- guest_
properties Mapping[str, str] - hardware_
version str - href str
- id str
- inherited_
metadata Mapping[str, str] - internal_
disks Sequence[GetVm Internal Disk] - memory float
- memory_
hot_ booladd_ enabled - memory_
limit float - memory_
priority str - memory_
reservation float - float
- metadata Mapping[str, str]
- metadata_
entries Sequence[GetVm Metadata Entry] - name str
- networks
Sequence[Get
Vm Network] - os_
type str - placement_
policy_ strid - Sequence[str]
- sizing_
policy_ strid - status float
- status_
text str - storage_
profile str - vapp_
id str - vapp_
name str - vm_
type str - network_
dhcp_ floatwait_ seconds - org str
- vdc str
- boot
Options List<Property Map> - computer
Name String - cpu
Cores Number - cpu
Hot BooleanAdd Enabled - cpu
Limit Number - cpu
Priority String - cpu
Reservation Number - Number
- cpus Number
- customizations List<Property Map>
- description String
- disks List<Property Map>
- expose
Hardware BooleanVirtualization - extra
Configs List<Property Map> - firmware String
- guest
Properties Map<String> - hardware
Version String - href String
- id String
- inherited
Metadata Map<String> - internal
Disks List<Property Map> - memory Number
- memory
Hot BooleanAdd Enabled - memory
Limit Number - memory
Priority String - memory
Reservation Number - Number
- metadata Map<String>
- metadata
Entries List<Property Map> - name String
- networks List<Property Map>
- os
Type String - placement
Policy StringId - List<String>
- sizing
Policy StringId - status Number
- status
Text String - storage
Profile String - vapp
Id String - vapp
Name String - vm
Type String - network
Dhcp NumberWait Seconds - org String
- vdc String
Supporting Types
GetVmBootOption
- Boot
Delay double - Boot
Retry doubleDelay - Boot
Retry boolEnabled - Efi
Secure boolBoot - Enter
Bios boolSetup On Next Boot
- Boot
Delay float64 - Boot
Retry float64Delay - Boot
Retry boolEnabled - Efi
Secure boolBoot - Enter
Bios boolSetup On Next Boot
- boot
Delay Double - boot
Retry DoubleDelay - boot
Retry BooleanEnabled - efi
Secure BooleanBoot - enter
Bios BooleanSetup On Next Boot
- boot
Delay number - boot
Retry numberDelay - boot
Retry booleanEnabled - efi
Secure booleanBoot - enter
Bios booleanSetup On Next Boot
- boot_
delay float - boot_
retry_ floatdelay - boot_
retry_ boolenabled - efi_
secure_ boolboot - enter_
bios_ boolsetup_ on_ next_ boot
- boot
Delay Number - boot
Retry NumberDelay - boot
Retry BooleanEnabled - efi
Secure BooleanBoot - enter
Bios BooleanSetup On Next Boot
GetVmCustomization
- Admin
Password string - Allow
Local boolAdmin Password - Auto
Generate boolPassword - Change
Sid bool - Enabled bool
- Force bool
- Initscript string
- Join
Domain bool - Join
Domain stringAccount Ou - Join
Domain stringName - Join
Domain stringPassword - Join
Domain stringUser - Join
Org boolDomain - Must
Change boolPassword On First Login - Number
Of doubleAuto Logons
- Admin
Password string - Allow
Local boolAdmin Password - Auto
Generate boolPassword - Change
Sid bool - Enabled bool
- Force bool
- Initscript string
- Join
Domain bool - Join
Domain stringAccount Ou - Join
Domain stringName - Join
Domain stringPassword - Join
Domain stringUser - Join
Org boolDomain - Must
Change boolPassword On First Login - Number
Of float64Auto Logons
- admin
Password String - allow
Local BooleanAdmin Password - auto
Generate BooleanPassword - change
Sid Boolean - enabled Boolean
- force Boolean
- initscript String
- join
Domain Boolean - join
Domain StringAccount Ou - join
Domain StringName - join
Domain StringPassword - join
Domain StringUser - join
Org BooleanDomain - must
Change BooleanPassword On First Login - number
Of DoubleAuto Logons
- admin
Password string - allow
Local booleanAdmin Password - auto
Generate booleanPassword - change
Sid boolean - enabled boolean
- force boolean
- initscript string
- join
Domain boolean - join
Domain stringAccount Ou - join
Domain stringName - join
Domain stringPassword - join
Domain stringUser - join
Org booleanDomain - must
Change booleanPassword On First Login - number
Of numberAuto Logons
- admin_
password str - allow_
local_ booladmin_ password - auto_
generate_ boolpassword - change_
sid bool - enabled bool
- force bool
- initscript str
- join_
domain bool - join_
domain_ straccount_ ou - join_
domain_ strname - join_
domain_ strpassword - join_
domain_ struser - join_
org_ booldomain - must_
change_ boolpassword_ on_ first_ login - number_
of_ floatauto_ logons
- admin
Password String - allow
Local BooleanAdmin Password - auto
Generate BooleanPassword - change
Sid Boolean - enabled Boolean
- force Boolean
- initscript String
- join
Domain Boolean - join
Domain StringAccount Ou - join
Domain StringName - join
Domain StringPassword - join
Domain StringUser - join
Org BooleanDomain - must
Change BooleanPassword On First Login - number
Of NumberAuto Logons
GetVmDisk
- Bus
Number string - Name string
- A name or ID for the standalone VM in VDC
- Size
In doubleMb - Unit
Number string
- Bus
Number string - Name string
- A name or ID for the standalone VM in VDC
- Size
In float64Mb - Unit
Number string
- bus
Number String - name String
- A name or ID for the standalone VM in VDC
- size
In DoubleMb - unit
Number String
- bus
Number string - name string
- A name or ID for the standalone VM in VDC
- size
In numberMb - unit
Number string
- bus_
number str - name str
- A name or ID for the standalone VM in VDC
- size_
in_ floatmb - unit_
number str
- bus
Number String - name String
- A name or ID for the standalone VM in VDC
- size
In NumberMb - unit
Number String
GetVmExtraConfig
GetVmInternalDisk
- Bus
Number double - Bus
Type string - Disk
Id string - Iops double
- Size
In doubleMb - Storage
Profile string - Thin
Provisioned bool - Unit
Number double
- Bus
Number float64 - Bus
Type string - Disk
Id string - Iops float64
- Size
In float64Mb - Storage
Profile string - Thin
Provisioned bool - Unit
Number float64
- bus
Number Double - bus
Type String - disk
Id String - iops Double
- size
In DoubleMb - storage
Profile String - thin
Provisioned Boolean - unit
Number Double
- bus
Number number - bus
Type string - disk
Id string - iops number
- size
In numberMb - storage
Profile string - thin
Provisioned boolean - unit
Number number
- bus_
number float - bus_
type str - disk_
id str - iops float
- size_
in_ floatmb - storage_
profile str - thin_
provisioned bool - unit_
number float
- bus
Number Number - bus
Type String - disk
Id String - iops Number
- size
In NumberMb - storage
Profile String - thin
Provisioned Boolean - unit
Number Number
GetVmMetadataEntry
- 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
GetVmNetwork
- Adapter
Type string - Connected bool
- Ip string
- Ip
Allocation stringMode - Is
Primary bool - Mac string
- Name string
- A name or ID for the standalone VM in VDC
- Secondary
Ip string - Secondary
Ip stringAllocation Mode - Type string
- Adapter
Type string - Connected bool
- Ip string
- Ip
Allocation stringMode - Is
Primary bool - Mac string
- Name string
- A name or ID for the standalone VM in VDC
- Secondary
Ip string - Secondary
Ip stringAllocation Mode - Type string
- adapter
Type String - connected Boolean
- ip String
- ip
Allocation StringMode - is
Primary Boolean - mac String
- name String
- A name or ID for the standalone VM in VDC
- secondary
Ip String - secondary
Ip StringAllocation Mode - type String
- adapter
Type string - connected boolean
- ip string
- ip
Allocation stringMode - is
Primary boolean - mac string
- name string
- A name or ID for the standalone VM in VDC
- secondary
Ip string - secondary
Ip stringAllocation Mode - type string
- adapter_
type str - connected bool
- ip str
- ip_
allocation_ strmode - is_
primary bool - mac str
- name str
- A name or ID for the standalone VM in VDC
- secondary_
ip str - secondary_
ip_ strallocation_ mode - type str
- adapter
Type String - connected Boolean
- ip String
- ip
Allocation StringMode - is
Primary Boolean - mac String
- name String
- A name or ID for the standalone VM in VDC
- secondary
Ip String - secondary
Ip StringAllocation Mode - type String
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.