1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getDedicatedVmHost
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Core.getDedicatedVmHost

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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 GetDedicatedVmHost(ctx *Context, args *GetDedicatedVmHostArgs, opts ...InvokeOption) (*GetDedicatedVmHostResult, error)
    func GetDedicatedVmHostOutput(ctx *Context, args *GetDedicatedVmHostOutputArgs, opts ...InvokeOption) GetDedicatedVmHostResultOutput

    > Note: This function is named GetDedicatedVmHost 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getDedicatedVmHost:getDedicatedVmHost
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DedicatedVmHostId string
    The OCID of the dedicated VM host.
    DedicatedVmHostId string
    The OCID of the dedicated VM host.
    dedicatedVmHostId String
    The OCID of the dedicated VM host.
    dedicatedVmHostId string
    The OCID of the dedicated VM host.
    dedicated_vm_host_id str
    The OCID of the dedicated VM host.
    dedicatedVmHostId String
    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.
    DedicatedVmHostId string
    DedicatedVmHostShape string
    The dedicated virtual machine host shape. The shape determines the number of CPUs and other resources available for VMs.
    DefinedTags 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.
    FreeformTags 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.
    RemainingMemoryInGbs double
    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
    TotalMemoryInGbs double
    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.
    DedicatedVmHostId string
    DedicatedVmHostShape string
    The dedicated virtual machine host shape. The shape determines the number of CPUs and other resources available for VMs.
    DefinedTags 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.
    FreeformTags 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.
    RemainingMemoryInGbs float64
    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
    TotalMemoryInGbs float64
    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.
    dedicatedVmHostId String
    dedicatedVmHostShape String
    The dedicated virtual machine host shape. The shape determines the number of CPUs and other resources available for VMs.
    definedTags 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.
    freeformTags 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.
    remainingMemoryInGbs Double
    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
    totalMemoryInGbs Double
    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.
    dedicatedVmHostId string
    dedicatedVmHostShape string
    The dedicated virtual machine host shape. The shape determines the number of CPUs and other resources available for VMs.
    definedTags {[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.
    freeformTags {[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.
    remainingMemoryInGbs number
    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
    totalMemoryInGbs number
    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_host_id str
    dedicated_vm_host_shape str
    The dedicated virtual machine host shape. The shape determines the number of CPUs and other resources available for VMs.
    defined_tags 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.
    freeform_tags 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_in_gbs float
    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_in_gbs float
    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.
    dedicatedVmHostId String
    dedicatedVmHostShape String
    The dedicated virtual machine host shape. The shape determines the number of CPUs and other resources available for VMs.
    definedTags 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.
    freeformTags 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.
    remainingMemoryInGbs Number
    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
    totalMemoryInGbs Number
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi