published on Friday, Apr 24, 2026 by Pulumi
published on Friday, Apr 24, 2026 by Pulumi
This resource provides the Dynamic Set resource in Oracle Cloud Infrastructure Os Management Hub service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/osmh/latest/DynamicSet
Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/os_management_hub
Creates a new dynamic set.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDynamicSet = new oci.osmanagementhub.DynamicSet("test_dynamic_set", {
compartmentId: compartmentId,
matchType: dynamicSetMatchType,
matchingRule: {
architectures: dynamicSetMatchingRuleArchitectures,
displayNames: dynamicSetMatchingRuleDisplayNames,
isRebootRequired: dynamicSetMatchingRuleIsRebootRequired,
locations: dynamicSetMatchingRuleLocations,
managedInstanceGroupIds: dynamicSetMatchingRuleManagedInstanceGroupIds,
managedInstanceIds: dynamicSetMatchingRuleManagedInstanceIds,
osFamilies: dynamicSetMatchingRuleOsFamilies,
osNames: dynamicSetMatchingRuleOsNames,
statuses: dynamicSetMatchingRuleStatuses,
tags: [{
type: dynamicSetMatchingRuleTagsType,
key: dynamicSetMatchingRuleTagsKey,
namespace: dynamicSetMatchingRuleTagsNamespace,
value: dynamicSetMatchingRuleTagsValue,
}],
},
targetCompartments: [{
compartmentId: compartmentId,
doesIncludeChildren: dynamicSetTargetCompartmentsDoesIncludeChildren,
}],
definedTags: {
"Operations.CostCenter": "42",
},
description: dynamicSetDescription,
displayName: dynamicSetDisplayName,
freeformTags: {
Department: "Finance",
},
});
import pulumi
import pulumi_oci as oci
test_dynamic_set = oci.osmanagementhub.DynamicSet("test_dynamic_set",
compartment_id=compartment_id,
match_type=dynamic_set_match_type,
matching_rule={
"architectures": dynamic_set_matching_rule_architectures,
"display_names": dynamic_set_matching_rule_display_names,
"is_reboot_required": dynamic_set_matching_rule_is_reboot_required,
"locations": dynamic_set_matching_rule_locations,
"managed_instance_group_ids": dynamic_set_matching_rule_managed_instance_group_ids,
"managed_instance_ids": dynamic_set_matching_rule_managed_instance_ids,
"os_families": dynamic_set_matching_rule_os_families,
"os_names": dynamic_set_matching_rule_os_names,
"statuses": dynamic_set_matching_rule_statuses,
"tags": [{
"type": dynamic_set_matching_rule_tags_type,
"key": dynamic_set_matching_rule_tags_key,
"namespace": dynamic_set_matching_rule_tags_namespace,
"value": dynamic_set_matching_rule_tags_value,
}],
},
target_compartments=[{
"compartment_id": compartment_id,
"does_include_children": dynamic_set_target_compartments_does_include_children,
}],
defined_tags={
"Operations.CostCenter": "42",
},
description=dynamic_set_description,
display_name=dynamic_set_display_name,
freeform_tags={
"Department": "Finance",
})
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/osmanagementhub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := osmanagementhub.NewDynamicSet(ctx, "test_dynamic_set", &osmanagementhub.DynamicSetArgs{
CompartmentId: pulumi.Any(compartmentId),
MatchType: pulumi.Any(dynamicSetMatchType),
MatchingRule: &osmanagementhub.DynamicSetMatchingRuleArgs{
Architectures: pulumi.Any(dynamicSetMatchingRuleArchitectures),
DisplayNames: pulumi.Any(dynamicSetMatchingRuleDisplayNames),
IsRebootRequired: pulumi.Any(dynamicSetMatchingRuleIsRebootRequired),
Locations: pulumi.Any(dynamicSetMatchingRuleLocations),
ManagedInstanceGroupIds: pulumi.Any(dynamicSetMatchingRuleManagedInstanceGroupIds),
ManagedInstanceIds: pulumi.Any(dynamicSetMatchingRuleManagedInstanceIds),
OsFamilies: pulumi.Any(dynamicSetMatchingRuleOsFamilies),
OsNames: pulumi.Any(dynamicSetMatchingRuleOsNames),
Statuses: pulumi.Any(dynamicSetMatchingRuleStatuses),
Tags: osmanagementhub.DynamicSetMatchingRuleTagArray{
&osmanagementhub.DynamicSetMatchingRuleTagArgs{
Type: pulumi.Any(dynamicSetMatchingRuleTagsType),
Key: pulumi.Any(dynamicSetMatchingRuleTagsKey),
Namespace: pulumi.Any(dynamicSetMatchingRuleTagsNamespace),
Value: pulumi.Any(dynamicSetMatchingRuleTagsValue),
},
},
},
TargetCompartments: osmanagementhub.DynamicSetTargetCompartmentArray{
&osmanagementhub.DynamicSetTargetCompartmentArgs{
CompartmentId: pulumi.Any(compartmentId),
DoesIncludeChildren: pulumi.Any(dynamicSetTargetCompartmentsDoesIncludeChildren),
},
},
DefinedTags: pulumi.StringMap{
"Operations.CostCenter": pulumi.String("42"),
},
Description: pulumi.Any(dynamicSetDescription),
DisplayName: pulumi.Any(dynamicSetDisplayName),
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 testDynamicSet = new Oci.OsManagementHub.DynamicSet("test_dynamic_set", new()
{
CompartmentId = compartmentId,
MatchType = dynamicSetMatchType,
MatchingRule = new Oci.OsManagementHub.Inputs.DynamicSetMatchingRuleArgs
{
Architectures = dynamicSetMatchingRuleArchitectures,
DisplayNames = dynamicSetMatchingRuleDisplayNames,
IsRebootRequired = dynamicSetMatchingRuleIsRebootRequired,
Locations = dynamicSetMatchingRuleLocations,
ManagedInstanceGroupIds = dynamicSetMatchingRuleManagedInstanceGroupIds,
ManagedInstanceIds = dynamicSetMatchingRuleManagedInstanceIds,
OsFamilies = dynamicSetMatchingRuleOsFamilies,
OsNames = dynamicSetMatchingRuleOsNames,
Statuses = dynamicSetMatchingRuleStatuses,
Tags = new[]
{
new Oci.OsManagementHub.Inputs.DynamicSetMatchingRuleTagArgs
{
Type = dynamicSetMatchingRuleTagsType,
Key = dynamicSetMatchingRuleTagsKey,
Namespace = dynamicSetMatchingRuleTagsNamespace,
Value = dynamicSetMatchingRuleTagsValue,
},
},
},
TargetCompartments = new[]
{
new Oci.OsManagementHub.Inputs.DynamicSetTargetCompartmentArgs
{
CompartmentId = compartmentId,
DoesIncludeChildren = dynamicSetTargetCompartmentsDoesIncludeChildren,
},
},
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
Description = dynamicSetDescription,
DisplayName = dynamicSetDisplayName,
FreeformTags =
{
{ "Department", "Finance" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OsManagementHub.DynamicSet;
import com.pulumi.oci.OsManagementHub.DynamicSetArgs;
import com.pulumi.oci.OsManagementHub.inputs.DynamicSetMatchingRuleArgs;
import com.pulumi.oci.OsManagementHub.inputs.DynamicSetTargetCompartmentArgs;
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 testDynamicSet = new DynamicSet("testDynamicSet", DynamicSetArgs.builder()
.compartmentId(compartmentId)
.matchType(dynamicSetMatchType)
.matchingRule(DynamicSetMatchingRuleArgs.builder()
.architectures(dynamicSetMatchingRuleArchitectures)
.displayNames(dynamicSetMatchingRuleDisplayNames)
.isRebootRequired(dynamicSetMatchingRuleIsRebootRequired)
.locations(dynamicSetMatchingRuleLocations)
.managedInstanceGroupIds(dynamicSetMatchingRuleManagedInstanceGroupIds)
.managedInstanceIds(dynamicSetMatchingRuleManagedInstanceIds)
.osFamilies(dynamicSetMatchingRuleOsFamilies)
.osNames(dynamicSetMatchingRuleOsNames)
.statuses(dynamicSetMatchingRuleStatuses)
.tags(DynamicSetMatchingRuleTagArgs.builder()
.type(dynamicSetMatchingRuleTagsType)
.key(dynamicSetMatchingRuleTagsKey)
.namespace(dynamicSetMatchingRuleTagsNamespace)
.value(dynamicSetMatchingRuleTagsValue)
.build())
.build())
.targetCompartments(DynamicSetTargetCompartmentArgs.builder()
.compartmentId(compartmentId)
.doesIncludeChildren(dynamicSetTargetCompartmentsDoesIncludeChildren)
.build())
.definedTags(Map.of("Operations.CostCenter", "42"))
.description(dynamicSetDescription)
.displayName(dynamicSetDisplayName)
.freeformTags(Map.of("Department", "Finance"))
.build());
}
}
resources:
testDynamicSet:
type: oci:OsManagementHub:DynamicSet
name: test_dynamic_set
properties:
compartmentId: ${compartmentId}
matchType: ${dynamicSetMatchType}
matchingRule:
architectures: ${dynamicSetMatchingRuleArchitectures}
displayNames: ${dynamicSetMatchingRuleDisplayNames}
isRebootRequired: ${dynamicSetMatchingRuleIsRebootRequired}
locations: ${dynamicSetMatchingRuleLocations}
managedInstanceGroupIds: ${dynamicSetMatchingRuleManagedInstanceGroupIds}
managedInstanceIds: ${dynamicSetMatchingRuleManagedInstanceIds}
osFamilies: ${dynamicSetMatchingRuleOsFamilies}
osNames: ${dynamicSetMatchingRuleOsNames}
statuses: ${dynamicSetMatchingRuleStatuses}
tags:
- type: ${dynamicSetMatchingRuleTagsType}
key: ${dynamicSetMatchingRuleTagsKey}
namespace: ${dynamicSetMatchingRuleTagsNamespace}
value: ${dynamicSetMatchingRuleTagsValue}
targetCompartments:
- compartmentId: ${compartmentId}
doesIncludeChildren: ${dynamicSetTargetCompartmentsDoesIncludeChildren}
definedTags:
Operations.CostCenter: '42'
description: ${dynamicSetDescription}
displayName: ${dynamicSetDisplayName}
freeformTags:
Department: Finance
Create DynamicSet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DynamicSet(name: string, args: DynamicSetArgs, opts?: CustomResourceOptions);@overload
def DynamicSet(resource_name: str,
args: DynamicSetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DynamicSet(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
match_type: Optional[str] = None,
matching_rule: Optional[DynamicSetMatchingRuleArgs] = None,
target_compartments: Optional[Sequence[DynamicSetTargetCompartmentArgs]] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None)func NewDynamicSet(ctx *Context, name string, args DynamicSetArgs, opts ...ResourceOption) (*DynamicSet, error)public DynamicSet(string name, DynamicSetArgs args, CustomResourceOptions? opts = null)
public DynamicSet(String name, DynamicSetArgs args)
public DynamicSet(String name, DynamicSetArgs args, CustomResourceOptions options)
type: oci:OsManagementHub:DynamicSet
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 DynamicSetArgs
- 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 DynamicSetArgs
- 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 DynamicSetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DynamicSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DynamicSetArgs
- 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 dynamicSetResource = new Oci.OsManagementHub.DynamicSet("dynamicSetResource", new()
{
CompartmentId = "string",
MatchType = "string",
MatchingRule = new Oci.OsManagementHub.Inputs.DynamicSetMatchingRuleArgs
{
Architectures = new[]
{
"string",
},
DisplayNames = new[]
{
"string",
},
IsRebootRequired = false,
Locations = new[]
{
"string",
},
ManagedInstanceGroupIds = new[]
{
"string",
},
ManagedInstanceIds = new[]
{
"string",
},
OsFamilies = new[]
{
"string",
},
OsNames = new[]
{
"string",
},
Statuses = new[]
{
"string",
},
Tags = new[]
{
new Oci.OsManagementHub.Inputs.DynamicSetMatchingRuleTagArgs
{
Type = "string",
Key = "string",
Namespace = "string",
Value = "string",
},
},
},
TargetCompartments = new[]
{
new Oci.OsManagementHub.Inputs.DynamicSetTargetCompartmentArgs
{
CompartmentId = "string",
DoesIncludeChildren = false,
},
},
DefinedTags =
{
{ "string", "string" },
},
Description = "string",
DisplayName = "string",
FreeformTags =
{
{ "string", "string" },
},
});
example, err := osmanagementhub.NewDynamicSet(ctx, "dynamicSetResource", &osmanagementhub.DynamicSetArgs{
CompartmentId: pulumi.String("string"),
MatchType: pulumi.String("string"),
MatchingRule: &osmanagementhub.DynamicSetMatchingRuleArgs{
Architectures: pulumi.StringArray{
pulumi.String("string"),
},
DisplayNames: pulumi.StringArray{
pulumi.String("string"),
},
IsRebootRequired: pulumi.Bool(false),
Locations: pulumi.StringArray{
pulumi.String("string"),
},
ManagedInstanceGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
ManagedInstanceIds: pulumi.StringArray{
pulumi.String("string"),
},
OsFamilies: pulumi.StringArray{
pulumi.String("string"),
},
OsNames: pulumi.StringArray{
pulumi.String("string"),
},
Statuses: pulumi.StringArray{
pulumi.String("string"),
},
Tags: osmanagementhub.DynamicSetMatchingRuleTagArray{
&osmanagementhub.DynamicSetMatchingRuleTagArgs{
Type: pulumi.String("string"),
Key: pulumi.String("string"),
Namespace: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
TargetCompartments: osmanagementhub.DynamicSetTargetCompartmentArray{
&osmanagementhub.DynamicSetTargetCompartmentArgs{
CompartmentId: pulumi.String("string"),
DoesIncludeChildren: pulumi.Bool(false),
},
},
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var dynamicSetResource = new DynamicSet("dynamicSetResource", DynamicSetArgs.builder()
.compartmentId("string")
.matchType("string")
.matchingRule(DynamicSetMatchingRuleArgs.builder()
.architectures("string")
.displayNames("string")
.isRebootRequired(false)
.locations("string")
.managedInstanceGroupIds("string")
.managedInstanceIds("string")
.osFamilies("string")
.osNames("string")
.statuses("string")
.tags(DynamicSetMatchingRuleTagArgs.builder()
.type("string")
.key("string")
.namespace("string")
.value("string")
.build())
.build())
.targetCompartments(DynamicSetTargetCompartmentArgs.builder()
.compartmentId("string")
.doesIncludeChildren(false)
.build())
.definedTags(Map.of("string", "string"))
.description("string")
.displayName("string")
.freeformTags(Map.of("string", "string"))
.build());
dynamic_set_resource = oci.osmanagementhub.DynamicSet("dynamicSetResource",
compartment_id="string",
match_type="string",
matching_rule={
"architectures": ["string"],
"display_names": ["string"],
"is_reboot_required": False,
"locations": ["string"],
"managed_instance_group_ids": ["string"],
"managed_instance_ids": ["string"],
"os_families": ["string"],
"os_names": ["string"],
"statuses": ["string"],
"tags": [{
"type": "string",
"key": "string",
"namespace": "string",
"value": "string",
}],
},
target_compartments=[{
"compartment_id": "string",
"does_include_children": False,
}],
defined_tags={
"string": "string",
},
description="string",
display_name="string",
freeform_tags={
"string": "string",
})
const dynamicSetResource = new oci.osmanagementhub.DynamicSet("dynamicSetResource", {
compartmentId: "string",
matchType: "string",
matchingRule: {
architectures: ["string"],
displayNames: ["string"],
isRebootRequired: false,
locations: ["string"],
managedInstanceGroupIds: ["string"],
managedInstanceIds: ["string"],
osFamilies: ["string"],
osNames: ["string"],
statuses: ["string"],
tags: [{
type: "string",
key: "string",
namespace: "string",
value: "string",
}],
},
targetCompartments: [{
compartmentId: "string",
doesIncludeChildren: false,
}],
definedTags: {
string: "string",
},
description: "string",
displayName: "string",
freeformTags: {
string: "string",
},
});
type: oci:OsManagementHub:DynamicSet
properties:
compartmentId: string
definedTags:
string: string
description: string
displayName: string
freeformTags:
string: string
matchType: string
matchingRule:
architectures:
- string
displayNames:
- string
isRebootRequired: false
locations:
- string
managedInstanceGroupIds:
- string
managedInstanceIds:
- string
osFamilies:
- string
osNames:
- string
statuses:
- string
tags:
- key: string
namespace: string
type: string
value: string
targetCompartments:
- compartmentId: string
doesIncludeChildren: false
DynamicSet 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 DynamicSet resource accepts the following input properties:
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the dynamic set.
- Match
Type string - (Updatable) Include either any or all attributes.
- Matching
Rule DynamicSet Matching Rule - (Updatable) An object that defines the set of rules that identifies the target instances in a dynamic set.
- Target
Compartments List<DynamicSet Target Compartment> - (Updatable) The list of compartment details.
- 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"} - Description string
- (Updatable) User-specified description for the dynamic set.
- Display
Name string - (Updatable) User-friendly name for the dynamic set.
- 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"}
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the dynamic set.
- Match
Type string - (Updatable) Include either any or all attributes.
- Matching
Rule DynamicSet Matching Rule Args - (Updatable) An object that defines the set of rules that identifies the target instances in a dynamic set.
- Target
Compartments []DynamicSet Target Compartment Args - (Updatable) The list of compartment details.
- 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"} - Description string
- (Updatable) User-specified description for the dynamic set.
- Display
Name string - (Updatable) User-friendly name for the dynamic set.
- 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"}
- compartment
Id String - (Updatable) The OCID of the compartment that contains the dynamic set.
- match
Type String - (Updatable) Include either any or all attributes.
- matching
Rule DynamicSet Matching Rule - (Updatable) An object that defines the set of rules that identifies the target instances in a dynamic set.
- target
Compartments List<DynamicSet Target Compartment> - (Updatable) The list of compartment details.
- 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"} - description String
- (Updatable) User-specified description for the dynamic set.
- display
Name String - (Updatable) User-friendly name for the dynamic set.
- 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"}
- compartment
Id string - (Updatable) The OCID of the compartment that contains the dynamic set.
- match
Type string - (Updatable) Include either any or all attributes.
- matching
Rule DynamicSet Matching Rule - (Updatable) An object that defines the set of rules that identifies the target instances in a dynamic set.
- target
Compartments DynamicSet Target Compartment[] - (Updatable) The list of compartment details.
- {[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"} - description string
- (Updatable) User-specified description for the dynamic set.
- display
Name string - (Updatable) User-friendly name for the dynamic set.
- {[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"}
- compartment_
id str - (Updatable) The OCID of the compartment that contains the dynamic set.
- match_
type str - (Updatable) Include either any or all attributes.
- matching_
rule DynamicSet Matching Rule Args - (Updatable) An object that defines the set of rules that identifies the target instances in a dynamic set.
- target_
compartments Sequence[DynamicSet Target Compartment Args] - (Updatable) The list of compartment details.
- 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"} - description str
- (Updatable) User-specified description for the dynamic set.
- display_
name str - (Updatable) User-friendly name for the dynamic set.
- 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"}
- compartment
Id String - (Updatable) The OCID of the compartment that contains the dynamic set.
- match
Type String - (Updatable) Include either any or all attributes.
- matching
Rule Property Map - (Updatable) An object that defines the set of rules that identifies the target instances in a dynamic set.
- target
Compartments List<Property Map> - (Updatable) The list of compartment details.
- 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"} - description String
- (Updatable) User-specified description for the dynamic set.
- display
Name String - (Updatable) User-friendly name for the dynamic set.
- 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 DynamicSet resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Scheduled
Job stringCount - Number of scheduled jobs currently targeting this dynamic set.
- State string
- The current state of the event.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the dynamic set was created (in RFC 3339 format).
- Time
Updated string - The date and time the dynamic set was last updated (in RFC 3339 format).
- Id string
- The provider-assigned unique ID for this managed resource.
- Scheduled
Job stringCount - Number of scheduled jobs currently targeting this dynamic set.
- State string
- The current state of the event.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the dynamic set was created (in RFC 3339 format).
- Time
Updated string - The date and time the dynamic set was last updated (in RFC 3339 format).
- id String
- The provider-assigned unique ID for this managed resource.
- scheduled
Job StringCount - Number of scheduled jobs currently targeting this dynamic set.
- state String
- The current state of the event.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the dynamic set was created (in RFC 3339 format).
- time
Updated String - The date and time the dynamic set was last updated (in RFC 3339 format).
- id string
- The provider-assigned unique ID for this managed resource.
- scheduled
Job stringCount - Number of scheduled jobs currently targeting this dynamic set.
- state string
- The current state of the event.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The date and time the dynamic set was created (in RFC 3339 format).
- time
Updated string - The date and time the dynamic set was last updated (in RFC 3339 format).
- id str
- The provider-assigned unique ID for this managed resource.
- scheduled_
job_ strcount - Number of scheduled jobs currently targeting this dynamic set.
- state str
- The current state of the event.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - The date and time the dynamic set was created (in RFC 3339 format).
- time_
updated str - The date and time the dynamic set was last updated (in RFC 3339 format).
- id String
- The provider-assigned unique ID for this managed resource.
- scheduled
Job StringCount - Number of scheduled jobs currently targeting this dynamic set.
- state String
- The current state of the event.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the dynamic set was created (in RFC 3339 format).
- time
Updated String - The date and time the dynamic set was last updated (in RFC 3339 format).
Look up Existing DynamicSet Resource
Get an existing DynamicSet 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?: DynamicSetState, opts?: CustomResourceOptions): DynamicSet@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
match_type: Optional[str] = None,
matching_rule: Optional[DynamicSetMatchingRuleArgs] = None,
scheduled_job_count: Optional[str] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
target_compartments: Optional[Sequence[DynamicSetTargetCompartmentArgs]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> DynamicSetfunc GetDynamicSet(ctx *Context, name string, id IDInput, state *DynamicSetState, opts ...ResourceOption) (*DynamicSet, error)public static DynamicSet Get(string name, Input<string> id, DynamicSetState? state, CustomResourceOptions? opts = null)public static DynamicSet get(String name, Output<String> id, DynamicSetState state, CustomResourceOptions options)resources: _: type: oci:OsManagementHub:DynamicSet 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.
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the dynamic set.
- 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"} - Description string
- (Updatable) User-specified description for the dynamic set.
- Display
Name string - (Updatable) User-friendly name for the dynamic set.
- 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"} - Match
Type string - (Updatable) Include either any or all attributes.
- Matching
Rule DynamicSet Matching Rule - (Updatable) An object that defines the set of rules that identifies the target instances in a dynamic set.
- Scheduled
Job stringCount - Number of scheduled jobs currently targeting this dynamic set.
- State string
- The current state of the event.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Target
Compartments List<DynamicSet Target Compartment> - (Updatable) The list of compartment details.
- Time
Created string - The date and time the dynamic set was created (in RFC 3339 format).
- Time
Updated string - The date and time the dynamic set was last updated (in RFC 3339 format).
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the dynamic set.
- 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"} - Description string
- (Updatable) User-specified description for the dynamic set.
- Display
Name string - (Updatable) User-friendly name for the dynamic set.
- 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"} - Match
Type string - (Updatable) Include either any or all attributes.
- Matching
Rule DynamicSet Matching Rule Args - (Updatable) An object that defines the set of rules that identifies the target instances in a dynamic set.
- Scheduled
Job stringCount - Number of scheduled jobs currently targeting this dynamic set.
- State string
- The current state of the event.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Target
Compartments []DynamicSet Target Compartment Args - (Updatable) The list of compartment details.
- Time
Created string - The date and time the dynamic set was created (in RFC 3339 format).
- Time
Updated string - The date and time the dynamic set was last updated (in RFC 3339 format).
- compartment
Id String - (Updatable) The OCID of the compartment that contains the dynamic set.
- 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"} - description String
- (Updatable) User-specified description for the dynamic set.
- display
Name String - (Updatable) User-friendly name for the dynamic set.
- 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"} - match
Type String - (Updatable) Include either any or all attributes.
- matching
Rule DynamicSet Matching Rule - (Updatable) An object that defines the set of rules that identifies the target instances in a dynamic set.
- scheduled
Job StringCount - Number of scheduled jobs currently targeting this dynamic set.
- state String
- The current state of the event.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Compartments List<DynamicSet Target Compartment> - (Updatable) The list of compartment details.
- time
Created String - The date and time the dynamic set was created (in RFC 3339 format).
- time
Updated String - The date and time the dynamic set was last updated (in RFC 3339 format).
- compartment
Id string - (Updatable) The OCID of the compartment that contains the dynamic set.
- {[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"} - description string
- (Updatable) User-specified description for the dynamic set.
- display
Name string - (Updatable) User-friendly name for the dynamic set.
- {[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"} - match
Type string - (Updatable) Include either any or all attributes.
- matching
Rule DynamicSet Matching Rule - (Updatable) An object that defines the set of rules that identifies the target instances in a dynamic set.
- scheduled
Job stringCount - Number of scheduled jobs currently targeting this dynamic set.
- state string
- The current state of the event.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Compartments DynamicSet Target Compartment[] - (Updatable) The list of compartment details.
- time
Created string - The date and time the dynamic set was created (in RFC 3339 format).
- time
Updated string - The date and time the dynamic set was last updated (in RFC 3339 format).
- compartment_
id str - (Updatable) The OCID of the compartment that contains the dynamic set.
- 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"} - description str
- (Updatable) User-specified description for the dynamic set.
- display_
name str - (Updatable) User-friendly name for the dynamic set.
- 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"} - match_
type str - (Updatable) Include either any or all attributes.
- matching_
rule DynamicSet Matching Rule Args - (Updatable) An object that defines the set of rules that identifies the target instances in a dynamic set.
- scheduled_
job_ strcount - Number of scheduled jobs currently targeting this dynamic set.
- state str
- The current state of the event.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - target_
compartments Sequence[DynamicSet Target Compartment Args] - (Updatable) The list of compartment details.
- time_
created str - The date and time the dynamic set was created (in RFC 3339 format).
- time_
updated str - The date and time the dynamic set was last updated (in RFC 3339 format).
- compartment
Id String - (Updatable) The OCID of the compartment that contains the dynamic set.
- 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"} - description String
- (Updatable) User-specified description for the dynamic set.
- display
Name String - (Updatable) User-friendly name for the dynamic set.
- 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"} - match
Type String - (Updatable) Include either any or all attributes.
- matching
Rule Property Map - (Updatable) An object that defines the set of rules that identifies the target instances in a dynamic set.
- scheduled
Job StringCount - Number of scheduled jobs currently targeting this dynamic set.
- state String
- The current state of the event.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Compartments List<Property Map> - (Updatable) The list of compartment details.
- time
Created String - The date and time the dynamic set was created (in RFC 3339 format).
- time
Updated String - The date and time the dynamic set was last updated (in RFC 3339 format).
Supporting Types
DynamicSetMatchingRule, DynamicSetMatchingRuleArgs
- Architectures List<string>
- (Updatable) The list of managed instance architectures.
- Display
Names List<string> - (Updatable) The list of managed instance display names.
- Is
Reboot boolRequired - (Updatable) Indicates if the managed instance needs to be rebooted.
- Locations List<string>
- (Updatable) The list of managed instance locations.
- Managed
Instance List<string>Group Ids - (Updatable) The list of managed instance group IDs.
- Managed
Instance List<string>Ids - (Updatable) The list of managed instance ids.
- Os
Families List<string> - (Updatable) The list of managed instance OS families.
- Os
Names List<string> - (Updatable) The list of managed instance OS names.
- Statuses List<string>
- (Updatable) The list of managed instance statuses.
-
List<Dynamic
Set Matching Rule Tag> - (Updatable) The list of the managed instance tags.
- Architectures []string
- (Updatable) The list of managed instance architectures.
- Display
Names []string - (Updatable) The list of managed instance display names.
- Is
Reboot boolRequired - (Updatable) Indicates if the managed instance needs to be rebooted.
- Locations []string
- (Updatable) The list of managed instance locations.
- Managed
Instance []stringGroup Ids - (Updatable) The list of managed instance group IDs.
- Managed
Instance []stringIds - (Updatable) The list of managed instance ids.
- Os
Families []string - (Updatable) The list of managed instance OS families.
- Os
Names []string - (Updatable) The list of managed instance OS names.
- Statuses []string
- (Updatable) The list of managed instance statuses.
-
[]Dynamic
Set Matching Rule Tag - (Updatable) The list of the managed instance tags.
- architectures List<String>
- (Updatable) The list of managed instance architectures.
- display
Names List<String> - (Updatable) The list of managed instance display names.
- is
Reboot BooleanRequired - (Updatable) Indicates if the managed instance needs to be rebooted.
- locations List<String>
- (Updatable) The list of managed instance locations.
- managed
Instance List<String>Group Ids - (Updatable) The list of managed instance group IDs.
- managed
Instance List<String>Ids - (Updatable) The list of managed instance ids.
- os
Families List<String> - (Updatable) The list of managed instance OS families.
- os
Names List<String> - (Updatable) The list of managed instance OS names.
- statuses List<String>
- (Updatable) The list of managed instance statuses.
-
List<Dynamic
Set Matching Rule Tag> - (Updatable) The list of the managed instance tags.
- architectures string[]
- (Updatable) The list of managed instance architectures.
- display
Names string[] - (Updatable) The list of managed instance display names.
- is
Reboot booleanRequired - (Updatable) Indicates if the managed instance needs to be rebooted.
- locations string[]
- (Updatable) The list of managed instance locations.
- managed
Instance string[]Group Ids - (Updatable) The list of managed instance group IDs.
- managed
Instance string[]Ids - (Updatable) The list of managed instance ids.
- os
Families string[] - (Updatable) The list of managed instance OS families.
- os
Names string[] - (Updatable) The list of managed instance OS names.
- statuses string[]
- (Updatable) The list of managed instance statuses.
-
Dynamic
Set Matching Rule Tag[] - (Updatable) The list of the managed instance tags.
- architectures Sequence[str]
- (Updatable) The list of managed instance architectures.
- display_
names Sequence[str] - (Updatable) The list of managed instance display names.
- is_
reboot_ boolrequired - (Updatable) Indicates if the managed instance needs to be rebooted.
- locations Sequence[str]
- (Updatable) The list of managed instance locations.
- managed_
instance_ Sequence[str]group_ ids - (Updatable) The list of managed instance group IDs.
- managed_
instance_ Sequence[str]ids - (Updatable) The list of managed instance ids.
- os_
families Sequence[str] - (Updatable) The list of managed instance OS families.
- os_
names Sequence[str] - (Updatable) The list of managed instance OS names.
- statuses Sequence[str]
- (Updatable) The list of managed instance statuses.
-
Sequence[Dynamic
Set Matching Rule Tag] - (Updatable) The list of the managed instance tags.
- architectures List<String>
- (Updatable) The list of managed instance architectures.
- display
Names List<String> - (Updatable) The list of managed instance display names.
- is
Reboot BooleanRequired - (Updatable) Indicates if the managed instance needs to be rebooted.
- locations List<String>
- (Updatable) The list of managed instance locations.
- managed
Instance List<String>Group Ids - (Updatable) The list of managed instance group IDs.
- managed
Instance List<String>Ids - (Updatable) The list of managed instance ids.
- os
Families List<String> - (Updatable) The list of managed instance OS families.
- os
Names List<String> - (Updatable) The list of managed instance OS names.
- statuses List<String>
- (Updatable) The list of managed instance statuses.
- List<Property Map>
- (Updatable) The list of the managed instance tags.
DynamicSetMatchingRuleTag, DynamicSetMatchingRuleTagArgs
DynamicSetTargetCompartment, DynamicSetTargetCompartmentArgs
- Compartment
Id string - (Updatable) The OCID of the compartment.
- Does
Include boolChildren (Updatable) Indicates if the child compartments are included in the matching rule.
** 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
- Compartment
Id string - (Updatable) The OCID of the compartment.
- Does
Include boolChildren (Updatable) Indicates if the child compartments are included in the matching rule.
** 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
- compartment
Id String - (Updatable) The OCID of the compartment.
- does
Include BooleanChildren (Updatable) Indicates if the child compartments are included in the matching rule.
** 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
- compartment
Id string - (Updatable) The OCID of the compartment.
- does
Include booleanChildren (Updatable) Indicates if the child compartments are included in the matching rule.
** 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
- compartment_
id str - (Updatable) The OCID of the compartment.
- does_
include_ boolchildren (Updatable) Indicates if the child compartments are included in the matching rule.
** 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
- compartment
Id String - (Updatable) The OCID of the compartment.
- does
Include BooleanChildren (Updatable) Indicates if the child compartments are included in the matching rule.
** 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
Import
DynamicSets can be imported using the id, e.g.
$ pulumi import oci:OsManagementHub/dynamicSet:DynamicSet test_dynamic_set "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
ociTerraform Provider.
published on Friday, Apr 24, 2026 by Pulumi
