1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagement
  5. getManagedInstance
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.OsManagement.getManagedInstance

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    This data source provides details about a specific Managed Instance resource in Oracle Cloud Infrastructure OS Management service.

    Returns a specific Managed Instance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagedInstance = oci.OsManagement.getManagedInstance({
        managedInstanceId: testManagedInstanceOciOsmanagementManagedInstance.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_instance = oci.OsManagement.get_managed_instance(managed_instance_id=test_managed_instance_oci_osmanagement_managed_instance["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/OsManagement"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := OsManagement.GetManagedInstance(ctx, &osmanagement.GetManagedInstanceArgs{
    			ManagedInstanceId: testManagedInstanceOciOsmanagementManagedInstance.Id,
    		}, nil)
    		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 testManagedInstance = Oci.OsManagement.GetManagedInstance.Invoke(new()
        {
            ManagedInstanceId = testManagedInstanceOciOsmanagementManagedInstance.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.OsManagement.OsManagementFunctions;
    import com.pulumi.oci.OsManagement.inputs.GetManagedInstanceArgs;
    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) {
            final var testManagedInstance = OsManagementFunctions.getManagedInstance(GetManagedInstanceArgs.builder()
                .managedInstanceId(testManagedInstanceOciOsmanagementManagedInstance.id())
                .build());
    
        }
    }
    
    variables:
      testManagedInstance:
        fn::invoke:
          Function: oci:OsManagement:getManagedInstance
          Arguments:
            managedInstanceId: ${testManagedInstanceOciOsmanagementManagedInstance.id}
    

    Using getManagedInstance

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getManagedInstance(args: GetManagedInstanceArgs, opts?: InvokeOptions): Promise<GetManagedInstanceResult>
    function getManagedInstanceOutput(args: GetManagedInstanceOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceResult>
    def get_managed_instance(managed_instance_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetManagedInstanceResult
    def get_managed_instance_output(managed_instance_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceResult]
    func GetManagedInstance(ctx *Context, args *GetManagedInstanceArgs, opts ...InvokeOption) (*GetManagedInstanceResult, error)
    func GetManagedInstanceOutput(ctx *Context, args *GetManagedInstanceOutputArgs, opts ...InvokeOption) GetManagedInstanceResultOutput

    > Note: This function is named GetManagedInstance in the Go SDK.

    public static class GetManagedInstance 
    {
        public static Task<GetManagedInstanceResult> InvokeAsync(GetManagedInstanceArgs args, InvokeOptions? opts = null)
        public static Output<GetManagedInstanceResult> Invoke(GetManagedInstanceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagedInstanceResult> getManagedInstance(GetManagedInstanceArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagement/getManagedInstance:getManagedInstance
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ManagedInstanceId string
    OCID for the managed instance
    ManagedInstanceId string
    OCID for the managed instance
    managedInstanceId String
    OCID for the managed instance
    managedInstanceId string
    OCID for the managed instance
    managed_instance_id str
    OCID for the managed instance
    managedInstanceId String
    OCID for the managed instance

    getManagedInstance Result

    The following output properties are available:

    Autonomouses List<GetManagedInstanceAutonomouse>
    if present, indicates the Managed Instance is an autonomous instance. Holds all the Autonomous specific information
    BugUpdatesAvailable int
    Number of bug fix type updates available to be installed
    ChildSoftwareSources List<GetManagedInstanceChildSoftwareSource>
    list of child Software Sources attached to the Managed Instance
    CompartmentId string
    OCID for the Compartment
    Description string
    Information specified by the user about the managed instance
    DisplayName string
    User friendly name
    EnhancementUpdatesAvailable int
    Number of enhancement type updates available to be installed
    Id string
    software source identifier
    IsDataCollectionAuthorized bool
    True if user allow data collection for this instance
    IsRebootRequired bool
    Indicates whether a reboot is required to complete installation of updates.
    KspliceEffectiveKernelVersion string
    The ksplice effective kernel version
    LastBoot string
    Time at which the instance last booted
    LastCheckin string
    Time at which the instance last checked in
    ManagedInstanceGroups List<GetManagedInstanceManagedInstanceGroup>
    The ids of the managed instance groups of which this instance is a member.
    ManagedInstanceId string
    NotificationTopicId string
    OCID of the ONS topic used to send notification to users
    OsFamily string
    The Operating System type of the managed instance.
    OsKernelVersion string
    Operating System Kernel Version
    OsName string
    Operating System Name
    OsVersion string
    Operating System Version
    OtherUpdatesAvailable int
    Number of non-classified updates available to be installed
    ParentSoftwareSources List<GetManagedInstanceParentSoftwareSource>
    the parent (base) Software Source attached to the Managed Instance
    ScheduledJobCount int
    Number of scheduled jobs associated with this instance
    SecurityUpdatesAvailable int
    Number of security type updates available to be installed
    Status string
    status of the managed instance.
    UpdatesAvailable int
    Number of updates available to be installed
    WorkRequestCount int
    Number of work requests associated with this instance
    Autonomouses []GetManagedInstanceAutonomouse
    if present, indicates the Managed Instance is an autonomous instance. Holds all the Autonomous specific information
    BugUpdatesAvailable int
    Number of bug fix type updates available to be installed
    ChildSoftwareSources []GetManagedInstanceChildSoftwareSource
    list of child Software Sources attached to the Managed Instance
    CompartmentId string
    OCID for the Compartment
    Description string
    Information specified by the user about the managed instance
    DisplayName string
    User friendly name
    EnhancementUpdatesAvailable int
    Number of enhancement type updates available to be installed
    Id string
    software source identifier
    IsDataCollectionAuthorized bool
    True if user allow data collection for this instance
    IsRebootRequired bool
    Indicates whether a reboot is required to complete installation of updates.
    KspliceEffectiveKernelVersion string
    The ksplice effective kernel version
    LastBoot string
    Time at which the instance last booted
    LastCheckin string
    Time at which the instance last checked in
    ManagedInstanceGroups []GetManagedInstanceManagedInstanceGroup
    The ids of the managed instance groups of which this instance is a member.
    ManagedInstanceId string
    NotificationTopicId string
    OCID of the ONS topic used to send notification to users
    OsFamily string
    The Operating System type of the managed instance.
    OsKernelVersion string
    Operating System Kernel Version
    OsName string
    Operating System Name
    OsVersion string
    Operating System Version
    OtherUpdatesAvailable int
    Number of non-classified updates available to be installed
    ParentSoftwareSources []GetManagedInstanceParentSoftwareSource
    the parent (base) Software Source attached to the Managed Instance
    ScheduledJobCount int
    Number of scheduled jobs associated with this instance
    SecurityUpdatesAvailable int
    Number of security type updates available to be installed
    Status string
    status of the managed instance.
    UpdatesAvailable int
    Number of updates available to be installed
    WorkRequestCount int
    Number of work requests associated with this instance
    autonomouses List<GetManagedInstanceAutonomouse>
    if present, indicates the Managed Instance is an autonomous instance. Holds all the Autonomous specific information
    bugUpdatesAvailable Integer
    Number of bug fix type updates available to be installed
    childSoftwareSources List<GetManagedInstanceChildSoftwareSource>
    list of child Software Sources attached to the Managed Instance
    compartmentId String
    OCID for the Compartment
    description String
    Information specified by the user about the managed instance
    displayName String
    User friendly name
    enhancementUpdatesAvailable Integer
    Number of enhancement type updates available to be installed
    id String
    software source identifier
    isDataCollectionAuthorized Boolean
    True if user allow data collection for this instance
    isRebootRequired Boolean
    Indicates whether a reboot is required to complete installation of updates.
    kspliceEffectiveKernelVersion String
    The ksplice effective kernel version
    lastBoot String
    Time at which the instance last booted
    lastCheckin String
    Time at which the instance last checked in
    managedInstanceGroups List<GetManagedInstanceManagedInstanceGroup>
    The ids of the managed instance groups of which this instance is a member.
    managedInstanceId String
    notificationTopicId String
    OCID of the ONS topic used to send notification to users
    osFamily String
    The Operating System type of the managed instance.
    osKernelVersion String
    Operating System Kernel Version
    osName String
    Operating System Name
    osVersion String
    Operating System Version
    otherUpdatesAvailable Integer
    Number of non-classified updates available to be installed
    parentSoftwareSources List<GetManagedInstanceParentSoftwareSource>
    the parent (base) Software Source attached to the Managed Instance
    scheduledJobCount Integer
    Number of scheduled jobs associated with this instance
    securityUpdatesAvailable Integer
    Number of security type updates available to be installed
    status String
    status of the managed instance.
    updatesAvailable Integer
    Number of updates available to be installed
    workRequestCount Integer
    Number of work requests associated with this instance
    autonomouses GetManagedInstanceAutonomouse[]
    if present, indicates the Managed Instance is an autonomous instance. Holds all the Autonomous specific information
    bugUpdatesAvailable number
    Number of bug fix type updates available to be installed
    childSoftwareSources GetManagedInstanceChildSoftwareSource[]
    list of child Software Sources attached to the Managed Instance
    compartmentId string
    OCID for the Compartment
    description string
    Information specified by the user about the managed instance
    displayName string
    User friendly name
    enhancementUpdatesAvailable number
    Number of enhancement type updates available to be installed
    id string
    software source identifier
    isDataCollectionAuthorized boolean
    True if user allow data collection for this instance
    isRebootRequired boolean
    Indicates whether a reboot is required to complete installation of updates.
    kspliceEffectiveKernelVersion string
    The ksplice effective kernel version
    lastBoot string
    Time at which the instance last booted
    lastCheckin string
    Time at which the instance last checked in
    managedInstanceGroups GetManagedInstanceManagedInstanceGroup[]
    The ids of the managed instance groups of which this instance is a member.
    managedInstanceId string
    notificationTopicId string
    OCID of the ONS topic used to send notification to users
    osFamily string
    The Operating System type of the managed instance.
    osKernelVersion string
    Operating System Kernel Version
    osName string
    Operating System Name
    osVersion string
    Operating System Version
    otherUpdatesAvailable number
    Number of non-classified updates available to be installed
    parentSoftwareSources GetManagedInstanceParentSoftwareSource[]
    the parent (base) Software Source attached to the Managed Instance
    scheduledJobCount number
    Number of scheduled jobs associated with this instance
    securityUpdatesAvailable number
    Number of security type updates available to be installed
    status string
    status of the managed instance.
    updatesAvailable number
    Number of updates available to be installed
    workRequestCount number
    Number of work requests associated with this instance
    autonomouses Sequence[osmanagement.GetManagedInstanceAutonomouse]
    if present, indicates the Managed Instance is an autonomous instance. Holds all the Autonomous specific information
    bug_updates_available int
    Number of bug fix type updates available to be installed
    child_software_sources Sequence[osmanagement.GetManagedInstanceChildSoftwareSource]
    list of child Software Sources attached to the Managed Instance
    compartment_id str
    OCID for the Compartment
    description str
    Information specified by the user about the managed instance
    display_name str
    User friendly name
    enhancement_updates_available int
    Number of enhancement type updates available to be installed
    id str
    software source identifier
    is_data_collection_authorized bool
    True if user allow data collection for this instance
    is_reboot_required bool
    Indicates whether a reboot is required to complete installation of updates.
    ksplice_effective_kernel_version str
    The ksplice effective kernel version
    last_boot str
    Time at which the instance last booted
    last_checkin str
    Time at which the instance last checked in
    managed_instance_groups Sequence[osmanagement.GetManagedInstanceManagedInstanceGroup]
    The ids of the managed instance groups of which this instance is a member.
    managed_instance_id str
    notification_topic_id str
    OCID of the ONS topic used to send notification to users
    os_family str
    The Operating System type of the managed instance.
    os_kernel_version str
    Operating System Kernel Version
    os_name str
    Operating System Name
    os_version str
    Operating System Version
    other_updates_available int
    Number of non-classified updates available to be installed
    parent_software_sources Sequence[osmanagement.GetManagedInstanceParentSoftwareSource]
    the parent (base) Software Source attached to the Managed Instance
    scheduled_job_count int
    Number of scheduled jobs associated with this instance
    security_updates_available int
    Number of security type updates available to be installed
    status str
    status of the managed instance.
    updates_available int
    Number of updates available to be installed
    work_request_count int
    Number of work requests associated with this instance
    autonomouses List<Property Map>
    if present, indicates the Managed Instance is an autonomous instance. Holds all the Autonomous specific information
    bugUpdatesAvailable Number
    Number of bug fix type updates available to be installed
    childSoftwareSources List<Property Map>
    list of child Software Sources attached to the Managed Instance
    compartmentId String
    OCID for the Compartment
    description String
    Information specified by the user about the managed instance
    displayName String
    User friendly name
    enhancementUpdatesAvailable Number
    Number of enhancement type updates available to be installed
    id String
    software source identifier
    isDataCollectionAuthorized Boolean
    True if user allow data collection for this instance
    isRebootRequired Boolean
    Indicates whether a reboot is required to complete installation of updates.
    kspliceEffectiveKernelVersion String
    The ksplice effective kernel version
    lastBoot String
    Time at which the instance last booted
    lastCheckin String
    Time at which the instance last checked in
    managedInstanceGroups List<Property Map>
    The ids of the managed instance groups of which this instance is a member.
    managedInstanceId String
    notificationTopicId String
    OCID of the ONS topic used to send notification to users
    osFamily String
    The Operating System type of the managed instance.
    osKernelVersion String
    Operating System Kernel Version
    osName String
    Operating System Name
    osVersion String
    Operating System Version
    otherUpdatesAvailable Number
    Number of non-classified updates available to be installed
    parentSoftwareSources List<Property Map>
    the parent (base) Software Source attached to the Managed Instance
    scheduledJobCount Number
    Number of scheduled jobs associated with this instance
    securityUpdatesAvailable Number
    Number of security type updates available to be installed
    status String
    status of the managed instance.
    updatesAvailable Number
    Number of updates available to be installed
    workRequestCount Number
    Number of work requests associated with this instance

    Supporting Types

    GetManagedInstanceAutonomouse

    IsAutoUpdateEnabled bool
    True if daily updates are enabled
    IsAutoUpdateEnabled bool
    True if daily updates are enabled
    isAutoUpdateEnabled Boolean
    True if daily updates are enabled
    isAutoUpdateEnabled boolean
    True if daily updates are enabled
    is_auto_update_enabled bool
    True if daily updates are enabled
    isAutoUpdateEnabled Boolean
    True if daily updates are enabled

    GetManagedInstanceChildSoftwareSource

    Id string
    software source identifier
    Name string
    software source name
    Id string
    software source identifier
    Name string
    software source name
    id String
    software source identifier
    name String
    software source name
    id string
    software source identifier
    name string
    software source name
    id str
    software source identifier
    name str
    software source name
    id String
    software source identifier
    name String
    software source name

    GetManagedInstanceManagedInstanceGroup

    DisplayName string
    User friendly name
    Id string
    software source identifier
    DisplayName string
    User friendly name
    Id string
    software source identifier
    displayName String
    User friendly name
    id String
    software source identifier
    displayName string
    User friendly name
    id string
    software source identifier
    display_name str
    User friendly name
    id str
    software source identifier
    displayName String
    User friendly name
    id String
    software source identifier

    GetManagedInstanceParentSoftwareSource

    Id string
    software source identifier
    Name string
    software source name
    Id string
    software source identifier
    Name string
    software source name
    id String
    software source identifier
    name String
    software source name
    id string
    software source identifier
    name string
    software source name
    id str
    software source identifier
    name str
    software source name
    id String
    software source identifier
    name String
    software source name

    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 v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi