1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getDynamicSet
Viewing docs for Oracle Cloud Infrastructure v4.7.0
published on Thursday, Apr 16, 2026 by Pulumi
oci logo
Viewing docs for Oracle Cloud Infrastructure v4.7.0
published on Thursday, Apr 16, 2026 by Pulumi

    This data source provides details about a specific Dynamic Set resource in Oracle Cloud Infrastructure Os Management Hub service.

    Gets information about the specified dynamic set.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDynamicSet = oci.OsManagementHub.getDynamicSet({
        dynamicSetId: testDynamicSetOciOsManagementHubDynamicSet.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_dynamic_set = oci.OsManagementHub.get_dynamic_set(dynamic_set_id=test_dynamic_set_oci_os_management_hub_dynamic_set["id"])
    
    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.GetDynamicSet(ctx, &osmanagementhub.GetDynamicSetArgs{
    			DynamicSetId: testDynamicSetOciOsManagementHubDynamicSet.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testDynamicSet = Oci.OsManagementHub.GetDynamicSet.Invoke(new()
        {
            DynamicSetId = testDynamicSetOciOsManagementHubDynamicSet.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.OsManagementHub.OsManagementHubFunctions;
    import com.pulumi.oci.OsManagementHub.inputs.GetDynamicSetArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var testDynamicSet = OsManagementHubFunctions.getDynamicSet(GetDynamicSetArgs.builder()
                .dynamicSetId(testDynamicSetOciOsManagementHubDynamicSet.id())
                .build());
    
        }
    }
    
    variables:
      testDynamicSet:
        fn::invoke:
          function: oci:OsManagementHub:getDynamicSet
          arguments:
            dynamicSetId: ${testDynamicSetOciOsManagementHubDynamicSet.id}
    

    Using getDynamicSet

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDynamicSet(args: GetDynamicSetArgs, opts?: InvokeOptions): Promise<GetDynamicSetResult>
    function getDynamicSetOutput(args: GetDynamicSetOutputArgs, opts?: InvokeOptions): Output<GetDynamicSetResult>
    def get_dynamic_set(dynamic_set_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetDynamicSetResult
    def get_dynamic_set_output(dynamic_set_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetDynamicSetResult]
    func LookupDynamicSet(ctx *Context, args *LookupDynamicSetArgs, opts ...InvokeOption) (*LookupDynamicSetResult, error)
    func LookupDynamicSetOutput(ctx *Context, args *LookupDynamicSetOutputArgs, opts ...InvokeOption) LookupDynamicSetResultOutput

    > Note: This function is named LookupDynamicSet in the Go SDK.

    public static class GetDynamicSet 
    {
        public static Task<GetDynamicSetResult> InvokeAsync(GetDynamicSetArgs args, InvokeOptions? opts = null)
        public static Output<GetDynamicSetResult> Invoke(GetDynamicSetInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDynamicSetResult> getDynamicSet(GetDynamicSetArgs args, InvokeOptions options)
    public static Output<GetDynamicSetResult> getDynamicSet(GetDynamicSetArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:OsManagementHub/getDynamicSet:getDynamicSet
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DynamicSetId string
    The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
    DynamicSetId string
    The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
    dynamicSetId String
    The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
    dynamicSetId string
    The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
    dynamic_set_id str
    The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
    dynamicSetId String
    The OCID of the dynamic set. This filter returns resources associated with this dynamic set.

    getDynamicSet Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment.
    DefinedTags 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"}
    Description string
    User-specified description for the dynamic set.
    DisplayName string
    User-friendly name for the dynamic set.
    DynamicSetId string
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the dynamic set.
    MatchType string
    Include either any or all attributes.
    MatchingRules List<GetDynamicSetMatchingRule>
    An object that defines the set of rules that identifies the target instances in a dynamic set.
    ScheduledJobCount string
    Number of scheduled jobs currently targeting this dynamic set.
    State string
    The current state of the event.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TargetCompartments List<GetDynamicSetTargetCompartment>
    The list of compartment details.
    TimeCreated string
    The date and time the dynamic set was created (in RFC 3339 format).
    TimeUpdated string
    The date and time the dynamic set was last updated (in RFC 3339 format).
    CompartmentId string
    The OCID of the compartment.
    DefinedTags 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"}
    Description string
    User-specified description for the dynamic set.
    DisplayName string
    User-friendly name for the dynamic set.
    DynamicSetId string
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the dynamic set.
    MatchType string
    Include either any or all attributes.
    MatchingRules []GetDynamicSetMatchingRule
    An object that defines the set of rules that identifies the target instances in a dynamic set.
    ScheduledJobCount string
    Number of scheduled jobs currently targeting this dynamic set.
    State string
    The current state of the event.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TargetCompartments []GetDynamicSetTargetCompartment
    The list of compartment details.
    TimeCreated string
    The date and time the dynamic set was created (in RFC 3339 format).
    TimeUpdated string
    The date and time the dynamic set was last updated (in RFC 3339 format).
    compartmentId String
    The OCID of the compartment.
    definedTags 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"}
    description String
    User-specified description for the dynamic set.
    displayName String
    User-friendly name for the dynamic set.
    dynamicSetId String
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the dynamic set.
    matchType String
    Include either any or all attributes.
    matchingRules List<GetDynamicSetMatchingRule>
    An object that defines the set of rules that identifies the target instances in a dynamic set.
    scheduledJobCount String
    Number of scheduled jobs currently targeting this dynamic set.
    state String
    The current state of the event.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetCompartments List<GetDynamicSetTargetCompartment>
    The list of compartment details.
    timeCreated String
    The date and time the dynamic set was created (in RFC 3339 format).
    timeUpdated String
    The date and time the dynamic set was last updated (in RFC 3339 format).
    compartmentId string
    The OCID of the compartment.
    definedTags {[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"}
    description string
    User-specified description for the dynamic set.
    displayName string
    User-friendly name for the dynamic set.
    dynamicSetId string
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The OCID of the dynamic set.
    matchType string
    Include either any or all attributes.
    matchingRules GetDynamicSetMatchingRule[]
    An object that defines the set of rules that identifies the target instances in a dynamic set.
    scheduledJobCount string
    Number of scheduled jobs currently targeting this dynamic set.
    state string
    The current state of the event.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetCompartments GetDynamicSetTargetCompartment[]
    The list of compartment details.
    timeCreated string
    The date and time the dynamic set was created (in RFC 3339 format).
    timeUpdated string
    The date and time the dynamic set was last updated (in RFC 3339 format).
    compartment_id str
    The OCID of the compartment.
    defined_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"}
    description str
    User-specified description for the dynamic set.
    display_name str
    User-friendly name for the dynamic set.
    dynamic_set_id str
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    The OCID of the dynamic set.
    match_type str
    Include either any or all attributes.
    matching_rules Sequence[GetDynamicSetMatchingRule]
    An object that defines the set of rules that identifies the target instances in a dynamic set.
    scheduled_job_count str
    Number of scheduled jobs currently targeting this dynamic set.
    state str
    The current state of the event.
    system_tags 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[GetDynamicSetTargetCompartment]
    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).
    compartmentId String
    The OCID of the compartment.
    definedTags 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"}
    description String
    User-specified description for the dynamic set.
    displayName String
    User-friendly name for the dynamic set.
    dynamicSetId String
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the dynamic set.
    matchType String
    Include either any or all attributes.
    matchingRules List<Property Map>
    An object that defines the set of rules that identifies the target instances in a dynamic set.
    scheduledJobCount String
    Number of scheduled jobs currently targeting this dynamic set.
    state String
    The current state of the event.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetCompartments List<Property Map>
    The list of compartment details.
    timeCreated String
    The date and time the dynamic set was created (in RFC 3339 format).
    timeUpdated String
    The date and time the dynamic set was last updated (in RFC 3339 format).

    Supporting Types

    GetDynamicSetMatchingRule

    Architectures List<string>
    The list of managed instance architectures.
    DisplayNames List<string>
    The list of managed instance display names.
    IsRebootRequired bool
    Indicates if the managed instance needs to be rebooted.
    Locations List<string>
    The list of managed instance locations.
    ManagedInstanceGroupIds List<string>
    The list of managed instance group IDs.
    ManagedInstanceIds List<string>
    The list of managed instance ids.
    OsFamilies List<string>
    The list of managed instance OS families.
    OsNames List<string>
    The list of managed instance OS names.
    Statuses List<string>
    The list of managed instance statuses.
    Tags List<GetDynamicSetMatchingRuleTag>
    The list of the managed instance tags.
    Architectures []string
    The list of managed instance architectures.
    DisplayNames []string
    The list of managed instance display names.
    IsRebootRequired bool
    Indicates if the managed instance needs to be rebooted.
    Locations []string
    The list of managed instance locations.
    ManagedInstanceGroupIds []string
    The list of managed instance group IDs.
    ManagedInstanceIds []string
    The list of managed instance ids.
    OsFamilies []string
    The list of managed instance OS families.
    OsNames []string
    The list of managed instance OS names.
    Statuses []string
    The list of managed instance statuses.
    Tags []GetDynamicSetMatchingRuleTag
    The list of the managed instance tags.
    architectures List<String>
    The list of managed instance architectures.
    displayNames List<String>
    The list of managed instance display names.
    isRebootRequired Boolean
    Indicates if the managed instance needs to be rebooted.
    locations List<String>
    The list of managed instance locations.
    managedInstanceGroupIds List<String>
    The list of managed instance group IDs.
    managedInstanceIds List<String>
    The list of managed instance ids.
    osFamilies List<String>
    The list of managed instance OS families.
    osNames List<String>
    The list of managed instance OS names.
    statuses List<String>
    The list of managed instance statuses.
    tags List<GetDynamicSetMatchingRuleTag>
    The list of the managed instance tags.
    architectures string[]
    The list of managed instance architectures.
    displayNames string[]
    The list of managed instance display names.
    isRebootRequired boolean
    Indicates if the managed instance needs to be rebooted.
    locations string[]
    The list of managed instance locations.
    managedInstanceGroupIds string[]
    The list of managed instance group IDs.
    managedInstanceIds string[]
    The list of managed instance ids.
    osFamilies string[]
    The list of managed instance OS families.
    osNames string[]
    The list of managed instance OS names.
    statuses string[]
    The list of managed instance statuses.
    tags GetDynamicSetMatchingRuleTag[]
    The list of the managed instance tags.
    architectures Sequence[str]
    The list of managed instance architectures.
    display_names Sequence[str]
    The list of managed instance display names.
    is_reboot_required bool
    Indicates if the managed instance needs to be rebooted.
    locations Sequence[str]
    The list of managed instance locations.
    managed_instance_group_ids Sequence[str]
    The list of managed instance group IDs.
    managed_instance_ids Sequence[str]
    The list of managed instance ids.
    os_families Sequence[str]
    The list of managed instance OS families.
    os_names Sequence[str]
    The list of managed instance OS names.
    statuses Sequence[str]
    The list of managed instance statuses.
    tags Sequence[GetDynamicSetMatchingRuleTag]
    The list of the managed instance tags.
    architectures List<String>
    The list of managed instance architectures.
    displayNames List<String>
    The list of managed instance display names.
    isRebootRequired Boolean
    Indicates if the managed instance needs to be rebooted.
    locations List<String>
    The list of managed instance locations.
    managedInstanceGroupIds List<String>
    The list of managed instance group IDs.
    managedInstanceIds List<String>
    The list of managed instance ids.
    osFamilies List<String>
    The list of managed instance OS families.
    osNames List<String>
    The list of managed instance OS names.
    statuses List<String>
    The list of managed instance statuses.
    tags List<Property Map>
    The list of the managed instance tags.

    GetDynamicSetMatchingRuleTag

    Key string
    The key of the tag.
    Namespace string
    The namespace of the tag.
    Type string
    The type of the tag. Common values include defined or freeform.
    Value string
    The value associated with the tag key.
    Key string
    The key of the tag.
    Namespace string
    The namespace of the tag.
    Type string
    The type of the tag. Common values include defined or freeform.
    Value string
    The value associated with the tag key.
    key String
    The key of the tag.
    namespace String
    The namespace of the tag.
    type String
    The type of the tag. Common values include defined or freeform.
    value String
    The value associated with the tag key.
    key string
    The key of the tag.
    namespace string
    The namespace of the tag.
    type string
    The type of the tag. Common values include defined or freeform.
    value string
    The value associated with the tag key.
    key str
    The key of the tag.
    namespace str
    The namespace of the tag.
    type str
    The type of the tag. Common values include defined or freeform.
    value str
    The value associated with the tag key.
    key String
    The key of the tag.
    namespace String
    The namespace of the tag.
    type String
    The type of the tag. Common values include defined or freeform.
    value String
    The value associated with the tag key.

    GetDynamicSetTargetCompartment

    CompartmentId string
    The OCID of the compartment.
    DoesIncludeChildren bool
    Indicates if the child compartments are included in the matching rule.
    CompartmentId string
    The OCID of the compartment.
    DoesIncludeChildren bool
    Indicates if the child compartments are included in the matching rule.
    compartmentId String
    The OCID of the compartment.
    doesIncludeChildren Boolean
    Indicates if the child compartments are included in the matching rule.
    compartmentId string
    The OCID of the compartment.
    doesIncludeChildren boolean
    Indicates if the child compartments are included in the matching rule.
    compartment_id str
    The OCID of the compartment.
    does_include_children bool
    Indicates if the child compartments are included in the matching rule.
    compartmentId String
    The OCID of the compartment.
    doesIncludeChildren Boolean
    Indicates if the child compartments are included in the matching rule.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.7.0
    published on Thursday, Apr 16, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.