1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. DynamicSetUpdatePackagesManagement
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 resource provides the Dynamic Set Update Packages Management 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/UpdatePackages

    Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/os_management_hub

    Updates all installed software packages on managed instances in the dynamic set.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDynamicSetUpdatePackagesManagement = new oci.osmanagementhub.DynamicSetUpdatePackagesManagement("test_dynamic_set_update_packages_management", {
        dynamicSetId: testDynamicSet.id,
        managedInstances: dynamicSetUpdatePackagesManagementManagedInstances,
        updateTypes: dynamicSetUpdatePackagesManagementUpdateTypes,
        workRequestDetails: {
            description: dynamicSetUpdatePackagesManagementWorkRequestDetailsDescription,
            displayName: dynamicSetUpdatePackagesManagementWorkRequestDetailsDisplayName,
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_dynamic_set_update_packages_management = oci.osmanagementhub.DynamicSetUpdatePackagesManagement("test_dynamic_set_update_packages_management",
        dynamic_set_id=test_dynamic_set["id"],
        managed_instances=dynamic_set_update_packages_management_managed_instances,
        update_types=dynamic_set_update_packages_management_update_types,
        work_request_details={
            "description": dynamic_set_update_packages_management_work_request_details_description,
            "display_name": dynamic_set_update_packages_management_work_request_details_display_name,
        })
    
    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.NewDynamicSetUpdatePackagesManagement(ctx, "test_dynamic_set_update_packages_management", &osmanagementhub.DynamicSetUpdatePackagesManagementArgs{
    			DynamicSetId:     pulumi.Any(testDynamicSet.Id),
    			ManagedInstances: pulumi.Any(dynamicSetUpdatePackagesManagementManagedInstances),
    			UpdateTypes:      pulumi.Any(dynamicSetUpdatePackagesManagementUpdateTypes),
    			WorkRequestDetails: &osmanagementhub.DynamicSetUpdatePackagesManagementWorkRequestDetailsArgs{
    				Description: pulumi.Any(dynamicSetUpdatePackagesManagementWorkRequestDetailsDescription),
    				DisplayName: pulumi.Any(dynamicSetUpdatePackagesManagementWorkRequestDetailsDisplayName),
    			},
    		})
    		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 testDynamicSetUpdatePackagesManagement = new Oci.OsManagementHub.DynamicSetUpdatePackagesManagement("test_dynamic_set_update_packages_management", new()
        {
            DynamicSetId = testDynamicSet.Id,
            ManagedInstances = dynamicSetUpdatePackagesManagementManagedInstances,
            UpdateTypes = dynamicSetUpdatePackagesManagementUpdateTypes,
            WorkRequestDetails = new Oci.OsManagementHub.Inputs.DynamicSetUpdatePackagesManagementWorkRequestDetailsArgs
            {
                Description = dynamicSetUpdatePackagesManagementWorkRequestDetailsDescription,
                DisplayName = dynamicSetUpdatePackagesManagementWorkRequestDetailsDisplayName,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.OsManagementHub.DynamicSetUpdatePackagesManagement;
    import com.pulumi.oci.OsManagementHub.DynamicSetUpdatePackagesManagementArgs;
    import com.pulumi.oci.OsManagementHub.inputs.DynamicSetUpdatePackagesManagementWorkRequestDetailsArgs;
    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 testDynamicSetUpdatePackagesManagement = new DynamicSetUpdatePackagesManagement("testDynamicSetUpdatePackagesManagement", DynamicSetUpdatePackagesManagementArgs.builder()
                .dynamicSetId(testDynamicSet.id())
                .managedInstances(dynamicSetUpdatePackagesManagementManagedInstances)
                .updateTypes(dynamicSetUpdatePackagesManagementUpdateTypes)
                .workRequestDetails(DynamicSetUpdatePackagesManagementWorkRequestDetailsArgs.builder()
                    .description(dynamicSetUpdatePackagesManagementWorkRequestDetailsDescription)
                    .displayName(dynamicSetUpdatePackagesManagementWorkRequestDetailsDisplayName)
                    .build())
                .build());
    
        }
    }
    
    resources:
      testDynamicSetUpdatePackagesManagement:
        type: oci:OsManagementHub:DynamicSetUpdatePackagesManagement
        name: test_dynamic_set_update_packages_management
        properties:
          dynamicSetId: ${testDynamicSet.id}
          managedInstances: ${dynamicSetUpdatePackagesManagementManagedInstances}
          updateTypes: ${dynamicSetUpdatePackagesManagementUpdateTypes}
          workRequestDetails:
            description: ${dynamicSetUpdatePackagesManagementWorkRequestDetailsDescription}
            displayName: ${dynamicSetUpdatePackagesManagementWorkRequestDetailsDisplayName}
    

    Create DynamicSetUpdatePackagesManagement Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DynamicSetUpdatePackagesManagement(name: string, args: DynamicSetUpdatePackagesManagementArgs, opts?: CustomResourceOptions);
    @overload
    def DynamicSetUpdatePackagesManagement(resource_name: str,
                                           args: DynamicSetUpdatePackagesManagementArgs,
                                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def DynamicSetUpdatePackagesManagement(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           dynamic_set_id: Optional[str] = None,
                                           managed_instances: Optional[Sequence[str]] = None,
                                           update_types: Optional[Sequence[str]] = None,
                                           work_request_details: Optional[DynamicSetUpdatePackagesManagementWorkRequestDetailsArgs] = None)
    func NewDynamicSetUpdatePackagesManagement(ctx *Context, name string, args DynamicSetUpdatePackagesManagementArgs, opts ...ResourceOption) (*DynamicSetUpdatePackagesManagement, error)
    public DynamicSetUpdatePackagesManagement(string name, DynamicSetUpdatePackagesManagementArgs args, CustomResourceOptions? opts = null)
    public DynamicSetUpdatePackagesManagement(String name, DynamicSetUpdatePackagesManagementArgs args)
    public DynamicSetUpdatePackagesManagement(String name, DynamicSetUpdatePackagesManagementArgs args, CustomResourceOptions options)
    
    type: oci:OsManagementHub:DynamicSetUpdatePackagesManagement
    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 DynamicSetUpdatePackagesManagementArgs
    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 DynamicSetUpdatePackagesManagementArgs
    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 DynamicSetUpdatePackagesManagementArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DynamicSetUpdatePackagesManagementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DynamicSetUpdatePackagesManagementArgs
    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 dynamicSetUpdatePackagesManagementResource = new Oci.OsManagementHub.DynamicSetUpdatePackagesManagement("dynamicSetUpdatePackagesManagementResource", new()
    {
        DynamicSetId = "string",
        ManagedInstances = new[]
        {
            "string",
        },
        UpdateTypes = new[]
        {
            "string",
        },
        WorkRequestDetails = new Oci.OsManagementHub.Inputs.DynamicSetUpdatePackagesManagementWorkRequestDetailsArgs
        {
            Description = "string",
            DisplayName = "string",
        },
    });
    
    example, err := osmanagementhub.NewDynamicSetUpdatePackagesManagement(ctx, "dynamicSetUpdatePackagesManagementResource", &osmanagementhub.DynamicSetUpdatePackagesManagementArgs{
    	DynamicSetId: pulumi.String("string"),
    	ManagedInstances: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	UpdateTypes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	WorkRequestDetails: &osmanagementhub.DynamicSetUpdatePackagesManagementWorkRequestDetailsArgs{
    		Description: pulumi.String("string"),
    		DisplayName: pulumi.String("string"),
    	},
    })
    
    var dynamicSetUpdatePackagesManagementResource = new DynamicSetUpdatePackagesManagement("dynamicSetUpdatePackagesManagementResource", DynamicSetUpdatePackagesManagementArgs.builder()
        .dynamicSetId("string")
        .managedInstances("string")
        .updateTypes("string")
        .workRequestDetails(DynamicSetUpdatePackagesManagementWorkRequestDetailsArgs.builder()
            .description("string")
            .displayName("string")
            .build())
        .build());
    
    dynamic_set_update_packages_management_resource = oci.osmanagementhub.DynamicSetUpdatePackagesManagement("dynamicSetUpdatePackagesManagementResource",
        dynamic_set_id="string",
        managed_instances=["string"],
        update_types=["string"],
        work_request_details={
            "description": "string",
            "display_name": "string",
        })
    
    const dynamicSetUpdatePackagesManagementResource = new oci.osmanagementhub.DynamicSetUpdatePackagesManagement("dynamicSetUpdatePackagesManagementResource", {
        dynamicSetId: "string",
        managedInstances: ["string"],
        updateTypes: ["string"],
        workRequestDetails: {
            description: "string",
            displayName: "string",
        },
    });
    
    type: oci:OsManagementHub:DynamicSetUpdatePackagesManagement
    properties:
        dynamicSetId: string
        managedInstances:
            - string
        updateTypes:
            - string
        workRequestDetails:
            description: string
            displayName: string
    

    DynamicSetUpdatePackagesManagement 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 DynamicSetUpdatePackagesManagement resource accepts the following input properties:

    DynamicSetId string
    The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
    ManagedInstances List<string>
    The list of managed instance OCIDs to be attached/detached.
    UpdateTypes List<string>
    The types of updates to be applied.
    WorkRequestDetails DynamicSetUpdatePackagesManagementWorkRequestDetails
    Provides the name and description of the job.
    DynamicSetId string
    The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
    ManagedInstances []string
    The list of managed instance OCIDs to be attached/detached.
    UpdateTypes []string
    The types of updates to be applied.
    WorkRequestDetails DynamicSetUpdatePackagesManagementWorkRequestDetailsArgs
    Provides the name and description of the job.
    dynamicSetId String
    The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
    managedInstances List<String>
    The list of managed instance OCIDs to be attached/detached.
    updateTypes List<String>
    The types of updates to be applied.
    workRequestDetails DynamicSetUpdatePackagesManagementWorkRequestDetails
    Provides the name and description of the job.
    dynamicSetId string
    The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
    managedInstances string[]
    The list of managed instance OCIDs to be attached/detached.
    updateTypes string[]
    The types of updates to be applied.
    workRequestDetails DynamicSetUpdatePackagesManagementWorkRequestDetails
    Provides the name and description of the job.
    dynamic_set_id str
    The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
    managed_instances Sequence[str]
    The list of managed instance OCIDs to be attached/detached.
    update_types Sequence[str]
    The types of updates to be applied.
    work_request_details DynamicSetUpdatePackagesManagementWorkRequestDetailsArgs
    Provides the name and description of the job.
    dynamicSetId String
    The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
    managedInstances List<String>
    The list of managed instance OCIDs to be attached/detached.
    updateTypes List<String>
    The types of updates to be applied.
    workRequestDetails Property Map
    Provides the name and description of the job.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DynamicSetUpdatePackagesManagement resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DynamicSetUpdatePackagesManagement Resource

    Get an existing DynamicSetUpdatePackagesManagement 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?: DynamicSetUpdatePackagesManagementState, opts?: CustomResourceOptions): DynamicSetUpdatePackagesManagement
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dynamic_set_id: Optional[str] = None,
            managed_instances: Optional[Sequence[str]] = None,
            update_types: Optional[Sequence[str]] = None,
            work_request_details: Optional[DynamicSetUpdatePackagesManagementWorkRequestDetailsArgs] = None) -> DynamicSetUpdatePackagesManagement
    func GetDynamicSetUpdatePackagesManagement(ctx *Context, name string, id IDInput, state *DynamicSetUpdatePackagesManagementState, opts ...ResourceOption) (*DynamicSetUpdatePackagesManagement, error)
    public static DynamicSetUpdatePackagesManagement Get(string name, Input<string> id, DynamicSetUpdatePackagesManagementState? state, CustomResourceOptions? opts = null)
    public static DynamicSetUpdatePackagesManagement get(String name, Output<String> id, DynamicSetUpdatePackagesManagementState state, CustomResourceOptions options)
    resources:  _:    type: oci:OsManagementHub:DynamicSetUpdatePackagesManagement    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.
    The following state arguments are supported:
    DynamicSetId string
    The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
    ManagedInstances List<string>
    The list of managed instance OCIDs to be attached/detached.
    UpdateTypes List<string>
    The types of updates to be applied.
    WorkRequestDetails DynamicSetUpdatePackagesManagementWorkRequestDetails
    Provides the name and description of the job.
    DynamicSetId string
    The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
    ManagedInstances []string
    The list of managed instance OCIDs to be attached/detached.
    UpdateTypes []string
    The types of updates to be applied.
    WorkRequestDetails DynamicSetUpdatePackagesManagementWorkRequestDetailsArgs
    Provides the name and description of the job.
    dynamicSetId String
    The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
    managedInstances List<String>
    The list of managed instance OCIDs to be attached/detached.
    updateTypes List<String>
    The types of updates to be applied.
    workRequestDetails DynamicSetUpdatePackagesManagementWorkRequestDetails
    Provides the name and description of the job.
    dynamicSetId string
    The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
    managedInstances string[]
    The list of managed instance OCIDs to be attached/detached.
    updateTypes string[]
    The types of updates to be applied.
    workRequestDetails DynamicSetUpdatePackagesManagementWorkRequestDetails
    Provides the name and description of the job.
    dynamic_set_id str
    The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
    managed_instances Sequence[str]
    The list of managed instance OCIDs to be attached/detached.
    update_types Sequence[str]
    The types of updates to be applied.
    work_request_details DynamicSetUpdatePackagesManagementWorkRequestDetailsArgs
    Provides the name and description of the job.
    dynamicSetId String
    The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
    managedInstances List<String>
    The list of managed instance OCIDs to be attached/detached.
    updateTypes List<String>
    The types of updates to be applied.
    workRequestDetails Property Map
    Provides the name and description of the job.

    Supporting Types

    DynamicSetUpdatePackagesManagementWorkRequestDetails, DynamicSetUpdatePackagesManagementWorkRequestDetailsArgs

    Description string
    User-specified information about the job. Avoid entering confidential information.
    DisplayName string

    A user-friendly name for the job. The name does not have to be unique. Avoid entering confidential information.

    ** 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

    Description string
    User-specified information about the job. Avoid entering confidential information.
    DisplayName string

    A user-friendly name for the job. The name does not have to be unique. Avoid entering confidential information.

    ** 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

    description String
    User-specified information about the job. Avoid entering confidential information.
    displayName String

    A user-friendly name for the job. The name does not have to be unique. Avoid entering confidential information.

    ** 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

    description string
    User-specified information about the job. Avoid entering confidential information.
    displayName string

    A user-friendly name for the job. The name does not have to be unique. Avoid entering confidential information.

    ** 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

    description str
    User-specified information about the job. Avoid entering confidential information.
    display_name str

    A user-friendly name for the job. The name does not have to be unique. Avoid entering confidential information.

    ** 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

    description String
    User-specified information about the job. Avoid entering confidential information.
    displayName String

    A user-friendly name for the job. The name does not have to be unique. Avoid entering confidential information.

    ** 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

    DynamicSetUpdatePackagesManagement can be imported using the id, e.g.

    $ pulumi import oci:OsManagementHub/dynamicSetUpdatePackagesManagement:DynamicSetUpdatePackagesManagement test_dynamic_set_update_packages_management "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    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.