Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Core.getDedicatedVmHost
Explore with Pulumi AI
This data source provides details about a specific Dedicated Vm Host resource in Oracle Cloud Infrastructure Core service.
Gets information about the specified dedicated virtual machine host.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDedicatedVmHost = oci.Core.getDedicatedVmHost({
    dedicatedVmHostId: testDedicatedVmHostOciCoreDedicatedVmHost.id,
});
import pulumi
import pulumi_oci as oci
test_dedicated_vm_host = oci.Core.get_dedicated_vm_host(dedicated_vm_host_id=test_dedicated_vm_host_oci_core_dedicated_vm_host["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/core"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := core.GetDedicatedVmHost(ctx, &core.GetDedicatedVmHostArgs{
			DedicatedVmHostId: testDedicatedVmHostOciCoreDedicatedVmHost.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testDedicatedVmHost = Oci.Core.GetDedicatedVmHost.Invoke(new()
    {
        DedicatedVmHostId = testDedicatedVmHostOciCoreDedicatedVmHost.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.CoreFunctions;
import com.pulumi.oci.Core.inputs.GetDedicatedVmHostArgs;
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 testDedicatedVmHost = CoreFunctions.getDedicatedVmHost(GetDedicatedVmHostArgs.builder()
            .dedicatedVmHostId(testDedicatedVmHostOciCoreDedicatedVmHost.id())
            .build());
    }
}
variables:
  testDedicatedVmHost:
    fn::invoke:
      function: oci:Core:getDedicatedVmHost
      arguments:
        dedicatedVmHostId: ${testDedicatedVmHostOciCoreDedicatedVmHost.id}
Using getDedicatedVmHost
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 getDedicatedVmHost(args: GetDedicatedVmHostArgs, opts?: InvokeOptions): Promise<GetDedicatedVmHostResult>
function getDedicatedVmHostOutput(args: GetDedicatedVmHostOutputArgs, opts?: InvokeOptions): Output<GetDedicatedVmHostResult>def get_dedicated_vm_host(dedicated_vm_host_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetDedicatedVmHostResult
def get_dedicated_vm_host_output(dedicated_vm_host_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetDedicatedVmHostResult]func LookupDedicatedVmHost(ctx *Context, args *LookupDedicatedVmHostArgs, opts ...InvokeOption) (*LookupDedicatedVmHostResult, error)
func LookupDedicatedVmHostOutput(ctx *Context, args *LookupDedicatedVmHostOutputArgs, opts ...InvokeOption) LookupDedicatedVmHostResultOutput> Note: This function is named LookupDedicatedVmHost in the Go SDK.
public static class GetDedicatedVmHost 
{
    public static Task<GetDedicatedVmHostResult> InvokeAsync(GetDedicatedVmHostArgs args, InvokeOptions? opts = null)
    public static Output<GetDedicatedVmHostResult> Invoke(GetDedicatedVmHostInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDedicatedVmHostResult> getDedicatedVmHost(GetDedicatedVmHostArgs args, InvokeOptions options)
public static Output<GetDedicatedVmHostResult> getDedicatedVmHost(GetDedicatedVmHostArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Core/getDedicatedVmHost:getDedicatedVmHost
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DedicatedVm stringHost Id 
- The OCID of the dedicated VM host.
- DedicatedVm stringHost Id 
- The OCID of the dedicated VM host.
- dedicatedVm StringHost Id 
- The OCID of the dedicated VM host.
- dedicatedVm stringHost Id 
- The OCID of the dedicated VM host.
- dedicated_vm_ strhost_ id 
- The OCID of the dedicated VM host.
- dedicatedVm StringHost Id 
- The OCID of the dedicated VM host.
getDedicatedVmHost Result
The following output properties are available:
- AvailabilityDomain string
- The availability domain the dedicated virtual machine host is running in. Example: Uocm:PHX-AD-1
- CompartmentId string
- The OCID of the compartment that contains the dedicated virtual machine host.
- DedicatedVm stringHost Id 
- DedicatedVm stringHost Shape 
- The dedicated virtual machine host shape. The shape determines the number of CPUs and other resources available for VMs.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- FaultDomain string
- The fault domain for the dedicated virtual machine host's assigned instances. For more information, see Fault Domains.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- The OCID of the dedicated VM host.
- RemainingMemory doubleIn Gbs 
- The current available memory of the dedicated VM host, in GBs.
- RemainingOcpus double
- The current available OCPUs of the dedicated VM host.
- State string
- The current state of the dedicated VM host.
- TimeCreated string
- The date and time the dedicated VM host was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- TotalMemory doubleIn Gbs 
- The current total memory of the dedicated VM host, in GBs.
- TotalOcpus double
- The current total OCPUs of the dedicated VM host.
- AvailabilityDomain string
- The availability domain the dedicated virtual machine host is running in. Example: Uocm:PHX-AD-1
- CompartmentId string
- The OCID of the compartment that contains the dedicated virtual machine host.
- DedicatedVm stringHost Id 
- DedicatedVm stringHost Shape 
- The dedicated virtual machine host shape. The shape determines the number of CPUs and other resources available for VMs.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- FaultDomain string
- The fault domain for the dedicated virtual machine host's assigned instances. For more information, see Fault Domains.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- The OCID of the dedicated VM host.
- RemainingMemory float64In Gbs 
- The current available memory of the dedicated VM host, in GBs.
- RemainingOcpus float64
- The current available OCPUs of the dedicated VM host.
- State string
- The current state of the dedicated VM host.
- TimeCreated string
- The date and time the dedicated VM host was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- TotalMemory float64In Gbs 
- The current total memory of the dedicated VM host, in GBs.
- TotalOcpus float64
- The current total OCPUs of the dedicated VM host.
- availabilityDomain String
- The availability domain the dedicated virtual machine host is running in. Example: Uocm:PHX-AD-1
- compartmentId String
- The OCID of the compartment that contains the dedicated virtual machine host.
- dedicatedVm StringHost Id 
- dedicatedVm StringHost Shape 
- The dedicated virtual machine host shape. The shape determines the number of CPUs and other resources available for VMs.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- faultDomain String
- The fault domain for the dedicated virtual machine host's assigned instances. For more information, see Fault Domains.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- The OCID of the dedicated VM host.
- remainingMemory DoubleIn Gbs 
- The current available memory of the dedicated VM host, in GBs.
- remainingOcpus Double
- The current available OCPUs of the dedicated VM host.
- state String
- The current state of the dedicated VM host.
- timeCreated String
- The date and time the dedicated VM host was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- totalMemory DoubleIn Gbs 
- The current total memory of the dedicated VM host, in GBs.
- totalOcpus Double
- The current total OCPUs of the dedicated VM host.
- availabilityDomain string
- The availability domain the dedicated virtual machine host is running in. Example: Uocm:PHX-AD-1
- compartmentId string
- The OCID of the compartment that contains the dedicated virtual machine host.
- dedicatedVm stringHost Id 
- dedicatedVm stringHost Shape 
- The dedicated virtual machine host shape. The shape determines the number of CPUs and other resources available for VMs.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- faultDomain string
- The fault domain for the dedicated virtual machine host's assigned instances. For more information, see Fault Domains.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id string
- The OCID of the dedicated VM host.
- remainingMemory numberIn Gbs 
- The current available memory of the dedicated VM host, in GBs.
- remainingOcpus number
- The current available OCPUs of the dedicated VM host.
- state string
- The current state of the dedicated VM host.
- timeCreated string
- The date and time the dedicated VM host was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- totalMemory numberIn Gbs 
- The current total memory of the dedicated VM host, in GBs.
- totalOcpus number
- The current total OCPUs of the dedicated VM host.
- availability_domain str
- The availability domain the dedicated virtual machine host is running in. Example: Uocm:PHX-AD-1
- compartment_id str
- The OCID of the compartment that contains the dedicated virtual machine host.
- dedicated_vm_ strhost_ id 
- dedicated_vm_ strhost_ shape 
- The dedicated virtual machine host shape. The shape determines the number of CPUs and other resources available for VMs.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- display_name str
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- fault_domain str
- The fault domain for the dedicated virtual machine host's assigned instances. For more information, see Fault Domains.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id str
- The OCID of the dedicated VM host.
- remaining_memory_ floatin_ gbs 
- The current available memory of the dedicated VM host, in GBs.
- remaining_ocpus float
- The current available OCPUs of the dedicated VM host.
- state str
- The current state of the dedicated VM host.
- time_created str
- The date and time the dedicated VM host was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- total_memory_ floatin_ gbs 
- The current total memory of the dedicated VM host, in GBs.
- total_ocpus float
- The current total OCPUs of the dedicated VM host.
- availabilityDomain String
- The availability domain the dedicated virtual machine host is running in. Example: Uocm:PHX-AD-1
- compartmentId String
- The OCID of the compartment that contains the dedicated virtual machine host.
- dedicatedVm StringHost Id 
- dedicatedVm StringHost Shape 
- The dedicated virtual machine host shape. The shape determines the number of CPUs and other resources available for VMs.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- faultDomain String
- The fault domain for the dedicated virtual machine host's assigned instances. For more information, see Fault Domains.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- The OCID of the dedicated VM host.
- remainingMemory NumberIn Gbs 
- The current available memory of the dedicated VM host, in GBs.
- remainingOcpus Number
- The current available OCPUs of the dedicated VM host.
- state String
- The current state of the dedicated VM host.
- timeCreated String
- The date and time the dedicated VM host was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- totalMemory NumberIn Gbs 
- The current total memory of the dedicated VM host, in GBs.
- totalOcpus Number
- The current total OCPUs of the dedicated VM host.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.