published on Friday, Apr 24, 2026 by Pulumi
published on Friday, Apr 24, 2026 by Pulumi
This resource provides the Managed Instance Install Snaps 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/ManagedInstance/InstallSnaps
Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/os_management_hub
Installs specified snaps on a managed instance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedInstanceInstallSnapsManagement = new oci.osmanagementhub.ManagedInstanceInstallSnapsManagement("test_managed_instance_install_snaps_management", {
managedInstanceId: testManagedInstance.id,
snapDetails: [{
name: managedInstanceInstallSnapsManagementSnapDetailsName,
channel: managedInstanceInstallSnapsManagementSnapDetailsChannel,
isSigned: managedInstanceInstallSnapsManagementSnapDetailsIsSigned,
mode: managedInstanceInstallSnapsManagementSnapDetailsMode,
revision: managedInstanceInstallSnapsManagementSnapDetailsRevision,
}],
workRequestDetails: {
description: managedInstanceInstallSnapsManagementWorkRequestDetailsDescription,
displayName: managedInstanceInstallSnapsManagementWorkRequestDetailsDisplayName,
},
});
import pulumi
import pulumi_oci as oci
test_managed_instance_install_snaps_management = oci.osmanagementhub.ManagedInstanceInstallSnapsManagement("test_managed_instance_install_snaps_management",
managed_instance_id=test_managed_instance["id"],
snap_details=[{
"name": managed_instance_install_snaps_management_snap_details_name,
"channel": managed_instance_install_snaps_management_snap_details_channel,
"is_signed": managed_instance_install_snaps_management_snap_details_is_signed,
"mode": managed_instance_install_snaps_management_snap_details_mode,
"revision": managed_instance_install_snaps_management_snap_details_revision,
}],
work_request_details={
"description": managed_instance_install_snaps_management_work_request_details_description,
"display_name": managed_instance_install_snaps_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.NewManagedInstanceInstallSnapsManagement(ctx, "test_managed_instance_install_snaps_management", &osmanagementhub.ManagedInstanceInstallSnapsManagementArgs{
ManagedInstanceId: pulumi.Any(testManagedInstance.Id),
SnapDetails: osmanagementhub.ManagedInstanceInstallSnapsManagementSnapDetailArray{
&osmanagementhub.ManagedInstanceInstallSnapsManagementSnapDetailArgs{
Name: pulumi.Any(managedInstanceInstallSnapsManagementSnapDetailsName),
Channel: pulumi.Any(managedInstanceInstallSnapsManagementSnapDetailsChannel),
IsSigned: pulumi.Any(managedInstanceInstallSnapsManagementSnapDetailsIsSigned),
Mode: pulumi.Any(managedInstanceInstallSnapsManagementSnapDetailsMode),
Revision: pulumi.Any(managedInstanceInstallSnapsManagementSnapDetailsRevision),
},
},
WorkRequestDetails: &osmanagementhub.ManagedInstanceInstallSnapsManagementWorkRequestDetailsArgs{
Description: pulumi.Any(managedInstanceInstallSnapsManagementWorkRequestDetailsDescription),
DisplayName: pulumi.Any(managedInstanceInstallSnapsManagementWorkRequestDetailsDisplayName),
},
})
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 testManagedInstanceInstallSnapsManagement = new Oci.OsManagementHub.ManagedInstanceInstallSnapsManagement("test_managed_instance_install_snaps_management", new()
{
ManagedInstanceId = testManagedInstance.Id,
SnapDetails = new[]
{
new Oci.OsManagementHub.Inputs.ManagedInstanceInstallSnapsManagementSnapDetailArgs
{
Name = managedInstanceInstallSnapsManagementSnapDetailsName,
Channel = managedInstanceInstallSnapsManagementSnapDetailsChannel,
IsSigned = managedInstanceInstallSnapsManagementSnapDetailsIsSigned,
Mode = managedInstanceInstallSnapsManagementSnapDetailsMode,
Revision = managedInstanceInstallSnapsManagementSnapDetailsRevision,
},
},
WorkRequestDetails = new Oci.OsManagementHub.Inputs.ManagedInstanceInstallSnapsManagementWorkRequestDetailsArgs
{
Description = managedInstanceInstallSnapsManagementWorkRequestDetailsDescription,
DisplayName = managedInstanceInstallSnapsManagementWorkRequestDetailsDisplayName,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OsManagementHub.ManagedInstanceInstallSnapsManagement;
import com.pulumi.oci.OsManagementHub.ManagedInstanceInstallSnapsManagementArgs;
import com.pulumi.oci.OsManagementHub.inputs.ManagedInstanceInstallSnapsManagementSnapDetailArgs;
import com.pulumi.oci.OsManagementHub.inputs.ManagedInstanceInstallSnapsManagementWorkRequestDetailsArgs;
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 testManagedInstanceInstallSnapsManagement = new ManagedInstanceInstallSnapsManagement("testManagedInstanceInstallSnapsManagement", ManagedInstanceInstallSnapsManagementArgs.builder()
.managedInstanceId(testManagedInstance.id())
.snapDetails(ManagedInstanceInstallSnapsManagementSnapDetailArgs.builder()
.name(managedInstanceInstallSnapsManagementSnapDetailsName)
.channel(managedInstanceInstallSnapsManagementSnapDetailsChannel)
.isSigned(managedInstanceInstallSnapsManagementSnapDetailsIsSigned)
.mode(managedInstanceInstallSnapsManagementSnapDetailsMode)
.revision(managedInstanceInstallSnapsManagementSnapDetailsRevision)
.build())
.workRequestDetails(ManagedInstanceInstallSnapsManagementWorkRequestDetailsArgs.builder()
.description(managedInstanceInstallSnapsManagementWorkRequestDetailsDescription)
.displayName(managedInstanceInstallSnapsManagementWorkRequestDetailsDisplayName)
.build())
.build());
}
}
resources:
testManagedInstanceInstallSnapsManagement:
type: oci:OsManagementHub:ManagedInstanceInstallSnapsManagement
name: test_managed_instance_install_snaps_management
properties:
managedInstanceId: ${testManagedInstance.id}
snapDetails:
- name: ${managedInstanceInstallSnapsManagementSnapDetailsName}
channel: ${managedInstanceInstallSnapsManagementSnapDetailsChannel}
isSigned: ${managedInstanceInstallSnapsManagementSnapDetailsIsSigned}
mode: ${managedInstanceInstallSnapsManagementSnapDetailsMode}
revision: ${managedInstanceInstallSnapsManagementSnapDetailsRevision}
workRequestDetails:
description: ${managedInstanceInstallSnapsManagementWorkRequestDetailsDescription}
displayName: ${managedInstanceInstallSnapsManagementWorkRequestDetailsDisplayName}
Create ManagedInstanceInstallSnapsManagement Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagedInstanceInstallSnapsManagement(name: string, args: ManagedInstanceInstallSnapsManagementArgs, opts?: CustomResourceOptions);@overload
def ManagedInstanceInstallSnapsManagement(resource_name: str,
args: ManagedInstanceInstallSnapsManagementArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ManagedInstanceInstallSnapsManagement(resource_name: str,
opts: Optional[ResourceOptions] = None,
managed_instance_id: Optional[str] = None,
snap_details: Optional[Sequence[ManagedInstanceInstallSnapsManagementSnapDetailArgs]] = None,
work_request_details: Optional[ManagedInstanceInstallSnapsManagementWorkRequestDetailsArgs] = None)func NewManagedInstanceInstallSnapsManagement(ctx *Context, name string, args ManagedInstanceInstallSnapsManagementArgs, opts ...ResourceOption) (*ManagedInstanceInstallSnapsManagement, error)public ManagedInstanceInstallSnapsManagement(string name, ManagedInstanceInstallSnapsManagementArgs args, CustomResourceOptions? opts = null)
public ManagedInstanceInstallSnapsManagement(String name, ManagedInstanceInstallSnapsManagementArgs args)
public ManagedInstanceInstallSnapsManagement(String name, ManagedInstanceInstallSnapsManagementArgs args, CustomResourceOptions options)
type: oci:OsManagementHub:ManagedInstanceInstallSnapsManagement
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 ManagedInstanceInstallSnapsManagementArgs
- 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 ManagedInstanceInstallSnapsManagementArgs
- 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 ManagedInstanceInstallSnapsManagementArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagedInstanceInstallSnapsManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagedInstanceInstallSnapsManagementArgs
- 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 managedInstanceInstallSnapsManagementResource = new Oci.OsManagementHub.ManagedInstanceInstallSnapsManagement("managedInstanceInstallSnapsManagementResource", new()
{
ManagedInstanceId = "string",
SnapDetails = new[]
{
new Oci.OsManagementHub.Inputs.ManagedInstanceInstallSnapsManagementSnapDetailArgs
{
Name = "string",
Channel = "string",
IsSigned = false,
Mode = "string",
Revision = "string",
},
},
WorkRequestDetails = new Oci.OsManagementHub.Inputs.ManagedInstanceInstallSnapsManagementWorkRequestDetailsArgs
{
Description = "string",
DisplayName = "string",
},
});
example, err := osmanagementhub.NewManagedInstanceInstallSnapsManagement(ctx, "managedInstanceInstallSnapsManagementResource", &osmanagementhub.ManagedInstanceInstallSnapsManagementArgs{
ManagedInstanceId: pulumi.String("string"),
SnapDetails: osmanagementhub.ManagedInstanceInstallSnapsManagementSnapDetailArray{
&osmanagementhub.ManagedInstanceInstallSnapsManagementSnapDetailArgs{
Name: pulumi.String("string"),
Channel: pulumi.String("string"),
IsSigned: pulumi.Bool(false),
Mode: pulumi.String("string"),
Revision: pulumi.String("string"),
},
},
WorkRequestDetails: &osmanagementhub.ManagedInstanceInstallSnapsManagementWorkRequestDetailsArgs{
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
},
})
var managedInstanceInstallSnapsManagementResource = new ManagedInstanceInstallSnapsManagement("managedInstanceInstallSnapsManagementResource", ManagedInstanceInstallSnapsManagementArgs.builder()
.managedInstanceId("string")
.snapDetails(ManagedInstanceInstallSnapsManagementSnapDetailArgs.builder()
.name("string")
.channel("string")
.isSigned(false)
.mode("string")
.revision("string")
.build())
.workRequestDetails(ManagedInstanceInstallSnapsManagementWorkRequestDetailsArgs.builder()
.description("string")
.displayName("string")
.build())
.build());
managed_instance_install_snaps_management_resource = oci.osmanagementhub.ManagedInstanceInstallSnapsManagement("managedInstanceInstallSnapsManagementResource",
managed_instance_id="string",
snap_details=[{
"name": "string",
"channel": "string",
"is_signed": False,
"mode": "string",
"revision": "string",
}],
work_request_details={
"description": "string",
"display_name": "string",
})
const managedInstanceInstallSnapsManagementResource = new oci.osmanagementhub.ManagedInstanceInstallSnapsManagement("managedInstanceInstallSnapsManagementResource", {
managedInstanceId: "string",
snapDetails: [{
name: "string",
channel: "string",
isSigned: false,
mode: "string",
revision: "string",
}],
workRequestDetails: {
description: "string",
displayName: "string",
},
});
type: oci:OsManagementHub:ManagedInstanceInstallSnapsManagement
properties:
managedInstanceId: string
snapDetails:
- channel: string
isSigned: false
mode: string
name: string
revision: string
workRequestDetails:
description: string
displayName: string
ManagedInstanceInstallSnapsManagement 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 ManagedInstanceInstallSnapsManagement resource accepts the following input properties:
- Managed
Instance stringId - The OCID of the managed instance.
- Snap
Details List<ManagedInstance Install Snaps Management Snap Detail> - The array of snaps to install.
- Work
Request ManagedDetails Instance Install Snaps Management Work Request Details - Provides the name and description of the job.
- Managed
Instance stringId - The OCID of the managed instance.
- Snap
Details []ManagedInstance Install Snaps Management Snap Detail Args - The array of snaps to install.
- Work
Request ManagedDetails Instance Install Snaps Management Work Request Details Args - Provides the name and description of the job.
- managed
Instance StringId - The OCID of the managed instance.
- snap
Details List<ManagedInstance Install Snaps Management Snap Detail> - The array of snaps to install.
- work
Request ManagedDetails Instance Install Snaps Management Work Request Details - Provides the name and description of the job.
- managed
Instance stringId - The OCID of the managed instance.
- snap
Details ManagedInstance Install Snaps Management Snap Detail[] - The array of snaps to install.
- work
Request ManagedDetails Instance Install Snaps Management Work Request Details - Provides the name and description of the job.
- managed_
instance_ strid - The OCID of the managed instance.
- snap_
details Sequence[ManagedInstance Install Snaps Management Snap Detail Args] - The array of snaps to install.
- work_
request_ Manageddetails Instance Install Snaps Management Work Request Details Args - Provides the name and description of the job.
- managed
Instance StringId - The OCID of the managed instance.
- snap
Details List<Property Map> - The array of snaps to install.
- work
Request Property MapDetails - Provides the name and description of the job.
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagedInstanceInstallSnapsManagement 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 ManagedInstanceInstallSnapsManagement Resource
Get an existing ManagedInstanceInstallSnapsManagement 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?: ManagedInstanceInstallSnapsManagementState, opts?: CustomResourceOptions): ManagedInstanceInstallSnapsManagement@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
managed_instance_id: Optional[str] = None,
snap_details: Optional[Sequence[ManagedInstanceInstallSnapsManagementSnapDetailArgs]] = None,
work_request_details: Optional[ManagedInstanceInstallSnapsManagementWorkRequestDetailsArgs] = None) -> ManagedInstanceInstallSnapsManagementfunc GetManagedInstanceInstallSnapsManagement(ctx *Context, name string, id IDInput, state *ManagedInstanceInstallSnapsManagementState, opts ...ResourceOption) (*ManagedInstanceInstallSnapsManagement, error)public static ManagedInstanceInstallSnapsManagement Get(string name, Input<string> id, ManagedInstanceInstallSnapsManagementState? state, CustomResourceOptions? opts = null)public static ManagedInstanceInstallSnapsManagement get(String name, Output<String> id, ManagedInstanceInstallSnapsManagementState state, CustomResourceOptions options)resources: _: type: oci:OsManagementHub:ManagedInstanceInstallSnapsManagement 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.
- Managed
Instance stringId - The OCID of the managed instance.
- Snap
Details List<ManagedInstance Install Snaps Management Snap Detail> - The array of snaps to install.
- Work
Request ManagedDetails Instance Install Snaps Management Work Request Details - Provides the name and description of the job.
- Managed
Instance stringId - The OCID of the managed instance.
- Snap
Details []ManagedInstance Install Snaps Management Snap Detail Args - The array of snaps to install.
- Work
Request ManagedDetails Instance Install Snaps Management Work Request Details Args - Provides the name and description of the job.
- managed
Instance StringId - The OCID of the managed instance.
- snap
Details List<ManagedInstance Install Snaps Management Snap Detail> - The array of snaps to install.
- work
Request ManagedDetails Instance Install Snaps Management Work Request Details - Provides the name and description of the job.
- managed
Instance stringId - The OCID of the managed instance.
- snap
Details ManagedInstance Install Snaps Management Snap Detail[] - The array of snaps to install.
- work
Request ManagedDetails Instance Install Snaps Management Work Request Details - Provides the name and description of the job.
- managed_
instance_ strid - The OCID of the managed instance.
- snap_
details Sequence[ManagedInstance Install Snaps Management Snap Detail Args] - The array of snaps to install.
- work_
request_ Manageddetails Instance Install Snaps Management Work Request Details Args - Provides the name and description of the job.
- managed
Instance StringId - The OCID of the managed instance.
- snap
Details List<Property Map> - The array of snaps to install.
- work
Request Property MapDetails - Provides the name and description of the job.
Supporting Types
ManagedInstanceInstallSnapsManagementSnapDetail, ManagedInstanceInstallSnapsManagementSnapDetailArgs
- Name string
- The name of the snap to install.
- Channel string
- The snap channel to install from (e.g. stable, 1.2/edge, beta, candidate, or a custom channel).
- Is
Signed bool - If false, allows installing snaps not signed by the Snap Store. E.g., snaps from local file. Use with caution.
- Mode string
- The confinement mode for the snap.
- Revision string
- The snap revision to install.
- Name string
- The name of the snap to install.
- Channel string
- The snap channel to install from (e.g. stable, 1.2/edge, beta, candidate, or a custom channel).
- Is
Signed bool - If false, allows installing snaps not signed by the Snap Store. E.g., snaps from local file. Use with caution.
- Mode string
- The confinement mode for the snap.
- Revision string
- The snap revision to install.
- name String
- The name of the snap to install.
- channel String
- The snap channel to install from (e.g. stable, 1.2/edge, beta, candidate, or a custom channel).
- is
Signed Boolean - If false, allows installing snaps not signed by the Snap Store. E.g., snaps from local file. Use with caution.
- mode String
- The confinement mode for the snap.
- revision String
- The snap revision to install.
- name string
- The name of the snap to install.
- channel string
- The snap channel to install from (e.g. stable, 1.2/edge, beta, candidate, or a custom channel).
- is
Signed boolean - If false, allows installing snaps not signed by the Snap Store. E.g., snaps from local file. Use with caution.
- mode string
- The confinement mode for the snap.
- revision string
- The snap revision to install.
- name str
- The name of the snap to install.
- channel str
- The snap channel to install from (e.g. stable, 1.2/edge, beta, candidate, or a custom channel).
- is_
signed bool - If false, allows installing snaps not signed by the Snap Store. E.g., snaps from local file. Use with caution.
- mode str
- The confinement mode for the snap.
- revision str
- The snap revision to install.
- name String
- The name of the snap to install.
- channel String
- The snap channel to install from (e.g. stable, 1.2/edge, beta, candidate, or a custom channel).
- is
Signed Boolean - If false, allows installing snaps not signed by the Snap Store. E.g., snaps from local file. Use with caution.
- mode String
- The confinement mode for the snap.
- revision String
- The snap revision to install.
ManagedInstanceInstallSnapsManagementWorkRequestDetails, ManagedInstanceInstallSnapsManagementWorkRequestDetailsArgs
- 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
ManagedInstanceInstallSnapsManagement can be imported using the id, e.g.
$ pulumi import oci:OsManagementHub/managedInstanceInstallSnapsManagement:ManagedInstanceInstallSnapsManagement test_managed_instance_install_snaps_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 Friday, Apr 24, 2026 by Pulumi
