oci.Core.ComputeHostGroup
Explore with Pulumi AI
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:
- Availability
Domain string - The availability domain of a host group. Example:
Uocm:PHX-AD-1
- Compartment
Id string - (Updatable) The OCID of the compartment that contains host group.
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Is
Targeted boolPlacement Required (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<Compute
Host Group Configuration> - (Updatable) A list of HostGroupConfiguration objects
- 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"}
- 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"}
- Availability
Domain string - The availability domain of a host group. Example:
Uocm:PHX-AD-1
- Compartment
Id string - (Updatable) The OCID of the compartment that contains host group.
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Is
Targeted boolPlacement Required (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
[]Compute
Host Group Configuration Args - (Updatable) A list of HostGroupConfiguration objects
- 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"}
- 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"}
- availability
Domain String - The availability domain of a host group. Example:
Uocm:PHX-AD-1
- compartment
Id String - (Updatable) The OCID of the compartment that contains host group.
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- is
Targeted BooleanPlacement Required (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<Compute
Host Group Configuration> - (Updatable) A list of HostGroupConfiguration objects
- 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"}
- 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"}
- availability
Domain string - The availability domain of a host group. Example:
Uocm:PHX-AD-1
- compartment
Id string - (Updatable) The OCID of the compartment that contains host group.
- display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- is
Targeted booleanPlacement Required (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
Compute
Host Group Configuration[] - (Updatable) A list of HostGroupConfiguration objects
- {[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"}
- {[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_ boolplacement_ required (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[Compute
Host Group Configuration Args] - (Updatable) A list of HostGroupConfiguration objects
- 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"}
- 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"}
- availability
Domain String - The availability domain of a host group. Example:
Uocm:PHX-AD-1
- compartment
Id String - (Updatable) The OCID of the compartment that contains host group.
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- is
Targeted BooleanPlacement Required (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
- 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"}
- 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
- 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
- Id string
- The provider-assigned unique ID for this managed resource.
- 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
- id String
- The provider-assigned unique ID for this managed resource.
- 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
- id string
- The provider-assigned unique ID for this managed resource.
- 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
- id str
- The provider-assigned unique ID for this managed resource.
- 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
- id String
- The provider-assigned unique ID for this managed resource.
- 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
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.
- Availability
Domain string - The availability domain of a host group. Example:
Uocm:PHX-AD-1
- Compartment
Id string - (Updatable) The OCID of the compartment that contains host group.
- Configurations
List<Compute
Host Group Configuration> - (Updatable) A list of HostGroupConfiguration objects
- 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"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- Is
Targeted boolPlacement Required (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
- 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 - (Updatable) The OCID of the compartment that contains host group.
- Configurations
[]Compute
Host Group Configuration Args - (Updatable) A list of HostGroupConfiguration objects
- 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"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- Is
Targeted boolPlacement Required (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
- 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 - (Updatable) The OCID of the compartment that contains host group.
- configurations
List<Compute
Host Group Configuration> - (Updatable) A list of HostGroupConfiguration objects
- 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"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- is
Targeted BooleanPlacement Required (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
- 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 - (Updatable) The OCID of the compartment that contains host group.
- configurations
Compute
Host Group Configuration[] - (Updatable) A list of HostGroupConfiguration objects
- {[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"}
- display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[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"}
- is
Targeted booleanPlacement Required (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
- {[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 - (Updatable) The OCID of the compartment that contains host group.
- configurations
Sequence[Compute
Host Group Configuration Args] - (Updatable) A list of HostGroupConfiguration objects
- 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.
- 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_ boolplacement_ required (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
- 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 - (Updatable) The OCID of the compartment that contains host group.
- configurations List<Property Map>
- (Updatable) A list of HostGroupConfiguration objects
- 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"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- is
Targeted BooleanPlacement Required (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
- 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
ComputeHostGroupConfiguration, ComputeHostGroupConfigurationArgs
- Firmware
Bundle stringId - (Updatable) The OCID for firmware bundle
- Recycle
Level 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 stringId - (Updatable) The OCID for firmware bundle
- Recycle
Level 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 StringId - (Updatable) The OCID for firmware bundle
- recycle
Level 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 stringId - (Updatable) The OCID for firmware bundle
- recycle
Level 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_ strid - (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
- firmware
Bundle StringId - (Updatable) The OCID for firmware bundle
- recycle
Level 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.