Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Core.getDedicatedVmHost
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 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/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:
- Dedicated
Vm stringHost Id - The OCID of the dedicated VM host.
- Dedicated
Vm stringHost Id - The OCID of the dedicated VM host.
- dedicated
Vm StringHost Id - The OCID of the dedicated VM host.
- dedicated
Vm stringHost Id - The OCID of the dedicated VM host.
- dedicated_
vm_ strhost_ id - The OCID of the dedicated VM host.
- dedicated
Vm StringHost Id - The OCID of the dedicated VM host.
getDedicatedVmHost Result
The following output properties are available:
- Availability
Domain string - The availability domain the dedicated virtual machine host is running in. Example:
Uocm:PHX-AD-1
- Compartment
Id string - The OCID of the compartment that contains the dedicated virtual machine host.
- Dedicated
Vm stringHost Id - Dedicated
Vm stringHost Shape - The dedicated virtual machine host shape. The shape determines the number of CPUs and other resources available for VMs.
- 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"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Fault
Domain string - The fault domain for the dedicated virtual machine host's assigned instances. For more information, see Fault Domains.
- 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.
- Remaining
Memory doubleIn Gbs - The current available memory of the dedicated VM host, in GBs.
- Remaining
Ocpus double - The current available OCPUs of the dedicated VM host.
- State string
- The current state of the dedicated VM host.
- Time
Created string - 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 doubleIn Gbs - The current total memory of the dedicated VM host, in GBs.
- Total
Ocpus double - The current total OCPUs of the dedicated VM host.
- Availability
Domain string - The availability domain the dedicated virtual machine host is running in. Example:
Uocm:PHX-AD-1
- Compartment
Id string - The OCID of the compartment that contains the dedicated virtual machine host.
- Dedicated
Vm stringHost Id - Dedicated
Vm stringHost Shape - The dedicated virtual machine host shape. The shape determines the number of CPUs and other resources available for VMs.
- 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"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Fault
Domain string - The fault domain for the dedicated virtual machine host's assigned instances. For more information, see Fault Domains.
- 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.
- Remaining
Memory float64In Gbs - The current available memory of the dedicated VM host, in GBs.
- Remaining
Ocpus float64 - The current available OCPUs of the dedicated VM host.
- State string
- The current state of the dedicated VM host.
- Time
Created string - 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 float64In Gbs - The current total memory of the dedicated VM host, in GBs.
- Total
Ocpus float64 - The current total OCPUs of the dedicated VM host.
- availability
Domain String - The availability domain the dedicated virtual machine host is running in. Example:
Uocm:PHX-AD-1
- compartment
Id String - The OCID of the compartment that contains the dedicated virtual machine host.
- dedicated
Vm StringHost Id - dedicated
Vm StringHost Shape - The dedicated virtual machine host shape. The shape determines the number of CPUs and other resources available for VMs.
- 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"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- fault
Domain String - The fault domain for the dedicated virtual machine host's assigned instances. For more information, see Fault Domains.
- 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.
- remaining
Memory DoubleIn Gbs - The current available memory of the dedicated VM host, in GBs.
- remaining
Ocpus Double - The current available OCPUs of the dedicated VM host.
- state String
- The current state of the dedicated VM host.
- time
Created String - 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 DoubleIn Gbs - The current total memory of the dedicated VM host, in GBs.
- total
Ocpus Double - The current total OCPUs of the dedicated VM host.
- availability
Domain string - The availability domain the dedicated virtual machine host is running in. Example:
Uocm:PHX-AD-1
- compartment
Id string - The OCID of the compartment that contains the dedicated virtual machine host.
- dedicated
Vm stringHost Id - dedicated
Vm stringHost Shape - The dedicated virtual machine host shape. The shape determines the number of CPUs and other resources available for VMs.
- {[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"}
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- fault
Domain string - The fault domain for the dedicated virtual machine host's assigned instances. For more information, see Fault Domains.
- {[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.
- remaining
Memory numberIn Gbs - The current available memory of the dedicated VM host, in GBs.
- remaining
Ocpus number - The current available OCPUs of the dedicated VM host.
- state string
- The current state of the dedicated VM host.
- time
Created string - 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 numberIn Gbs - The current total memory of the dedicated VM host, in GBs.
- total
Ocpus 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, 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.
- 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_ 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.
- availability
Domain String - The availability domain the dedicated virtual machine host is running in. Example:
Uocm:PHX-AD-1
- compartment
Id String - The OCID of the compartment that contains the dedicated virtual machine host.
- dedicated
Vm StringHost Id - dedicated
Vm StringHost Shape - The dedicated virtual machine host shape. The shape determines the number of CPUs and other resources available for VMs.
- 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"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- fault
Domain String - The fault domain for the dedicated virtual machine host's assigned instances. For more information, see Fault Domains.
- 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.
- remaining
Memory NumberIn Gbs - The current available memory of the dedicated VM host, in GBs.
- remaining
Ocpus Number - The current available OCPUs of the dedicated VM host.
- state String
- The current state of the dedicated VM host.
- time
Created String - 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 NumberIn Gbs - The current total memory of the dedicated VM host, in GBs.
- total
Ocpus 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.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi