1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. ManagedInstanceInstallWindowsUpdatesManagement
Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi

oci.OsManagementHub.ManagedInstanceInstallWindowsUpdatesManagement

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi

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

    Installs Windows updates on the specified managed instance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagedInstanceInstallWindowsUpdatesManagement = new oci.osmanagementhub.ManagedInstanceInstallWindowsUpdatesManagement("test_managed_instance_install_windows_updates_management", {
        managedInstanceId: testManagedInstance.id,
        windowsUpdateNames: testWindowsUpdate.name,
        windowsUpdateTypes: managedInstanceInstallWindowsUpdatesManagementWindowsUpdateTypes,
        workRequestDetails: {
            description: managedInstanceInstallWindowsUpdatesManagementWorkRequestDetailsDescription,
            displayName: managedInstanceInstallWindowsUpdatesManagementWorkRequestDetailsDisplayName,
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_instance_install_windows_updates_management = oci.os_management_hub.ManagedInstanceInstallWindowsUpdatesManagement("test_managed_instance_install_windows_updates_management",
        managed_instance_id=test_managed_instance["id"],
        windows_update_names=test_windows_update["name"],
        windows_update_types=managed_instance_install_windows_updates_management_windows_update_types,
        work_request_details={
            "description": managed_instance_install_windows_updates_management_work_request_details_description,
            "display_name": managed_instance_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.NewManagedInstanceInstallWindowsUpdatesManagement(ctx, "test_managed_instance_install_windows_updates_management", &OsManagementHub.ManagedInstanceInstallWindowsUpdatesManagementArgs{
    			ManagedInstanceId:  pulumi.Any(testManagedInstance.Id),
    			WindowsUpdateNames: pulumi.Any(testWindowsUpdate.Name),
    			WindowsUpdateTypes: pulumi.Any(managedInstanceInstallWindowsUpdatesManagementWindowsUpdateTypes),
    			WorkRequestDetails: &osmanagementhub.ManagedInstanceInstallWindowsUpdatesManagementWorkRequestDetailsArgs{
    				Description: pulumi.Any(managedInstanceInstallWindowsUpdatesManagementWorkRequestDetailsDescription),
    				DisplayName: pulumi.Any(managedInstanceInstallWindowsUpdatesManagementWorkRequestDetailsDisplayName),
    			},
    		})
    		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 testManagedInstanceInstallWindowsUpdatesManagement = new Oci.OsManagementHub.ManagedInstanceInstallWindowsUpdatesManagement("test_managed_instance_install_windows_updates_management", new()
        {
            ManagedInstanceId = testManagedInstance.Id,
            WindowsUpdateNames = testWindowsUpdate.Name,
            WindowsUpdateTypes = managedInstanceInstallWindowsUpdatesManagementWindowsUpdateTypes,
            WorkRequestDetails = new Oci.OsManagementHub.Inputs.ManagedInstanceInstallWindowsUpdatesManagementWorkRequestDetailsArgs
            {
                Description = managedInstanceInstallWindowsUpdatesManagementWorkRequestDetailsDescription,
                DisplayName = managedInstanceInstallWindowsUpdatesManagementWorkRequestDetailsDisplayName,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.OsManagementHub.ManagedInstanceInstallWindowsUpdatesManagement;
    import com.pulumi.oci.OsManagementHub.ManagedInstanceInstallWindowsUpdatesManagementArgs;
    import com.pulumi.oci.OsManagementHub.inputs.ManagedInstanceInstallWindowsUpdatesManagementWorkRequestDetailsArgs;
    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 testManagedInstanceInstallWindowsUpdatesManagement = new ManagedInstanceInstallWindowsUpdatesManagement("testManagedInstanceInstallWindowsUpdatesManagement", ManagedInstanceInstallWindowsUpdatesManagementArgs.builder()
                .managedInstanceId(testManagedInstance.id())
                .windowsUpdateNames(testWindowsUpdate.name())
                .windowsUpdateTypes(managedInstanceInstallWindowsUpdatesManagementWindowsUpdateTypes)
                .workRequestDetails(ManagedInstanceInstallWindowsUpdatesManagementWorkRequestDetailsArgs.builder()
                    .description(managedInstanceInstallWindowsUpdatesManagementWorkRequestDetailsDescription)
                    .displayName(managedInstanceInstallWindowsUpdatesManagementWorkRequestDetailsDisplayName)
                    .build())
                .build());
    
        }
    }
    
    resources:
      testManagedInstanceInstallWindowsUpdatesManagement:
        type: oci:OsManagementHub:ManagedInstanceInstallWindowsUpdatesManagement
        name: test_managed_instance_install_windows_updates_management
        properties:
          managedInstanceId: ${testManagedInstance.id}
          windowsUpdateNames: ${testWindowsUpdate.name}
          windowsUpdateTypes: ${managedInstanceInstallWindowsUpdatesManagementWindowsUpdateTypes}
          workRequestDetails:
            description: ${managedInstanceInstallWindowsUpdatesManagementWorkRequestDetailsDescription}
            displayName: ${managedInstanceInstallWindowsUpdatesManagementWorkRequestDetailsDisplayName}
    

    Create ManagedInstanceInstallWindowsUpdatesManagement Resource

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

    Constructor syntax

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

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

    ManagedInstanceId string
    The OCID of the managed instance.
    WindowsUpdateNames List<string>
    The list of Windows update unique identifiers. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
    WindowsUpdateTypes List<string>
    The types of Windows updates to be installed.
    WorkRequestDetails ManagedInstanceInstallWindowsUpdatesManagementWorkRequestDetails
    Provides the name and description of the job.
    ManagedInstanceId string
    The OCID of the managed instance.
    WindowsUpdateNames []string
    The list of Windows update unique identifiers. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
    WindowsUpdateTypes []string
    The types of Windows updates to be installed.
    WorkRequestDetails ManagedInstanceInstallWindowsUpdatesManagementWorkRequestDetailsArgs
    Provides the name and description of the job.
    managedInstanceId String
    The OCID of the managed instance.
    windowsUpdateNames List<String>
    The list of Windows update unique identifiers. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
    windowsUpdateTypes List<String>
    The types of Windows updates to be installed.
    workRequestDetails ManagedInstanceInstallWindowsUpdatesManagementWorkRequestDetails
    Provides the name and description of the job.
    managedInstanceId string
    The OCID of the managed instance.
    windowsUpdateNames string[]
    The list of Windows update unique identifiers. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
    windowsUpdateTypes string[]
    The types of Windows updates to be installed.
    workRequestDetails ManagedInstanceInstallWindowsUpdatesManagementWorkRequestDetails
    Provides the name and description of the job.
    managed_instance_id str
    The OCID of the managed instance.
    windows_update_names Sequence[str]
    The list of Windows update unique identifiers. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
    windows_update_types Sequence[str]
    The types of Windows updates to be installed.
    work_request_details osmanagementhub.ManagedInstanceInstallWindowsUpdatesManagementWorkRequestDetailsArgs
    Provides the name and description of the job.
    managedInstanceId String
    The OCID of the managed instance.
    windowsUpdateNames List<String>
    The list of Windows update unique identifiers. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
    windowsUpdateTypes List<String>
    The types of Windows updates to be installed.
    workRequestDetails Property Map
    Provides the name and description of the job.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ManagedInstanceInstallWindowsUpdatesManagement 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 ManagedInstanceInstallWindowsUpdatesManagement Resource

    Get an existing ManagedInstanceInstallWindowsUpdatesManagement 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?: ManagedInstanceInstallWindowsUpdatesManagementState, opts?: CustomResourceOptions): ManagedInstanceInstallWindowsUpdatesManagement
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            managed_instance_id: Optional[str] = None,
            windows_update_names: Optional[Sequence[str]] = None,
            windows_update_types: Optional[Sequence[str]] = None,
            work_request_details: Optional[_osmanagementhub.ManagedInstanceInstallWindowsUpdatesManagementWorkRequestDetailsArgs] = None) -> ManagedInstanceInstallWindowsUpdatesManagement
    func GetManagedInstanceInstallWindowsUpdatesManagement(ctx *Context, name string, id IDInput, state *ManagedInstanceInstallWindowsUpdatesManagementState, opts ...ResourceOption) (*ManagedInstanceInstallWindowsUpdatesManagement, error)
    public static ManagedInstanceInstallWindowsUpdatesManagement Get(string name, Input<string> id, ManagedInstanceInstallWindowsUpdatesManagementState? state, CustomResourceOptions? opts = null)
    public static ManagedInstanceInstallWindowsUpdatesManagement get(String name, Output<String> id, ManagedInstanceInstallWindowsUpdatesManagementState 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:
    ManagedInstanceId string
    The OCID of the managed instance.
    WindowsUpdateNames List<string>
    The list of Windows update unique identifiers. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
    WindowsUpdateTypes List<string>
    The types of Windows updates to be installed.
    WorkRequestDetails ManagedInstanceInstallWindowsUpdatesManagementWorkRequestDetails
    Provides the name and description of the job.
    ManagedInstanceId string
    The OCID of the managed instance.
    WindowsUpdateNames []string
    The list of Windows update unique identifiers. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
    WindowsUpdateTypes []string
    The types of Windows updates to be installed.
    WorkRequestDetails ManagedInstanceInstallWindowsUpdatesManagementWorkRequestDetailsArgs
    Provides the name and description of the job.
    managedInstanceId String
    The OCID of the managed instance.
    windowsUpdateNames List<String>
    The list of Windows update unique identifiers. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
    windowsUpdateTypes List<String>
    The types of Windows updates to be installed.
    workRequestDetails ManagedInstanceInstallWindowsUpdatesManagementWorkRequestDetails
    Provides the name and description of the job.
    managedInstanceId string
    The OCID of the managed instance.
    windowsUpdateNames string[]
    The list of Windows update unique identifiers. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
    windowsUpdateTypes string[]
    The types of Windows updates to be installed.
    workRequestDetails ManagedInstanceInstallWindowsUpdatesManagementWorkRequestDetails
    Provides the name and description of the job.
    managed_instance_id str
    The OCID of the managed instance.
    windows_update_names Sequence[str]
    The list of Windows update unique identifiers. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
    windows_update_types Sequence[str]
    The types of Windows updates to be installed.
    work_request_details osmanagementhub.ManagedInstanceInstallWindowsUpdatesManagementWorkRequestDetailsArgs
    Provides the name and description of the job.
    managedInstanceId String
    The OCID of the managed instance.
    windowsUpdateNames List<String>
    The list of Windows update unique identifiers. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
    windowsUpdateTypes List<String>
    The types of Windows updates to be installed.
    workRequestDetails Property Map
    Provides the name and description of the job.

    Supporting Types

    ManagedInstanceInstallWindowsUpdatesManagementWorkRequestDetails, ManagedInstanceInstallWindowsUpdatesManagementWorkRequestDetailsArgs

    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

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

    $ pulumi import oci:OsManagementHub/managedInstanceInstallWindowsUpdatesManagement:ManagedInstanceInstallWindowsUpdatesManagement test_managed_instance_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.18.0 published on Friday, Nov 22, 2024 by Pulumi