Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getDedicatedVmHost

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

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testDedicatedVmHost = Output.Create(Oci.Core.GetDedicatedVmHost.InvokeAsync(new Oci.Core.GetDedicatedVmHostArgs
        {
            DedicatedVmHostId = oci_core_dedicated_vm_host.Test_dedicated_vm_host.Id,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/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: oci_core_dedicated_vm_host.Test_dedicated_vm_host.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_dedicated_vm_host = oci.Core.get_dedicated_vm_host(dedicated_vm_host_id=oci_core_dedicated_vm_host["test_dedicated_vm_host"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDedicatedVmHost = oci.Core.getDedicatedVmHost({
    dedicatedVmHostId: oci_core_dedicated_vm_host.test_dedicated_vm_host.id,
});

Coming soon!

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, object>

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, object>

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]interface{}

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]interface{}

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,Object>

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,Object>

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]: any}

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]: any}

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, Any]

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, Any]

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<Any>

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<Any>

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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.