Oracle Cloud Infrastructure v3.3.0 published on Thursday, Jul 17, 2025 by Pulumi
oci.Core.getComputeHostGroup
Explore with Pulumi AI
This data source provides details about a specific Compute Host Group resource in Oracle Cloud Infrastructure Core service.
Gets information about the specified compute host group
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testComputeHostGroup = oci.Core.getComputeHostGroup({
computeHostGroupId: testComputeHostGroupOciCoreComputeHostGroup.id,
});
import pulumi
import pulumi_oci as oci
test_compute_host_group = oci.Core.get_compute_host_group(compute_host_group_id=test_compute_host_group_oci_core_compute_host_group["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := core.GetComputeHostGroup(ctx, &core.GetComputeHostGroupArgs{
ComputeHostGroupId: testComputeHostGroupOciCoreComputeHostGroup.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 testComputeHostGroup = Oci.Core.GetComputeHostGroup.Invoke(new()
{
ComputeHostGroupId = testComputeHostGroupOciCoreComputeHostGroup.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.GetComputeHostGroupArgs;
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 testComputeHostGroup = CoreFunctions.getComputeHostGroup(GetComputeHostGroupArgs.builder()
.computeHostGroupId(testComputeHostGroupOciCoreComputeHostGroup.id())
.build());
}
}
variables:
testComputeHostGroup:
fn::invoke:
function: oci:Core:getComputeHostGroup
arguments:
computeHostGroupId: ${testComputeHostGroupOciCoreComputeHostGroup.id}
Using getComputeHostGroup
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 getComputeHostGroup(args: GetComputeHostGroupArgs, opts?: InvokeOptions): Promise<GetComputeHostGroupResult>
function getComputeHostGroupOutput(args: GetComputeHostGroupOutputArgs, opts?: InvokeOptions): Output<GetComputeHostGroupResult>
def get_compute_host_group(compute_host_group_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetComputeHostGroupResult
def get_compute_host_group_output(compute_host_group_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetComputeHostGroupResult]
func LookupComputeHostGroup(ctx *Context, args *LookupComputeHostGroupArgs, opts ...InvokeOption) (*LookupComputeHostGroupResult, error)
func LookupComputeHostGroupOutput(ctx *Context, args *LookupComputeHostGroupOutputArgs, opts ...InvokeOption) LookupComputeHostGroupResultOutput
> Note: This function is named LookupComputeHostGroup
in the Go SDK.
public static class GetComputeHostGroup
{
public static Task<GetComputeHostGroupResult> InvokeAsync(GetComputeHostGroupArgs args, InvokeOptions? opts = null)
public static Output<GetComputeHostGroupResult> Invoke(GetComputeHostGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetComputeHostGroupResult> getComputeHostGroup(GetComputeHostGroupArgs args, InvokeOptions options)
public static Output<GetComputeHostGroupResult> getComputeHostGroup(GetComputeHostGroupArgs args, InvokeOptions options)
fn::invoke:
function: oci:Core/getComputeHostGroup:getComputeHostGroup
arguments:
# arguments dictionary
The following arguments are supported:
- Compute
Host stringGroup Id - The OCID of the compute host group.
- Compute
Host stringGroup Id - The OCID of the compute host group.
- compute
Host StringGroup Id - The OCID of the compute host group.
- compute
Host stringGroup Id - The OCID of the compute host group.
- compute_
host_ strgroup_ id - The OCID of the compute host group.
- compute
Host StringGroup Id - The OCID of the compute host group.
getComputeHostGroup Result
The following output properties are available:
- Availability
Domain string - The availability domain of a host group. Example:
Uocm:PHX-AD-1
- Compartment
Id string - The OCID of the compartment that contains host group.
- Compute
Host stringGroup Id - Configurations
List<Get
Compute Host Group Configuration> - A list of HostGroupConfiguration objects
- 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"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 for the Customer-unique host group
- Is
Targeted boolPlacement Required - A flag that allows customers to restrict placement for hosts attached to the group. If true, the only way to place on hosts is to target the specific host group.
- State string
- The lifecycle state of the host group
- 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"}
- Time
Created string - The date and time the host group was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Time
Updated string - The date and time the host group was updated, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Availability
Domain string - The availability domain of a host group. Example:
Uocm:PHX-AD-1
- Compartment
Id string - The OCID of the compartment that contains host group.
- Compute
Host stringGroup Id - Configurations
[]Get
Compute Host Group Configuration - A list of HostGroupConfiguration objects
- 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"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 for the Customer-unique host group
- Is
Targeted boolPlacement Required - A flag that allows customers to restrict placement for hosts attached to the group. If true, the only way to place on hosts is to target the specific host group.
- State string
- The lifecycle state of the host group
- 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"}
- Time
Created string - The date and time the host group was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Time
Updated string - The date and time the host group was updated, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- availability
Domain String - The availability domain of a host group. Example:
Uocm:PHX-AD-1
- compartment
Id String - The OCID of the compartment that contains host group.
- compute
Host StringGroup Id - configurations
List<Get
Compute Host Group Configuration> - A list of HostGroupConfiguration objects
- 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"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 for the Customer-unique host group
- is
Targeted BooleanPlacement Required - A flag that allows customers to restrict placement for hosts attached to the group. If true, the only way to place on hosts is to target the specific host group.
- state String
- The lifecycle state of the host group
- 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"}
- time
Created String - The date and time the host group was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated String - The date and time the host group was updated, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- availability
Domain string - The availability domain of a host group. Example:
Uocm:PHX-AD-1
- compartment
Id string - The OCID of the compartment that contains host group.
- compute
Host stringGroup Id - configurations
Get
Compute Host Group Configuration[] - A list of HostGroupConfiguration objects
- {[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"}
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[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 for the Customer-unique host group
- is
Targeted booleanPlacement Required - A flag that allows customers to restrict placement for hosts attached to the group. If true, the only way to place on hosts is to target the specific host group.
- state string
- The lifecycle state of the host group
- {[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"}
- time
Created string - The date and time the host group was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated string - The date and time the host group was updated, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- availability_
domain str - The availability domain of a host group. Example:
Uocm:PHX-AD-1
- compartment_
id str - The OCID of the compartment that contains host group.
- compute_
host_ strgroup_ id - configurations
Sequence[Get
Compute Host Group Configuration] - A list of HostGroupConfiguration objects
- 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.
- 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 for the Customer-unique host group
- is_
targeted_ boolplacement_ required - A flag that allows customers to restrict placement for hosts attached to the group. If true, the only way to place on hosts is to target the specific host group.
- state str
- The lifecycle state of the host group
- 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"}
- time_
created str - The date and time the host group was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- time_
updated str - The date and time the host group was updated, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- availability
Domain String - The availability domain of a host group. Example:
Uocm:PHX-AD-1
- compartment
Id String - The OCID of the compartment that contains host group.
- compute
Host StringGroup Id - configurations List<Property Map>
- A list of HostGroupConfiguration objects
- 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"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 for the Customer-unique host group
- is
Targeted BooleanPlacement Required - A flag that allows customers to restrict placement for hosts attached to the group. If true, the only way to place on hosts is to target the specific host group.
- state String
- The lifecycle state of the host group
- 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"}
- time
Created String - The date and time the host group was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated String - The date and time the host group was updated, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
Supporting Types
GetComputeHostGroupConfiguration
- Firmware
Bundle stringId - The OCID for firmware bundle
- Recycle
Level string - Preferred recycle level for hosts associated with the reservation config.
SKIP_RECYCLE
- Skips host wipe.FULL_RECYCLE
- Does not skip host wipe. This is the default behavior.
- Target string
- Either the platform name or compute shape that the configuration is targeting
- Firmware
Bundle stringId - The OCID for firmware bundle
- Recycle
Level string - Preferred recycle level for hosts associated with the reservation config.
SKIP_RECYCLE
- Skips host wipe.FULL_RECYCLE
- Does not skip host wipe. This is the default behavior.
- Target string
- Either the platform name or compute shape that the configuration is targeting
- firmware
Bundle StringId - The OCID for firmware bundle
- recycle
Level String - Preferred recycle level for hosts associated with the reservation config.
SKIP_RECYCLE
- Skips host wipe.FULL_RECYCLE
- Does not skip host wipe. This is the default behavior.
- target String
- Either the platform name or compute shape that the configuration is targeting
- firmware
Bundle stringId - The OCID for firmware bundle
- recycle
Level string - Preferred recycle level for hosts associated with the reservation config.
SKIP_RECYCLE
- Skips host wipe.FULL_RECYCLE
- Does not skip host wipe. This is the default behavior.
- target string
- Either the platform name or compute shape that the configuration is targeting
- firmware_
bundle_ strid - The OCID for firmware bundle
- recycle_
level str - Preferred recycle level for hosts associated with the reservation config.
SKIP_RECYCLE
- Skips host wipe.FULL_RECYCLE
- Does not skip host wipe. This is the default behavior.
- target str
- Either the platform name or compute shape that the configuration is targeting
- firmware
Bundle StringId - The OCID for firmware bundle
- recycle
Level String - Preferred recycle level for hosts associated with the reservation config.
SKIP_RECYCLE
- Skips host wipe.FULL_RECYCLE
- Does not skip host wipe. This is the default behavior.
- target String
- Either the platform name or compute shape that the configuration is targeting
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.