Viewing docs for Oracle Cloud Infrastructure v4.8.0
published on Friday, Apr 24, 2026 by Pulumi
published on Friday, Apr 24, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.8.0
published on Friday, Apr 24, 2026 by Pulumi
published on Friday, Apr 24, 2026 by Pulumi
This data source provides the list of Dynamic Sets in Oracle Cloud Infrastructure Os Management Hub service.
Lists dynamic sets that match the specified compartment or dynamic set OCID. Filter the list against a variety of criteria including but not limited to its name, status, architecture, and OS version.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDynamicSets = oci.OsManagementHub.getDynamicSets({
compartmentId: compartmentId,
displayName: dynamicSetDisplayName,
displayNameContains: dynamicSetDisplayNameContains,
dynamicSetId: testDynamicSet.id,
});
import pulumi
import pulumi_oci as oci
test_dynamic_sets = oci.OsManagementHub.get_dynamic_sets(compartment_id=compartment_id,
display_name=dynamic_set_display_name,
display_name_contains=dynamic_set_display_name_contains,
dynamic_set_id=test_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.GetDynamicSets(ctx, &osmanagementhub.GetDynamicSetsArgs{
CompartmentId: pulumi.StringRef(compartmentId),
DisplayName: pulumi.StringRef(dynamicSetDisplayName),
DisplayNameContains: pulumi.StringRef(dynamicSetDisplayNameContains),
DynamicSetId: pulumi.StringRef(testDynamicSet.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 testDynamicSets = Oci.OsManagementHub.GetDynamicSets.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = dynamicSetDisplayName,
DisplayNameContains = dynamicSetDisplayNameContains,
DynamicSetId = testDynamicSet.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.GetDynamicSetsArgs;
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 testDynamicSets = OsManagementHubFunctions.getDynamicSets(GetDynamicSetsArgs.builder()
.compartmentId(compartmentId)
.displayName(dynamicSetDisplayName)
.displayNameContains(dynamicSetDisplayNameContains)
.dynamicSetId(testDynamicSet.id())
.build());
}
}
variables:
testDynamicSets:
fn::invoke:
function: oci:OsManagementHub:getDynamicSets
arguments:
compartmentId: ${compartmentId}
displayName: ${dynamicSetDisplayName}
displayNameContains: ${dynamicSetDisplayNameContains}
dynamicSetId: ${testDynamicSet.id}
Using getDynamicSets
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 getDynamicSets(args: GetDynamicSetsArgs, opts?: InvokeOptions): Promise<GetDynamicSetsResult>
function getDynamicSetsOutput(args: GetDynamicSetsOutputArgs, opts?: InvokeOptions): Output<GetDynamicSetsResult>def get_dynamic_sets(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
display_name_contains: Optional[str] = None,
dynamic_set_id: Optional[str] = None,
filters: Optional[Sequence[GetDynamicSetsFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetDynamicSetsResult
def get_dynamic_sets_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
display_name_contains: Optional[pulumi.Input[str]] = None,
dynamic_set_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDynamicSetsFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDynamicSetsResult]func GetDynamicSets(ctx *Context, args *GetDynamicSetsArgs, opts ...InvokeOption) (*GetDynamicSetsResult, error)
func GetDynamicSetsOutput(ctx *Context, args *GetDynamicSetsOutputArgs, opts ...InvokeOption) GetDynamicSetsResultOutput> Note: This function is named GetDynamicSets in the Go SDK.
public static class GetDynamicSets
{
public static Task<GetDynamicSetsResult> InvokeAsync(GetDynamicSetsArgs args, InvokeOptions? opts = null)
public static Output<GetDynamicSetsResult> Invoke(GetDynamicSetsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDynamicSetsResult> getDynamicSets(GetDynamicSetsArgs args, InvokeOptions options)
public static Output<GetDynamicSetsResult> getDynamicSets(GetDynamicSetsArgs args, InvokeOptions options)
fn::invoke:
function: oci:OsManagementHub/getDynamicSets:getDynamicSets
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Display
Name string - A filter to return resources that match the given user-friendly name.
- Display
Name stringContains - A filter to return resources that may partially match the given display name.
- Dynamic
Set stringId - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
- Filters
List<Get
Dynamic Sets Filter>
- Compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Display
Name string - A filter to return resources that match the given user-friendly name.
- Display
Name stringContains - A filter to return resources that may partially match the given display name.
- Dynamic
Set stringId - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
- Filters
[]Get
Dynamic Sets Filter
- compartment
Id String - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- display
Name String - A filter to return resources that match the given user-friendly name.
- display
Name StringContains - A filter to return resources that may partially match the given display name.
- dynamic
Set StringId - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
- filters
List<Get
Dynamic Sets Filter>
- compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- display
Name string - A filter to return resources that match the given user-friendly name.
- display
Name stringContains - A filter to return resources that may partially match the given display name.
- dynamic
Set stringId - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
- filters
Get
Dynamic Sets Filter[]
- compartment_
id str - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- display_
name str - A filter to return resources that match the given user-friendly name.
- display_
name_ strcontains - A filter to return resources that may partially match the given display name.
- dynamic_
set_ strid - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
- filters
Sequence[Get
Dynamic Sets Filter]
- compartment
Id String - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- display
Name String - A filter to return resources that match the given user-friendly name.
- display
Name StringContains - A filter to return resources that may partially match the given display name.
- dynamic
Set StringId - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
- filters List<Property Map>
getDynamicSets Result
The following output properties are available:
- Dynamic
Set List<GetCollections Dynamic Sets Dynamic Set Collection> - The list of dynamic_set_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - User-friendly name for the dynamic set.
- Display
Name stringContains - Dynamic
Set stringId - Filters
List<Get
Dynamic Sets Filter>
- Dynamic
Set []GetCollections Dynamic Sets Dynamic Set Collection - The list of dynamic_set_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - User-friendly name for the dynamic set.
- Display
Name stringContains - Dynamic
Set stringId - Filters
[]Get
Dynamic Sets Filter
- dynamic
Set List<GetCollections Dynamic Sets Dynamic Set Collection> - The list of dynamic_set_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- compartment
Id String - The OCID of the compartment.
- display
Name String - User-friendly name for the dynamic set.
- display
Name StringContains - dynamic
Set StringId - filters
List<Get
Dynamic Sets Filter>
- dynamic
Set GetCollections Dynamic Sets Dynamic Set Collection[] - The list of dynamic_set_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- compartment
Id string - The OCID of the compartment.
- display
Name string - User-friendly name for the dynamic set.
- display
Name stringContains - dynamic
Set stringId - filters
Get
Dynamic Sets Filter[]
- dynamic_
set_ Sequence[Getcollections Dynamic Sets Dynamic Set Collection] - The list of dynamic_set_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- compartment_
id str - The OCID of the compartment.
- display_
name str - User-friendly name for the dynamic set.
- display_
name_ strcontains - dynamic_
set_ strid - filters
Sequence[Get
Dynamic Sets Filter]
- dynamic
Set List<Property Map>Collections - The list of dynamic_set_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- compartment
Id String - The OCID of the compartment.
- display
Name String - User-friendly name for the dynamic set.
- display
Name StringContains - dynamic
Set StringId - filters List<Property Map>
Supporting Types
GetDynamicSetsDynamicSetCollection
GetDynamicSetsDynamicSetCollectionItem
- Compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- 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.
- Display
Name string - A filter to return resources that match the given user-friendly name.
- 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.
- Match
Type string - Include either any or all attributes.
- Matching
Rules List<GetDynamic Sets Dynamic Set Collection Item Matching Rule> - 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<GetDynamic Sets Dynamic Set Collection Item Target Compartment> - 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 - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- 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.
- Display
Name string - A filter to return resources that match the given user-friendly name.
- 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.
- Match
Type string - Include either any or all attributes.
- Matching
Rules []GetDynamic Sets Dynamic Set Collection Item Matching Rule - 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 []GetDynamic Sets Dynamic Set Collection Item Target Compartment - 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 - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- 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.
- display
Name String - A filter to return resources that match the given user-friendly name.
- 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.
- match
Type String - Include either any or all attributes.
- matching
Rules List<GetDynamic Sets Dynamic Set Collection Item Matching Rule> - 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<GetDynamic Sets Dynamic Set Collection Item Target Compartment> - 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 - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- {[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.
- display
Name string - A filter to return resources that match the given user-friendly name.
- {[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.
- match
Type string - Include either any or all attributes.
- matching
Rules GetDynamic Sets Dynamic Set Collection Item Matching Rule[] - 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 GetDynamic Sets Dynamic Set Collection Item Target Compartment[] - 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 - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- 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 - A filter to return resources that match the given user-friendly name.
- 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[GetDynamic Sets Dynamic Set Collection Item Matching Rule] - 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[GetDynamic Sets Dynamic Set Collection Item Target Compartment] - 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 - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- 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.
- display
Name String - A filter to return resources that match the given user-friendly name.
- 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.
- match
Type String - Include either any or all attributes.
- matching
Rules List<Property Map> - 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> - 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).
GetDynamicSetsDynamicSetCollectionItemMatchingRule
- Architectures List<string>
- The list of managed instance architectures.
- Display
Names List<string> - The list of managed instance display names.
- Is
Reboot boolRequired - Indicates if the managed instance needs to be rebooted.
- Locations List<string>
- The list of managed instance locations.
- Managed
Instance List<string>Group Ids - The list of managed instance group IDs.
- Managed
Instance List<string>Ids - The list of managed instance ids.
- Os
Families List<string> - The list of managed instance OS families.
- Os
Names List<string> - The list of managed instance OS names.
- Statuses List<string>
- The list of managed instance statuses.
-
List<Get
Dynamic Sets Dynamic Set Collection Item Matching Rule Tag> - The list of the managed instance tags.
- Architectures []string
- The list of managed instance architectures.
- Display
Names []string - The list of managed instance display names.
- Is
Reboot boolRequired - Indicates if the managed instance needs to be rebooted.
- Locations []string
- The list of managed instance locations.
- Managed
Instance []stringGroup Ids - The list of managed instance group IDs.
- Managed
Instance []stringIds - The list of managed instance ids.
- Os
Families []string - The list of managed instance OS families.
- Os
Names []string - The list of managed instance OS names.
- Statuses []string
- The list of managed instance statuses.
-
[]Get
Dynamic Sets Dynamic Set Collection Item Matching Rule Tag - The list of the managed instance tags.
- architectures List<String>
- The list of managed instance architectures.
- display
Names List<String> - The list of managed instance display names.
- is
Reboot BooleanRequired - Indicates if the managed instance needs to be rebooted.
- locations List<String>
- The list of managed instance locations.
- managed
Instance List<String>Group Ids - The list of managed instance group IDs.
- managed
Instance List<String>Ids - The list of managed instance ids.
- os
Families List<String> - The list of managed instance OS families.
- os
Names List<String> - The list of managed instance OS names.
- statuses List<String>
- The list of managed instance statuses.
-
List<Get
Dynamic Sets Dynamic Set Collection Item Matching Rule Tag> - The list of the managed instance tags.
- architectures string[]
- The list of managed instance architectures.
- display
Names string[] - The list of managed instance display names.
- is
Reboot booleanRequired - Indicates if the managed instance needs to be rebooted.
- locations string[]
- The list of managed instance locations.
- managed
Instance string[]Group Ids - The list of managed instance group IDs.
- managed
Instance string[]Ids - The list of managed instance ids.
- os
Families string[] - The list of managed instance OS families.
- os
Names string[] - The list of managed instance OS names.
- statuses string[]
- The list of managed instance statuses.
-
Get
Dynamic Sets Dynamic Set Collection Item Matching Rule Tag[] - 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_ boolrequired - Indicates if the managed instance needs to be rebooted.
- locations Sequence[str]
- The list of managed instance locations.
- managed_
instance_ Sequence[str]group_ ids - The list of managed instance group IDs.
- managed_
instance_ Sequence[str]ids - 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.
-
Sequence[Get
Dynamic Sets Dynamic Set Collection Item Matching Rule Tag] - The list of the managed instance tags.
- architectures List<String>
- The list of managed instance architectures.
- display
Names List<String> - The list of managed instance display names.
- is
Reboot BooleanRequired - Indicates if the managed instance needs to be rebooted.
- locations List<String>
- The list of managed instance locations.
- managed
Instance List<String>Group Ids - The list of managed instance group IDs.
- managed
Instance List<String>Ids - The list of managed instance ids.
- os
Families List<String> - The list of managed instance OS families.
- os
Names List<String> - The list of managed instance OS names.
- statuses List<String>
- The list of managed instance statuses.
- List<Property Map>
- The list of the managed instance tags.
GetDynamicSetsDynamicSetCollectionItemMatchingRuleTag
GetDynamicSetsDynamicSetCollectionItemTargetCompartment
- Compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Does
Include boolChildren - Indicates if the child compartments are included in the matching rule.
- Compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Does
Include boolChildren - Indicates if the child compartments are included in the matching rule.
- compartment
Id String - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- does
Include BooleanChildren - Indicates if the child compartments are included in the matching rule.
- compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- does
Include booleanChildren - Indicates if the child compartments are included in the matching rule.
- compartment_
id str - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- does_
include_ boolchildren - Indicates if the child compartments are included in the matching rule.
- compartment
Id String - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- does
Include BooleanChildren - Indicates if the child compartments are included in the matching rule.
GetDynamicSetsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.8.0
published on Friday, Apr 24, 2026 by Pulumi
published on Friday, Apr 24, 2026 by Pulumi
