oci.OsManagementHub.ManagedInstanceRebootManagement
Explore with Pulumi AI
This resource provides the Managed Instance Reboot Management resource in Oracle Cloud Infrastructure Os Management Hub service.
Initiates a reboot of the specified managed instance. You can also specify the number of minutes the service waits before marking the reboot operation as failed.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedInstanceRebootManagement = new oci.osmanagementhub.ManagedInstanceRebootManagement("test_managed_instance_reboot_management", {
managedInstanceId: testManagedInstance.id,
rebootTimeoutInMins: managedInstanceRebootManagementRebootTimeoutInMins,
workRequestDetails: {
description: managedInstanceRebootManagementWorkRequestDetailsDescription,
displayName: managedInstanceRebootManagementWorkRequestDetailsDisplayName,
},
});
import pulumi
import pulumi_oci as oci
test_managed_instance_reboot_management = oci.os_management_hub.ManagedInstanceRebootManagement("test_managed_instance_reboot_management",
managed_instance_id=test_managed_instance["id"],
reboot_timeout_in_mins=managed_instance_reboot_management_reboot_timeout_in_mins,
work_request_details={
"description": managed_instance_reboot_management_work_request_details_description,
"display_name": managed_instance_reboot_management_work_request_details_display_name,
})
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/osmanagementhub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := osmanagementhub.NewManagedInstanceRebootManagement(ctx, "test_managed_instance_reboot_management", &osmanagementhub.ManagedInstanceRebootManagementArgs{
ManagedInstanceId: pulumi.Any(testManagedInstance.Id),
RebootTimeoutInMins: pulumi.Any(managedInstanceRebootManagementRebootTimeoutInMins),
WorkRequestDetails: &osmanagementhub.ManagedInstanceRebootManagementWorkRequestDetailsArgs{
Description: pulumi.Any(managedInstanceRebootManagementWorkRequestDetailsDescription),
DisplayName: pulumi.Any(managedInstanceRebootManagementWorkRequestDetailsDisplayName),
},
})
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 testManagedInstanceRebootManagement = new Oci.OsManagementHub.ManagedInstanceRebootManagement("test_managed_instance_reboot_management", new()
{
ManagedInstanceId = testManagedInstance.Id,
RebootTimeoutInMins = managedInstanceRebootManagementRebootTimeoutInMins,
WorkRequestDetails = new Oci.OsManagementHub.Inputs.ManagedInstanceRebootManagementWorkRequestDetailsArgs
{
Description = managedInstanceRebootManagementWorkRequestDetailsDescription,
DisplayName = managedInstanceRebootManagementWorkRequestDetailsDisplayName,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OsManagementHub.ManagedInstanceRebootManagement;
import com.pulumi.oci.OsManagementHub.ManagedInstanceRebootManagementArgs;
import com.pulumi.oci.OsManagementHub.inputs.ManagedInstanceRebootManagementWorkRequestDetailsArgs;
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 testManagedInstanceRebootManagement = new ManagedInstanceRebootManagement("testManagedInstanceRebootManagement", ManagedInstanceRebootManagementArgs.builder()
.managedInstanceId(testManagedInstance.id())
.rebootTimeoutInMins(managedInstanceRebootManagementRebootTimeoutInMins)
.workRequestDetails(ManagedInstanceRebootManagementWorkRequestDetailsArgs.builder()
.description(managedInstanceRebootManagementWorkRequestDetailsDescription)
.displayName(managedInstanceRebootManagementWorkRequestDetailsDisplayName)
.build())
.build());
}
}
resources:
testManagedInstanceRebootManagement:
type: oci:OsManagementHub:ManagedInstanceRebootManagement
name: test_managed_instance_reboot_management
properties:
managedInstanceId: ${testManagedInstance.id}
rebootTimeoutInMins: ${managedInstanceRebootManagementRebootTimeoutInMins}
workRequestDetails:
description: ${managedInstanceRebootManagementWorkRequestDetailsDescription}
displayName: ${managedInstanceRebootManagementWorkRequestDetailsDisplayName}
Create ManagedInstanceRebootManagement Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagedInstanceRebootManagement(name: string, args: ManagedInstanceRebootManagementArgs, opts?: CustomResourceOptions);
@overload
def ManagedInstanceRebootManagement(resource_name: str,
args: ManagedInstanceRebootManagementArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ManagedInstanceRebootManagement(resource_name: str,
opts: Optional[ResourceOptions] = None,
managed_instance_id: Optional[str] = None,
reboot_timeout_in_mins: Optional[int] = None,
work_request_details: Optional[_osmanagementhub.ManagedInstanceRebootManagementWorkRequestDetailsArgs] = None)
func NewManagedInstanceRebootManagement(ctx *Context, name string, args ManagedInstanceRebootManagementArgs, opts ...ResourceOption) (*ManagedInstanceRebootManagement, error)
public ManagedInstanceRebootManagement(string name, ManagedInstanceRebootManagementArgs args, CustomResourceOptions? opts = null)
public ManagedInstanceRebootManagement(String name, ManagedInstanceRebootManagementArgs args)
public ManagedInstanceRebootManagement(String name, ManagedInstanceRebootManagementArgs args, CustomResourceOptions options)
type: oci:OsManagementHub:ManagedInstanceRebootManagement
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ManagedInstanceRebootManagementArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. ManagedInstanceRebootManagementArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ManagedInstanceRebootManagementArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ManagedInstanceRebootManagementArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. ManagedInstanceRebootManagementArgs - 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 managedInstanceRebootManagementResource = new Oci.OsManagementHub.ManagedInstanceRebootManagement("managedInstanceRebootManagementResource", new()
{
ManagedInstanceId = "string",
RebootTimeoutInMins = 0,
WorkRequestDetails = new Oci.OsManagementHub.Inputs.ManagedInstanceRebootManagementWorkRequestDetailsArgs
{
Description = "string",
DisplayName = "string",
},
});
example, err := OsManagementHub.NewManagedInstanceRebootManagement(ctx, "managedInstanceRebootManagementResource", &OsManagementHub.ManagedInstanceRebootManagementArgs{
ManagedInstanceId: pulumi.String("string"),
RebootTimeoutInMins: pulumi.Int(0),
WorkRequestDetails: &osmanagementhub.ManagedInstanceRebootManagementWorkRequestDetailsArgs{
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
},
})
var managedInstanceRebootManagementResource = new ManagedInstanceRebootManagement("managedInstanceRebootManagementResource", ManagedInstanceRebootManagementArgs.builder()
.managedInstanceId("string")
.rebootTimeoutInMins(0)
.workRequestDetails(ManagedInstanceRebootManagementWorkRequestDetailsArgs.builder()
.description("string")
.displayName("string")
.build())
.build());
managed_instance_reboot_management_resource = oci.os_management_hub.ManagedInstanceRebootManagement("managedInstanceRebootManagementResource",
managed_instance_id="string",
reboot_timeout_in_mins=0,
work_request_details={
"description": "string",
"display_name": "string",
})
const managedInstanceRebootManagementResource = new oci.osmanagementhub.ManagedInstanceRebootManagement("managedInstanceRebootManagementResource", {
managedInstanceId: "string",
rebootTimeoutInMins: 0,
workRequestDetails: {
description: "string",
displayName: "string",
},
});
type: oci:OsManagementHub:ManagedInstanceRebootManagement
properties:
managedInstanceId: string
rebootTimeoutInMins: 0
workRequestDetails:
description: string
displayName: string
ManagedInstanceRebootManagement 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 ManagedInstanceRebootManagement resource accepts the following input properties:
- Managed
Instance Id This property is required. Changes to this property will trigger replacement.
- The OCID of the managed instance.
- Reboot
Timeout In Mins Changes to this property will trigger replacement.
- The number of minutes the service waits for the reboot to complete. If the instance doesn't reboot within this time, the reboot job status is set to failed.
- Work
Request Details Changes to this property will trigger replacement.
Instance Reboot Management Work Request Details - Provides the name and description of the job.
- Managed
Instance Id This property is required. Changes to this property will trigger replacement.
- The OCID of the managed instance.
- Reboot
Timeout In Mins Changes to this property will trigger replacement.
- The number of minutes the service waits for the reboot to complete. If the instance doesn't reboot within this time, the reboot job status is set to failed.
- Work
Request Details Changes to this property will trigger replacement.
Instance Reboot Management Work Request Details Args - Provides the name and description of the job.
- managed
Instance Id This property is required. Changes to this property will trigger replacement.
- The OCID of the managed instance.
- reboot
Timeout In Mins Changes to this property will trigger replacement.
- The number of minutes the service waits for the reboot to complete. If the instance doesn't reboot within this time, the reboot job status is set to failed.
- work
Request Details Changes to this property will trigger replacement.
Instance Reboot Management Work Request Details - Provides the name and description of the job.
- managed
Instance Id This property is required. Changes to this property will trigger replacement.
- The OCID of the managed instance.
- reboot
Timeout In Mins Changes to this property will trigger replacement.
- The number of minutes the service waits for the reboot to complete. If the instance doesn't reboot within this time, the reboot job status is set to failed.
- work
Request Details Changes to this property will trigger replacement.
Instance Reboot Management Work Request Details - Provides the name and description of the job.
- managed_
instance_ id This property is required. Changes to this property will trigger replacement.
- The OCID of the managed instance.
- reboot_
timeout_ in_ mins Changes to this property will trigger replacement.
- The number of minutes the service waits for the reboot to complete. If the instance doesn't reboot within this time, the reboot job status is set to failed.
- work_
request_ details Changes to this property will trigger replacement.
Managed Instance Reboot Management Work Request Details Args - Provides the name and description of the job.
- managed
Instance Id This property is required. Changes to this property will trigger replacement.
- The OCID of the managed instance.
- reboot
Timeout In Mins Changes to this property will trigger replacement.
- The number of minutes the service waits for the reboot to complete. If the instance doesn't reboot within this time, the reboot job status is set to failed.
- work
Request Details Changes to this property will trigger replacement.
- Provides the name and description of the job.
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagedInstanceRebootManagement 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 ManagedInstanceRebootManagement Resource
Get an existing ManagedInstanceRebootManagement 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?: ManagedInstanceRebootManagementState, opts?: CustomResourceOptions): ManagedInstanceRebootManagement
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
managed_instance_id: Optional[str] = None,
reboot_timeout_in_mins: Optional[int] = None,
work_request_details: Optional[_osmanagementhub.ManagedInstanceRebootManagementWorkRequestDetailsArgs] = None) -> ManagedInstanceRebootManagement
func GetManagedInstanceRebootManagement(ctx *Context, name string, id IDInput, state *ManagedInstanceRebootManagementState, opts ...ResourceOption) (*ManagedInstanceRebootManagement, error)
public static ManagedInstanceRebootManagement Get(string name, Input<string> id, ManagedInstanceRebootManagementState? state, CustomResourceOptions? opts = null)
public static ManagedInstanceRebootManagement get(String name, Output<String> id, ManagedInstanceRebootManagementState state, CustomResourceOptions options)
resources: _: type: oci:OsManagementHub:ManagedInstanceRebootManagement get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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.
- Managed
Instance Id Changes to this property will trigger replacement.
- The OCID of the managed instance.
- Reboot
Timeout In Mins Changes to this property will trigger replacement.
- The number of minutes the service waits for the reboot to complete. If the instance doesn't reboot within this time, the reboot job status is set to failed.
- Work
Request Details Changes to this property will trigger replacement.
Instance Reboot Management Work Request Details - Provides the name and description of the job.
- Managed
Instance Id Changes to this property will trigger replacement.
- The OCID of the managed instance.
- Reboot
Timeout In Mins Changes to this property will trigger replacement.
- The number of minutes the service waits for the reboot to complete. If the instance doesn't reboot within this time, the reboot job status is set to failed.
- Work
Request Details Changes to this property will trigger replacement.
Instance Reboot Management Work Request Details Args - Provides the name and description of the job.
- managed
Instance Id Changes to this property will trigger replacement.
- The OCID of the managed instance.
- reboot
Timeout In Mins Changes to this property will trigger replacement.
- The number of minutes the service waits for the reboot to complete. If the instance doesn't reboot within this time, the reboot job status is set to failed.
- work
Request Details Changes to this property will trigger replacement.
Instance Reboot Management Work Request Details - Provides the name and description of the job.
- managed
Instance Id Changes to this property will trigger replacement.
- The OCID of the managed instance.
- reboot
Timeout In Mins Changes to this property will trigger replacement.
- The number of minutes the service waits for the reboot to complete. If the instance doesn't reboot within this time, the reboot job status is set to failed.
- work
Request Details Changes to this property will trigger replacement.
Instance Reboot Management Work Request Details - Provides the name and description of the job.
- managed_
instance_ id Changes to this property will trigger replacement.
- The OCID of the managed instance.
- reboot_
timeout_ in_ mins Changes to this property will trigger replacement.
- The number of minutes the service waits for the reboot to complete. If the instance doesn't reboot within this time, the reboot job status is set to failed.
- work_
request_ details Changes to this property will trigger replacement.
Managed Instance Reboot Management Work Request Details Args - Provides the name and description of the job.
- managed
Instance Id Changes to this property will trigger replacement.
- The OCID of the managed instance.
- reboot
Timeout In Mins Changes to this property will trigger replacement.
- The number of minutes the service waits for the reboot to complete. If the instance doesn't reboot within this time, the reboot job status is set to failed.
- work
Request Details Changes to this property will trigger replacement.
- Provides the name and description of the job.
Supporting Types
ManagedInstanceRebootManagementWorkRequestDetails, ManagedInstanceRebootManagementWorkRequestDetailsArgs
- Description
Changes to this property will trigger replacement.
- User-specified information about the job. Avoid entering confidential information.
- Display
Name Changes to this property will trigger replacement.
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
Changes to this property will trigger replacement.
- User-specified information about the job. Avoid entering confidential information.
- Display
Name Changes to this property will trigger replacement.
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
Changes to this property will trigger replacement.
- User-specified information about the job. Avoid entering confidential information.
- display
Name Changes to this property will trigger replacement.
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
Changes to this property will trigger replacement.
- User-specified information about the job. Avoid entering confidential information.
- display
Name Changes to this property will trigger replacement.
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
Changes to this property will trigger replacement.
- User-specified information about the job. Avoid entering confidential information.
- display_
name Changes to this property will trigger replacement.
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
Changes to this property will trigger replacement.
- User-specified information about the job. Avoid entering confidential information.
- display
Name Changes to this property will trigger replacement.
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
ManagedInstanceRebootManagement can be imported using the id
, e.g.
$ pulumi import oci:OsManagementHub/managedInstanceRebootManagement:ManagedInstanceRebootManagement test_managed_instance_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
oci
Terraform Provider.