1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. ComputeHostGroup
Oracle Cloud Infrastructure v3.3.0 published on Thursday, Jul 17, 2025 by Pulumi

oci.Core.ComputeHostGroup

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.3.0 published on Thursday, Jul 17, 2025 by Pulumi

    This resource provides the Compute Host Group resource in Oracle Cloud Infrastructure Core service.

    Creates a new compute host group in the specified compartment and availability domain.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testComputeHostGroup = new oci.core.ComputeHostGroup("test_compute_host_group", {
        availabilityDomain: computeHostGroupAvailabilityDomain,
        compartmentId: compartmentId,
        displayName: computeHostGroupDisplayName,
        isTargetedPlacementRequired: computeHostGroupIsTargetedPlacementRequired,
        configurations: [{
            firmwareBundleId: testFirmwareBundle.id,
            recycleLevel: computeHostGroupConfigurationsRecycleLevel,
            target: computeHostGroupConfigurationsTarget,
        }],
        definedTags: {
            "Operations.CostCenter": "42",
        },
        freeformTags: {
            Department: "Finance",
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_compute_host_group = oci.core.ComputeHostGroup("test_compute_host_group",
        availability_domain=compute_host_group_availability_domain,
        compartment_id=compartment_id,
        display_name=compute_host_group_display_name,
        is_targeted_placement_required=compute_host_group_is_targeted_placement_required,
        configurations=[{
            "firmware_bundle_id": test_firmware_bundle["id"],
            "recycle_level": compute_host_group_configurations_recycle_level,
            "target": compute_host_group_configurations_target,
        }],
        defined_tags={
            "Operations.CostCenter": "42",
        },
        freeform_tags={
            "Department": "Finance",
        })
    
    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.NewComputeHostGroup(ctx, "test_compute_host_group", &core.ComputeHostGroupArgs{
    			AvailabilityDomain:          pulumi.Any(computeHostGroupAvailabilityDomain),
    			CompartmentId:               pulumi.Any(compartmentId),
    			DisplayName:                 pulumi.Any(computeHostGroupDisplayName),
    			IsTargetedPlacementRequired: pulumi.Any(computeHostGroupIsTargetedPlacementRequired),
    			Configurations: core.ComputeHostGroupConfigurationArray{
    				&core.ComputeHostGroupConfigurationArgs{
    					FirmwareBundleId: pulumi.Any(testFirmwareBundle.Id),
    					RecycleLevel:     pulumi.Any(computeHostGroupConfigurationsRecycleLevel),
    					Target:           pulumi.Any(computeHostGroupConfigurationsTarget),
    				},
    			},
    			DefinedTags: pulumi.StringMap{
    				"Operations.CostCenter": pulumi.String("42"),
    			},
    			FreeformTags: pulumi.StringMap{
    				"Department": pulumi.String("Finance"),
    			},
    		})
    		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 = new Oci.Core.ComputeHostGroup("test_compute_host_group", new()
        {
            AvailabilityDomain = computeHostGroupAvailabilityDomain,
            CompartmentId = compartmentId,
            DisplayName = computeHostGroupDisplayName,
            IsTargetedPlacementRequired = computeHostGroupIsTargetedPlacementRequired,
            Configurations = new[]
            {
                new Oci.Core.Inputs.ComputeHostGroupConfigurationArgs
                {
                    FirmwareBundleId = testFirmwareBundle.Id,
                    RecycleLevel = computeHostGroupConfigurationsRecycleLevel,
                    Target = computeHostGroupConfigurationsTarget,
                },
            },
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Core.ComputeHostGroup;
    import com.pulumi.oci.Core.ComputeHostGroupArgs;
    import com.pulumi.oci.Core.inputs.ComputeHostGroupConfigurationArgs;
    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) {
            var testComputeHostGroup = new ComputeHostGroup("testComputeHostGroup", ComputeHostGroupArgs.builder()
                .availabilityDomain(computeHostGroupAvailabilityDomain)
                .compartmentId(compartmentId)
                .displayName(computeHostGroupDisplayName)
                .isTargetedPlacementRequired(computeHostGroupIsTargetedPlacementRequired)
                .configurations(ComputeHostGroupConfigurationArgs.builder()
                    .firmwareBundleId(testFirmwareBundle.id())
                    .recycleLevel(computeHostGroupConfigurationsRecycleLevel)
                    .target(computeHostGroupConfigurationsTarget)
                    .build())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .freeformTags(Map.of("Department", "Finance"))
                .build());
    
        }
    }
    
    resources:
      testComputeHostGroup:
        type: oci:Core:ComputeHostGroup
        name: test_compute_host_group
        properties:
          availabilityDomain: ${computeHostGroupAvailabilityDomain}
          compartmentId: ${compartmentId}
          displayName: ${computeHostGroupDisplayName}
          isTargetedPlacementRequired: ${computeHostGroupIsTargetedPlacementRequired}
          configurations:
            - firmwareBundleId: ${testFirmwareBundle.id}
              recycleLevel: ${computeHostGroupConfigurationsRecycleLevel}
              target: ${computeHostGroupConfigurationsTarget}
          definedTags:
            Operations.CostCenter: '42'
          freeformTags:
            Department: Finance
    

    Create ComputeHostGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ComputeHostGroup(name: string, args: ComputeHostGroupArgs, opts?: CustomResourceOptions);
    @overload
    def ComputeHostGroup(resource_name: str,
                         args: ComputeHostGroupArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def ComputeHostGroup(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         availability_domain: Optional[str] = None,
                         compartment_id: Optional[str] = None,
                         display_name: Optional[str] = None,
                         is_targeted_placement_required: Optional[bool] = None,
                         configurations: Optional[Sequence[ComputeHostGroupConfigurationArgs]] = None,
                         defined_tags: Optional[Mapping[str, str]] = None,
                         freeform_tags: Optional[Mapping[str, str]] = None)
    func NewComputeHostGroup(ctx *Context, name string, args ComputeHostGroupArgs, opts ...ResourceOption) (*ComputeHostGroup, error)
    public ComputeHostGroup(string name, ComputeHostGroupArgs args, CustomResourceOptions? opts = null)
    public ComputeHostGroup(String name, ComputeHostGroupArgs args)
    public ComputeHostGroup(String name, ComputeHostGroupArgs args, CustomResourceOptions options)
    
    type: oci:Core:ComputeHostGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ComputeHostGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ComputeHostGroupArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ComputeHostGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ComputeHostGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ComputeHostGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var computeHostGroupResource = new Oci.Core.ComputeHostGroup("computeHostGroupResource", new()
    {
        AvailabilityDomain = "string",
        CompartmentId = "string",
        DisplayName = "string",
        IsTargetedPlacementRequired = false,
        Configurations = new[]
        {
            new Oci.Core.Inputs.ComputeHostGroupConfigurationArgs
            {
                FirmwareBundleId = "string",
                RecycleLevel = "string",
                Target = "string",
            },
        },
        DefinedTags = 
        {
            { "string", "string" },
        },
        FreeformTags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := core.NewComputeHostGroup(ctx, "computeHostGroupResource", &core.ComputeHostGroupArgs{
    	AvailabilityDomain:          pulumi.String("string"),
    	CompartmentId:               pulumi.String("string"),
    	DisplayName:                 pulumi.String("string"),
    	IsTargetedPlacementRequired: pulumi.Bool(false),
    	Configurations: core.ComputeHostGroupConfigurationArray{
    		&core.ComputeHostGroupConfigurationArgs{
    			FirmwareBundleId: pulumi.String("string"),
    			RecycleLevel:     pulumi.String("string"),
    			Target:           pulumi.String("string"),
    		},
    	},
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var computeHostGroupResource = new ComputeHostGroup("computeHostGroupResource", ComputeHostGroupArgs.builder()
        .availabilityDomain("string")
        .compartmentId("string")
        .displayName("string")
        .isTargetedPlacementRequired(false)
        .configurations(ComputeHostGroupConfigurationArgs.builder()
            .firmwareBundleId("string")
            .recycleLevel("string")
            .target("string")
            .build())
        .definedTags(Map.of("string", "string"))
        .freeformTags(Map.of("string", "string"))
        .build());
    
    compute_host_group_resource = oci.core.ComputeHostGroup("computeHostGroupResource",
        availability_domain="string",
        compartment_id="string",
        display_name="string",
        is_targeted_placement_required=False,
        configurations=[{
            "firmware_bundle_id": "string",
            "recycle_level": "string",
            "target": "string",
        }],
        defined_tags={
            "string": "string",
        },
        freeform_tags={
            "string": "string",
        })
    
    const computeHostGroupResource = new oci.core.ComputeHostGroup("computeHostGroupResource", {
        availabilityDomain: "string",
        compartmentId: "string",
        displayName: "string",
        isTargetedPlacementRequired: false,
        configurations: [{
            firmwareBundleId: "string",
            recycleLevel: "string",
            target: "string",
        }],
        definedTags: {
            string: "string",
        },
        freeformTags: {
            string: "string",
        },
    });
    
    type: oci:Core:ComputeHostGroup
    properties:
        availabilityDomain: string
        compartmentId: string
        configurations:
            - firmwareBundleId: string
              recycleLevel: string
              target: string
        definedTags:
            string: string
        displayName: string
        freeformTags:
            string: string
        isTargetedPlacementRequired: false
    

    ComputeHostGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ComputeHostGroup resource accepts the following input properties:

    AvailabilityDomain string
    The availability domain of a host group. Example: Uocm:PHX-AD-1
    CompartmentId string
    (Updatable) The OCID of the compartment that contains host group.
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    IsTargetedPlacementRequired bool

    (Updatable) 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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Configurations List<ComputeHostGroupConfiguration>
    (Updatable) A list of HostGroupConfiguration objects
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FreeformTags Dictionary<string, string>
    (Updatable) 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"}
    AvailabilityDomain string
    The availability domain of a host group. Example: Uocm:PHX-AD-1
    CompartmentId string
    (Updatable) The OCID of the compartment that contains host group.
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    IsTargetedPlacementRequired bool

    (Updatable) 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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Configurations []ComputeHostGroupConfigurationArgs
    (Updatable) A list of HostGroupConfiguration objects
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FreeformTags map[string]string
    (Updatable) 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"}
    availabilityDomain String
    The availability domain of a host group. Example: Uocm:PHX-AD-1
    compartmentId String
    (Updatable) The OCID of the compartment that contains host group.
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    isTargetedPlacementRequired Boolean

    (Updatable) 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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    configurations List<ComputeHostGroupConfiguration>
    (Updatable) A list of HostGroupConfiguration objects
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags Map<String,String>
    (Updatable) 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"}
    availabilityDomain string
    The availability domain of a host group. Example: Uocm:PHX-AD-1
    compartmentId string
    (Updatable) The OCID of the compartment that contains host group.
    displayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    isTargetedPlacementRequired boolean

    (Updatable) 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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    configurations ComputeHostGroupConfiguration[]
    (Updatable) A list of HostGroupConfiguration objects
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags {[key: string]: string}
    (Updatable) 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"}
    availability_domain str
    The availability domain of a host group. Example: Uocm:PHX-AD-1
    compartment_id str
    (Updatable) The OCID of the compartment that contains host group.
    display_name str
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    is_targeted_placement_required bool

    (Updatable) 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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    configurations Sequence[ComputeHostGroupConfigurationArgs]
    (Updatable) A list of HostGroupConfiguration objects
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeform_tags Mapping[str, str]
    (Updatable) 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"}
    availabilityDomain String
    The availability domain of a host group. Example: Uocm:PHX-AD-1
    compartmentId String
    (Updatable) The OCID of the compartment that contains host group.
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    isTargetedPlacementRequired Boolean

    (Updatable) 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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    configurations List<Property Map>
    (Updatable) A list of HostGroupConfiguration objects
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags Map<String>
    (Updatable) 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"}

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ComputeHostGroup resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The lifecycle state of the host group
    SystemTags 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"}
    TimeCreated string
    The date and time the host group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the host group was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The lifecycle state of the host group
    SystemTags 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"}
    TimeCreated string
    The date and time the host group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the host group was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The lifecycle state of the host group
    systemTags 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"}
    timeCreated String
    The date and time the host group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the host group was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The lifecycle state of the host group
    systemTags {[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"}
    timeCreated string
    The date and time the host group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time the host group was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The lifecycle state of the host group
    system_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"}
    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
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The lifecycle state of the host group
    systemTags 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"}
    timeCreated String
    The date and time the host group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the host group was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

    Look up Existing ComputeHostGroup Resource

    Get an existing ComputeHostGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ComputeHostGroupState, opts?: CustomResourceOptions): ComputeHostGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            availability_domain: Optional[str] = None,
            compartment_id: Optional[str] = None,
            configurations: Optional[Sequence[ComputeHostGroupConfigurationArgs]] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            is_targeted_placement_required: Optional[bool] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, str]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None) -> ComputeHostGroup
    func GetComputeHostGroup(ctx *Context, name string, id IDInput, state *ComputeHostGroupState, opts ...ResourceOption) (*ComputeHostGroup, error)
    public static ComputeHostGroup Get(string name, Input<string> id, ComputeHostGroupState? state, CustomResourceOptions? opts = null)
    public static ComputeHostGroup get(String name, Output<String> id, ComputeHostGroupState state, CustomResourceOptions options)
    resources:  _:    type: oci:Core:ComputeHostGroup    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AvailabilityDomain string
    The availability domain of a host group. Example: Uocm:PHX-AD-1
    CompartmentId string
    (Updatable) The OCID of the compartment that contains host group.
    Configurations List<ComputeHostGroupConfiguration>
    (Updatable) A list of HostGroupConfiguration objects
    DefinedTags Dictionary<string, string>
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags Dictionary<string, string>
    (Updatable) 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"}
    IsTargetedPlacementRequired bool

    (Updatable) 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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    State string
    The lifecycle state of the host group
    SystemTags 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"}
    TimeCreated string
    The date and time the host group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the host group was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    AvailabilityDomain string
    The availability domain of a host group. Example: Uocm:PHX-AD-1
    CompartmentId string
    (Updatable) The OCID of the compartment that contains host group.
    Configurations []ComputeHostGroupConfigurationArgs
    (Updatable) A list of HostGroupConfiguration objects
    DefinedTags map[string]string
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags map[string]string
    (Updatable) 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"}
    IsTargetedPlacementRequired bool

    (Updatable) 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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    State string
    The lifecycle state of the host group
    SystemTags 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"}
    TimeCreated string
    The date and time the host group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the host group was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    availabilityDomain String
    The availability domain of a host group. Example: Uocm:PHX-AD-1
    compartmentId String
    (Updatable) The OCID of the compartment that contains host group.
    configurations List<ComputeHostGroupConfiguration>
    (Updatable) A list of HostGroupConfiguration objects
    definedTags Map<String,String>
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String,String>
    (Updatable) 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"}
    isTargetedPlacementRequired Boolean

    (Updatable) 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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state String
    The lifecycle state of the host group
    systemTags 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"}
    timeCreated String
    The date and time the host group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the host group was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    availabilityDomain string
    The availability domain of a host group. Example: Uocm:PHX-AD-1
    compartmentId string
    (Updatable) The OCID of the compartment that contains host group.
    configurations ComputeHostGroupConfiguration[]
    (Updatable) A list of HostGroupConfiguration objects
    definedTags {[key: string]: string}
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags {[key: string]: string}
    (Updatable) 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"}
    isTargetedPlacementRequired boolean

    (Updatable) 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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state string
    The lifecycle state of the host group
    systemTags {[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"}
    timeCreated string
    The date and time the host group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated 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
    (Updatable) The OCID of the compartment that contains host group.
    configurations Sequence[ComputeHostGroupConfigurationArgs]
    (Updatable) A list of HostGroupConfiguration objects
    defined_tags Mapping[str, str]
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags Mapping[str, str]
    (Updatable) 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"}
    is_targeted_placement_required bool

    (Updatable) 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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state str
    The lifecycle state of the host group
    system_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"}
    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
    availabilityDomain String
    The availability domain of a host group. Example: Uocm:PHX-AD-1
    compartmentId String
    (Updatable) The OCID of the compartment that contains host group.
    configurations List<Property Map>
    (Updatable) A list of HostGroupConfiguration objects
    definedTags Map<String>
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String>
    (Updatable) 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"}
    isTargetedPlacementRequired Boolean

    (Updatable) 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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state String
    The lifecycle state of the host group
    systemTags 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"}
    timeCreated String
    The date and time the host group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated 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

    ComputeHostGroupConfiguration, ComputeHostGroupConfigurationArgs

    FirmwareBundleId string
    (Updatable) The OCID for firmware bundle
    RecycleLevel string
    (Updatable) 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
    (Updatable) Either the platform name or compute shape that the configuration is targeting
    FirmwareBundleId string
    (Updatable) The OCID for firmware bundle
    RecycleLevel string
    (Updatable) 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
    (Updatable) Either the platform name or compute shape that the configuration is targeting
    firmwareBundleId String
    (Updatable) The OCID for firmware bundle
    recycleLevel String
    (Updatable) 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
    (Updatable) Either the platform name or compute shape that the configuration is targeting
    firmwareBundleId string
    (Updatable) The OCID for firmware bundle
    recycleLevel string
    (Updatable) 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
    (Updatable) Either the platform name or compute shape that the configuration is targeting
    firmware_bundle_id str
    (Updatable) The OCID for firmware bundle
    recycle_level str
    (Updatable) 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
    (Updatable) Either the platform name or compute shape that the configuration is targeting
    firmwareBundleId String
    (Updatable) The OCID for firmware bundle
    recycleLevel String
    (Updatable) 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
    (Updatable) Either the platform name or compute shape that the configuration is targeting

    Import

    ComputeHostGroups can be imported using the id, e.g.

    $ pulumi import oci:Core/computeHostGroup:ComputeHostGroup test_compute_host_group "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    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 v3.3.0 published on Thursday, Jul 17, 2025 by Pulumi