Viewing docs for Oracle Cloud Infrastructure v4.7.0
published on Thursday, Apr 16, 2026 by Pulumi
published on Thursday, Apr 16, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.7.0
published on Thursday, Apr 16, 2026 by Pulumi
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 dictionaryThe following arguments are supported:
- Dynamic
Set stringId - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
- Dynamic
Set stringId - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
- dynamic
Set StringId - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
- dynamic
Set stringId - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
- dynamic_
set_ strid - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
- dynamic
Set StringId - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
getDynamicSet Result
The following output properties are available:
- Compartment
Id string - The OCID of the 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 - User-friendly name for the dynamic set.
- Dynamic
Set stringId - 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 Set 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 Set 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.
- 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 - User-friendly name for the dynamic set.
- Dynamic
Set stringId - 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 Set 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 Set 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.
- 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 - User-friendly name for the dynamic set.
- dynamic
Set StringId - 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 Set 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 Set 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.
- {[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 - User-friendly name for the dynamic set.
- dynamic
Set stringId - {[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 Set 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 Set 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.
- 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_ strid - 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 Set 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 Set 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.
- 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 - User-friendly name for the dynamic set.
- dynamic
Set StringId - 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).
Supporting Types
GetDynamicSetMatchingRule
- 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 Set 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 Set 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 Set 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 Set 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 Set 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.
GetDynamicSetMatchingRuleTag
GetDynamicSetTargetCompartment
- Compartment
Id string - The OCID of the compartment.
- Does
Include boolChildren - Indicates if the child compartments are included in the matching rule.
- Compartment
Id string - The OCID of the compartment.
- Does
Include boolChildren - Indicates if the child compartments are included in the matching rule.
- compartment
Id String - The OCID of the compartment.
- does
Include BooleanChildren - Indicates if the child compartments are included in the matching rule.
- compartment
Id string - The OCID of the compartment.
- does
Include booleanChildren - Indicates if the child compartments are included in the matching rule.
- compartment_
id str - The OCID of the compartment.
- does_
include_ boolchildren - Indicates if the child compartments are included in the matching rule.
- compartment
Id String - The OCID of the compartment.
- does
Include BooleanChildren - 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
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.7.0
published on Thursday, Apr 16, 2026 by Pulumi
published on Thursday, Apr 16, 2026 by Pulumi
