published on Thursday, Apr 16, 2026 by Pulumi
published on Thursday, Apr 16, 2026 by Pulumi
This resource provides the Dynamic Set Reboot 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/Reboot
Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/os_management_hub
Initiates a reboot of all managed instances within the specified dynamic set.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDynamicSetRebootManagement = new oci.osmanagementhub.DynamicSetRebootManagement("test_dynamic_set_reboot_management", {
dynamicSetId: testDynamicSet.id,
managedInstances: dynamicSetRebootManagementManagedInstances,
rebootTimeoutInMins: dynamicSetRebootManagementRebootTimeoutInMins,
workRequestDetails: {
description: dynamicSetRebootManagementWorkRequestDetailsDescription,
displayName: dynamicSetRebootManagementWorkRequestDetailsDisplayName,
},
});
import pulumi
import pulumi_oci as oci
test_dynamic_set_reboot_management = oci.osmanagementhub.DynamicSetRebootManagement("test_dynamic_set_reboot_management",
dynamic_set_id=test_dynamic_set["id"],
managed_instances=dynamic_set_reboot_management_managed_instances,
reboot_timeout_in_mins=dynamic_set_reboot_management_reboot_timeout_in_mins,
work_request_details={
"description": dynamic_set_reboot_management_work_request_details_description,
"display_name": dynamic_set_reboot_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.NewDynamicSetRebootManagement(ctx, "test_dynamic_set_reboot_management", &osmanagementhub.DynamicSetRebootManagementArgs{
DynamicSetId: pulumi.Any(testDynamicSet.Id),
ManagedInstances: pulumi.Any(dynamicSetRebootManagementManagedInstances),
RebootTimeoutInMins: pulumi.Any(dynamicSetRebootManagementRebootTimeoutInMins),
WorkRequestDetails: &osmanagementhub.DynamicSetRebootManagementWorkRequestDetailsArgs{
Description: pulumi.Any(dynamicSetRebootManagementWorkRequestDetailsDescription),
DisplayName: pulumi.Any(dynamicSetRebootManagementWorkRequestDetailsDisplayName),
},
})
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 testDynamicSetRebootManagement = new Oci.OsManagementHub.DynamicSetRebootManagement("test_dynamic_set_reboot_management", new()
{
DynamicSetId = testDynamicSet.Id,
ManagedInstances = dynamicSetRebootManagementManagedInstances,
RebootTimeoutInMins = dynamicSetRebootManagementRebootTimeoutInMins,
WorkRequestDetails = new Oci.OsManagementHub.Inputs.DynamicSetRebootManagementWorkRequestDetailsArgs
{
Description = dynamicSetRebootManagementWorkRequestDetailsDescription,
DisplayName = dynamicSetRebootManagementWorkRequestDetailsDisplayName,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OsManagementHub.DynamicSetRebootManagement;
import com.pulumi.oci.OsManagementHub.DynamicSetRebootManagementArgs;
import com.pulumi.oci.OsManagementHub.inputs.DynamicSetRebootManagementWorkRequestDetailsArgs;
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 testDynamicSetRebootManagement = new DynamicSetRebootManagement("testDynamicSetRebootManagement", DynamicSetRebootManagementArgs.builder()
.dynamicSetId(testDynamicSet.id())
.managedInstances(dynamicSetRebootManagementManagedInstances)
.rebootTimeoutInMins(dynamicSetRebootManagementRebootTimeoutInMins)
.workRequestDetails(DynamicSetRebootManagementWorkRequestDetailsArgs.builder()
.description(dynamicSetRebootManagementWorkRequestDetailsDescription)
.displayName(dynamicSetRebootManagementWorkRequestDetailsDisplayName)
.build())
.build());
}
}
resources:
testDynamicSetRebootManagement:
type: oci:OsManagementHub:DynamicSetRebootManagement
name: test_dynamic_set_reboot_management
properties:
dynamicSetId: ${testDynamicSet.id}
managedInstances: ${dynamicSetRebootManagementManagedInstances}
rebootTimeoutInMins: ${dynamicSetRebootManagementRebootTimeoutInMins}
workRequestDetails:
description: ${dynamicSetRebootManagementWorkRequestDetailsDescription}
displayName: ${dynamicSetRebootManagementWorkRequestDetailsDisplayName}
Create DynamicSetRebootManagement Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DynamicSetRebootManagement(name: string, args: DynamicSetRebootManagementArgs, opts?: CustomResourceOptions);@overload
def DynamicSetRebootManagement(resource_name: str,
args: DynamicSetRebootManagementArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DynamicSetRebootManagement(resource_name: str,
opts: Optional[ResourceOptions] = None,
dynamic_set_id: Optional[str] = None,
managed_instances: Optional[Sequence[str]] = None,
reboot_timeout_in_mins: Optional[int] = None,
work_request_details: Optional[DynamicSetRebootManagementWorkRequestDetailsArgs] = None)func NewDynamicSetRebootManagement(ctx *Context, name string, args DynamicSetRebootManagementArgs, opts ...ResourceOption) (*DynamicSetRebootManagement, error)public DynamicSetRebootManagement(string name, DynamicSetRebootManagementArgs args, CustomResourceOptions? opts = null)
public DynamicSetRebootManagement(String name, DynamicSetRebootManagementArgs args)
public DynamicSetRebootManagement(String name, DynamicSetRebootManagementArgs args, CustomResourceOptions options)
type: oci:OsManagementHub:DynamicSetRebootManagement
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 DynamicSetRebootManagementArgs
- 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 DynamicSetRebootManagementArgs
- 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 DynamicSetRebootManagementArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DynamicSetRebootManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DynamicSetRebootManagementArgs
- 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 dynamicSetRebootManagementResource = new Oci.OsManagementHub.DynamicSetRebootManagement("dynamicSetRebootManagementResource", new()
{
DynamicSetId = "string",
ManagedInstances = new[]
{
"string",
},
RebootTimeoutInMins = 0,
WorkRequestDetails = new Oci.OsManagementHub.Inputs.DynamicSetRebootManagementWorkRequestDetailsArgs
{
Description = "string",
DisplayName = "string",
},
});
example, err := osmanagementhub.NewDynamicSetRebootManagement(ctx, "dynamicSetRebootManagementResource", &osmanagementhub.DynamicSetRebootManagementArgs{
DynamicSetId: pulumi.String("string"),
ManagedInstances: pulumi.StringArray{
pulumi.String("string"),
},
RebootTimeoutInMins: pulumi.Int(0),
WorkRequestDetails: &osmanagementhub.DynamicSetRebootManagementWorkRequestDetailsArgs{
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
},
})
var dynamicSetRebootManagementResource = new DynamicSetRebootManagement("dynamicSetRebootManagementResource", DynamicSetRebootManagementArgs.builder()
.dynamicSetId("string")
.managedInstances("string")
.rebootTimeoutInMins(0)
.workRequestDetails(DynamicSetRebootManagementWorkRequestDetailsArgs.builder()
.description("string")
.displayName("string")
.build())
.build());
dynamic_set_reboot_management_resource = oci.osmanagementhub.DynamicSetRebootManagement("dynamicSetRebootManagementResource",
dynamic_set_id="string",
managed_instances=["string"],
reboot_timeout_in_mins=0,
work_request_details={
"description": "string",
"display_name": "string",
})
const dynamicSetRebootManagementResource = new oci.osmanagementhub.DynamicSetRebootManagement("dynamicSetRebootManagementResource", {
dynamicSetId: "string",
managedInstances: ["string"],
rebootTimeoutInMins: 0,
workRequestDetails: {
description: "string",
displayName: "string",
},
});
type: oci:OsManagementHub:DynamicSetRebootManagement
properties:
dynamicSetId: string
managedInstances:
- string
rebootTimeoutInMins: 0
workRequestDetails:
description: string
displayName: string
DynamicSetRebootManagement 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 DynamicSetRebootManagement resource accepts the following input properties:
- Dynamic
Set stringId - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
- Managed
Instances List<string> - The list of managed instance OCIDs to be attached/detached.
- Reboot
Timeout intIn Mins - The number of minutes the service waits for the reboot to complete. If the instances in the group don't reboot within this time, the reboot job status is set to failed.
- Work
Request DynamicDetails Set Reboot Management Work Request Details - Provides the name and description of the job.
- Dynamic
Set stringId - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
- Managed
Instances []string - The list of managed instance OCIDs to be attached/detached.
- Reboot
Timeout intIn Mins - The number of minutes the service waits for the reboot to complete. If the instances in the group don't reboot within this time, the reboot job status is set to failed.
- Work
Request DynamicDetails Set Reboot Management Work Request Details Args - Provides the name and description of the job.
- dynamic
Set StringId - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
- managed
Instances List<String> - The list of managed instance OCIDs to be attached/detached.
- reboot
Timeout IntegerIn Mins - The number of minutes the service waits for the reboot to complete. If the instances in the group don't reboot within this time, the reboot job status is set to failed.
- work
Request DynamicDetails Set Reboot Management Work Request Details - Provides the name and description of the job.
- dynamic
Set stringId - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
- managed
Instances string[] - The list of managed instance OCIDs to be attached/detached.
- reboot
Timeout numberIn Mins - The number of minutes the service waits for the reboot to complete. If the instances in the group don't reboot within this time, the reboot job status is set to failed.
- work
Request DynamicDetails Set Reboot Management Work Request Details - Provides the name and description of the job.
- dynamic_
set_ strid - 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.
- reboot_
timeout_ intin_ mins - The number of minutes the service waits for the reboot to complete. If the instances in the group don't reboot within this time, the reboot job status is set to failed.
- work_
request_ Dynamicdetails Set Reboot Management Work Request Details Args - Provides the name and description of the job.
- dynamic
Set StringId - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
- managed
Instances List<String> - The list of managed instance OCIDs to be attached/detached.
- reboot
Timeout NumberIn Mins - The number of minutes the service waits for the reboot to complete. If the instances in the group don't reboot within this time, the reboot job status is set to failed.
- work
Request Property MapDetails - Provides the name and description of the job.
Outputs
All input properties are implicitly available as output properties. Additionally, the DynamicSetRebootManagement 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 DynamicSetRebootManagement Resource
Get an existing DynamicSetRebootManagement 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?: DynamicSetRebootManagementState, opts?: CustomResourceOptions): DynamicSetRebootManagement@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dynamic_set_id: Optional[str] = None,
managed_instances: Optional[Sequence[str]] = None,
reboot_timeout_in_mins: Optional[int] = None,
work_request_details: Optional[DynamicSetRebootManagementWorkRequestDetailsArgs] = None) -> DynamicSetRebootManagementfunc GetDynamicSetRebootManagement(ctx *Context, name string, id IDInput, state *DynamicSetRebootManagementState, opts ...ResourceOption) (*DynamicSetRebootManagement, error)public static DynamicSetRebootManagement Get(string name, Input<string> id, DynamicSetRebootManagementState? state, CustomResourceOptions? opts = null)public static DynamicSetRebootManagement get(String name, Output<String> id, DynamicSetRebootManagementState state, CustomResourceOptions options)resources: _: type: oci:OsManagementHub:DynamicSetRebootManagement 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.
- Dynamic
Set stringId - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
- Managed
Instances List<string> - The list of managed instance OCIDs to be attached/detached.
- Reboot
Timeout intIn Mins - The number of minutes the service waits for the reboot to complete. If the instances in the group don't reboot within this time, the reboot job status is set to failed.
- Work
Request DynamicDetails Set Reboot Management Work Request Details - Provides the name and description of the job.
- Dynamic
Set stringId - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
- Managed
Instances []string - The list of managed instance OCIDs to be attached/detached.
- Reboot
Timeout intIn Mins - The number of minutes the service waits for the reboot to complete. If the instances in the group don't reboot within this time, the reboot job status is set to failed.
- Work
Request DynamicDetails Set Reboot Management Work Request Details Args - Provides the name and description of the job.
- dynamic
Set StringId - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
- managed
Instances List<String> - The list of managed instance OCIDs to be attached/detached.
- reboot
Timeout IntegerIn Mins - The number of minutes the service waits for the reboot to complete. If the instances in the group don't reboot within this time, the reboot job status is set to failed.
- work
Request DynamicDetails Set Reboot Management Work Request Details - Provides the name and description of the job.
- dynamic
Set stringId - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
- managed
Instances string[] - The list of managed instance OCIDs to be attached/detached.
- reboot
Timeout numberIn Mins - The number of minutes the service waits for the reboot to complete. If the instances in the group don't reboot within this time, the reboot job status is set to failed.
- work
Request DynamicDetails Set Reboot Management Work Request Details - Provides the name and description of the job.
- dynamic_
set_ strid - 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.
- reboot_
timeout_ intin_ mins - The number of minutes the service waits for the reboot to complete. If the instances in the group don't reboot within this time, the reboot job status is set to failed.
- work_
request_ Dynamicdetails Set Reboot Management Work Request Details Args - Provides the name and description of the job.
- dynamic
Set StringId - The OCID of the dynamic set. This filter returns resources associated with this dynamic set.
- managed
Instances List<String> - The list of managed instance OCIDs to be attached/detached.
- reboot
Timeout NumberIn Mins - The number of minutes the service waits for the reboot to complete. If the instances in the group don't reboot within this time, the reboot job status is set to failed.
- work
Request Property MapDetails - Provides the name and description of the job.
Supporting Types
DynamicSetRebootManagementWorkRequestDetails, DynamicSetRebootManagementWorkRequestDetailsArgs
- Description string
- User-specified information about the job. Avoid entering confidential information.
- Display
Name 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.
- Display
Name 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.
- display
Name 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.
- display
Name 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.
- display
Name 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
DynamicSetRebootManagement can be imported using the id, e.g.
$ pulumi import oci:OsManagementHub/dynamicSetRebootManagement:DynamicSetRebootManagement test_dynamic_set_reboot_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
ociTerraform Provider.
published on Thursday, Apr 16, 2026 by Pulumi
