1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. ManagedInstanceGroupInstallWindowsUpdatesManagement
Oracle Cloud Infrastructure v2.14.0 published on Tuesday, Oct 29, 2024 by Pulumi

oci.OsManagementHub.ManagedInstanceGroupInstallWindowsUpdatesManagement

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.14.0 published on Tuesday, Oct 29, 2024 by Pulumi

    This resource provides the Managed Instance Group Install Windows Updates Management resource in Oracle Cloud Infrastructure Os Management Hub service.

    Installs Windows updates on each managed instance in the managed instance group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagedInstanceGroupInstallWindowsUpdatesManagement = new oci.osmanagementhub.ManagedInstanceGroupInstallWindowsUpdatesManagement("test_managed_instance_group_install_windows_updates_management", {
        managedInstanceGroupId: testManagedInstanceGroup.id,
        windowsUpdateTypes: managedInstanceGroupInstallWindowsUpdatesManagementWindowsUpdateTypes,
        workRequestDetails: {
            description: managedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsDescription,
            displayName: managedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsDisplayName,
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_instance_group_install_windows_updates_management = oci.os_management_hub.ManagedInstanceGroupInstallWindowsUpdatesManagement("test_managed_instance_group_install_windows_updates_management",
        managed_instance_group_id=test_managed_instance_group["id"],
        windows_update_types=managed_instance_group_install_windows_updates_management_windows_update_types,
        work_request_details={
            "description": managed_instance_group_install_windows_updates_management_work_request_details_description,
            "display_name": managed_instance_group_install_windows_updates_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.NewManagedInstanceGroupInstallWindowsUpdatesManagement(ctx, "test_managed_instance_group_install_windows_updates_management", &OsManagementHub.ManagedInstanceGroupInstallWindowsUpdatesManagementArgs{
    			ManagedInstanceGroupId: pulumi.Any(testManagedInstanceGroup.Id),
    			WindowsUpdateTypes:     pulumi.Any(managedInstanceGroupInstallWindowsUpdatesManagementWindowsUpdateTypes),
    			WorkRequestDetails: &osmanagementhub.ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsArgs{
    				Description: pulumi.Any(managedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsDescription),
    				DisplayName: pulumi.Any(managedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsDisplayName),
    			},
    		})
    		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 testManagedInstanceGroupInstallWindowsUpdatesManagement = new Oci.OsManagementHub.ManagedInstanceGroupInstallWindowsUpdatesManagement("test_managed_instance_group_install_windows_updates_management", new()
        {
            ManagedInstanceGroupId = testManagedInstanceGroup.Id,
            WindowsUpdateTypes = managedInstanceGroupInstallWindowsUpdatesManagementWindowsUpdateTypes,
            WorkRequestDetails = new Oci.OsManagementHub.Inputs.ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsArgs
            {
                Description = managedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsDescription,
                DisplayName = managedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsDisplayName,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.OsManagementHub.ManagedInstanceGroupInstallWindowsUpdatesManagement;
    import com.pulumi.oci.OsManagementHub.ManagedInstanceGroupInstallWindowsUpdatesManagementArgs;
    import com.pulumi.oci.OsManagementHub.inputs.ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsArgs;
    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 testManagedInstanceGroupInstallWindowsUpdatesManagement = new ManagedInstanceGroupInstallWindowsUpdatesManagement("testManagedInstanceGroupInstallWindowsUpdatesManagement", ManagedInstanceGroupInstallWindowsUpdatesManagementArgs.builder()
                .managedInstanceGroupId(testManagedInstanceGroup.id())
                .windowsUpdateTypes(managedInstanceGroupInstallWindowsUpdatesManagementWindowsUpdateTypes)
                .workRequestDetails(ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsArgs.builder()
                    .description(managedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsDescription)
                    .displayName(managedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsDisplayName)
                    .build())
                .build());
    
        }
    }
    
    resources:
      testManagedInstanceGroupInstallWindowsUpdatesManagement:
        type: oci:OsManagementHub:ManagedInstanceGroupInstallWindowsUpdatesManagement
        name: test_managed_instance_group_install_windows_updates_management
        properties:
          managedInstanceGroupId: ${testManagedInstanceGroup.id}
          windowsUpdateTypes: ${managedInstanceGroupInstallWindowsUpdatesManagementWindowsUpdateTypes}
          workRequestDetails:
            description: ${managedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsDescription}
            displayName: ${managedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsDisplayName}
    

    Create ManagedInstanceGroupInstallWindowsUpdatesManagement Resource

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

    Constructor syntax

    new ManagedInstanceGroupInstallWindowsUpdatesManagement(name: string, args: ManagedInstanceGroupInstallWindowsUpdatesManagementArgs, opts?: CustomResourceOptions);
    @overload
    def ManagedInstanceGroupInstallWindowsUpdatesManagement(resource_name: str,
                                                            args: ManagedInstanceGroupInstallWindowsUpdatesManagementArgs,
                                                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def ManagedInstanceGroupInstallWindowsUpdatesManagement(resource_name: str,
                                                            opts: Optional[ResourceOptions] = None,
                                                            managed_instance_group_id: Optional[str] = None,
                                                            windows_update_types: Optional[Sequence[str]] = None,
                                                            work_request_details: Optional[_osmanagementhub.ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsArgs] = None)
    func NewManagedInstanceGroupInstallWindowsUpdatesManagement(ctx *Context, name string, args ManagedInstanceGroupInstallWindowsUpdatesManagementArgs, opts ...ResourceOption) (*ManagedInstanceGroupInstallWindowsUpdatesManagement, error)
    public ManagedInstanceGroupInstallWindowsUpdatesManagement(string name, ManagedInstanceGroupInstallWindowsUpdatesManagementArgs args, CustomResourceOptions? opts = null)
    public ManagedInstanceGroupInstallWindowsUpdatesManagement(String name, ManagedInstanceGroupInstallWindowsUpdatesManagementArgs args)
    public ManagedInstanceGroupInstallWindowsUpdatesManagement(String name, ManagedInstanceGroupInstallWindowsUpdatesManagementArgs args, CustomResourceOptions options)
    
    type: oci:OsManagementHub:ManagedInstanceGroupInstallWindowsUpdatesManagement
    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 ManagedInstanceGroupInstallWindowsUpdatesManagementArgs
    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 ManagedInstanceGroupInstallWindowsUpdatesManagementArgs
    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 ManagedInstanceGroupInstallWindowsUpdatesManagementArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ManagedInstanceGroupInstallWindowsUpdatesManagementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ManagedInstanceGroupInstallWindowsUpdatesManagementArgs
    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 managedInstanceGroupInstallWindowsUpdatesManagementResource = new Oci.OsManagementHub.ManagedInstanceGroupInstallWindowsUpdatesManagement("managedInstanceGroupInstallWindowsUpdatesManagementResource", new()
    {
        ManagedInstanceGroupId = "string",
        WindowsUpdateTypes = new[]
        {
            "string",
        },
        WorkRequestDetails = new Oci.OsManagementHub.Inputs.ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsArgs
        {
            Description = "string",
            DisplayName = "string",
        },
    });
    
    example, err := OsManagementHub.NewManagedInstanceGroupInstallWindowsUpdatesManagement(ctx, "managedInstanceGroupInstallWindowsUpdatesManagementResource", &OsManagementHub.ManagedInstanceGroupInstallWindowsUpdatesManagementArgs{
    	ManagedInstanceGroupId: pulumi.String("string"),
    	WindowsUpdateTypes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	WorkRequestDetails: &osmanagementhub.ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsArgs{
    		Description: pulumi.String("string"),
    		DisplayName: pulumi.String("string"),
    	},
    })
    
    var managedInstanceGroupInstallWindowsUpdatesManagementResource = new ManagedInstanceGroupInstallWindowsUpdatesManagement("managedInstanceGroupInstallWindowsUpdatesManagementResource", ManagedInstanceGroupInstallWindowsUpdatesManagementArgs.builder()
        .managedInstanceGroupId("string")
        .windowsUpdateTypes("string")
        .workRequestDetails(ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsArgs.builder()
            .description("string")
            .displayName("string")
            .build())
        .build());
    
    managed_instance_group_install_windows_updates_management_resource = oci.os_management_hub.ManagedInstanceGroupInstallWindowsUpdatesManagement("managedInstanceGroupInstallWindowsUpdatesManagementResource",
        managed_instance_group_id="string",
        windows_update_types=["string"],
        work_request_details=oci.os_management_hub.ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsArgs(
            description="string",
            display_name="string",
        ))
    
    const managedInstanceGroupInstallWindowsUpdatesManagementResource = new oci.osmanagementhub.ManagedInstanceGroupInstallWindowsUpdatesManagement("managedInstanceGroupInstallWindowsUpdatesManagementResource", {
        managedInstanceGroupId: "string",
        windowsUpdateTypes: ["string"],
        workRequestDetails: {
            description: "string",
            displayName: "string",
        },
    });
    
    type: oci:OsManagementHub:ManagedInstanceGroupInstallWindowsUpdatesManagement
    properties:
        managedInstanceGroupId: string
        windowsUpdateTypes:
            - string
        workRequestDetails:
            description: string
            displayName: string
    

    ManagedInstanceGroupInstallWindowsUpdatesManagement Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ManagedInstanceGroupInstallWindowsUpdatesManagement resource accepts the following input properties:

    ManagedInstanceGroupId string
    The OCID of the managed instance group.
    WindowsUpdateTypes List<string>
    The type of Windows updates to be applied.
    WorkRequestDetails ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetails
    Provides the name and description of the job.
    ManagedInstanceGroupId string
    The OCID of the managed instance group.
    WindowsUpdateTypes []string
    The type of Windows updates to be applied.
    WorkRequestDetails ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsArgs
    Provides the name and description of the job.
    managedInstanceGroupId String
    The OCID of the managed instance group.
    windowsUpdateTypes List<String>
    The type of Windows updates to be applied.
    workRequestDetails ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetails
    Provides the name and description of the job.
    managedInstanceGroupId string
    The OCID of the managed instance group.
    windowsUpdateTypes string[]
    The type of Windows updates to be applied.
    workRequestDetails ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetails
    Provides the name and description of the job.
    managed_instance_group_id str
    The OCID of the managed instance group.
    windows_update_types Sequence[str]
    The type of Windows updates to be applied.
    work_request_details osmanagementhub.ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsArgs
    Provides the name and description of the job.
    managedInstanceGroupId String
    The OCID of the managed instance group.
    windowsUpdateTypes List<String>
    The type of Windows 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 ManagedInstanceGroupInstallWindowsUpdatesManagement 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 ManagedInstanceGroupInstallWindowsUpdatesManagement Resource

    Get an existing ManagedInstanceGroupInstallWindowsUpdatesManagement 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?: ManagedInstanceGroupInstallWindowsUpdatesManagementState, opts?: CustomResourceOptions): ManagedInstanceGroupInstallWindowsUpdatesManagement
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            managed_instance_group_id: Optional[str] = None,
            windows_update_types: Optional[Sequence[str]] = None,
            work_request_details: Optional[_osmanagementhub.ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsArgs] = None) -> ManagedInstanceGroupInstallWindowsUpdatesManagement
    func GetManagedInstanceGroupInstallWindowsUpdatesManagement(ctx *Context, name string, id IDInput, state *ManagedInstanceGroupInstallWindowsUpdatesManagementState, opts ...ResourceOption) (*ManagedInstanceGroupInstallWindowsUpdatesManagement, error)
    public static ManagedInstanceGroupInstallWindowsUpdatesManagement Get(string name, Input<string> id, ManagedInstanceGroupInstallWindowsUpdatesManagementState? state, CustomResourceOptions? opts = null)
    public static ManagedInstanceGroupInstallWindowsUpdatesManagement get(String name, Output<String> id, ManagedInstanceGroupInstallWindowsUpdatesManagementState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    ManagedInstanceGroupId string
    The OCID of the managed instance group.
    WindowsUpdateTypes List<string>
    The type of Windows updates to be applied.
    WorkRequestDetails ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetails
    Provides the name and description of the job.
    ManagedInstanceGroupId string
    The OCID of the managed instance group.
    WindowsUpdateTypes []string
    The type of Windows updates to be applied.
    WorkRequestDetails ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsArgs
    Provides the name and description of the job.
    managedInstanceGroupId String
    The OCID of the managed instance group.
    windowsUpdateTypes List<String>
    The type of Windows updates to be applied.
    workRequestDetails ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetails
    Provides the name and description of the job.
    managedInstanceGroupId string
    The OCID of the managed instance group.
    windowsUpdateTypes string[]
    The type of Windows updates to be applied.
    workRequestDetails ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetails
    Provides the name and description of the job.
    managed_instance_group_id str
    The OCID of the managed instance group.
    windows_update_types Sequence[str]
    The type of Windows updates to be applied.
    work_request_details osmanagementhub.ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsArgs
    Provides the name and description of the job.
    managedInstanceGroupId String
    The OCID of the managed instance group.
    windowsUpdateTypes List<String>
    The type of Windows updates to be applied.
    workRequestDetails Property Map
    Provides the name and description of the job.

    Supporting Types

    ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetails, ManagedInstanceGroupInstallWindowsUpdatesManagementWorkRequestDetailsArgs

    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

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

    $ pulumi import oci:OsManagementHub/managedInstanceGroupInstallWindowsUpdatesManagement:ManagedInstanceGroupInstallWindowsUpdatesManagement test_managed_instance_group_install_windows_updates_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
    Oracle Cloud Infrastructure v2.14.0 published on Tuesday, Oct 29, 2024 by Pulumi