1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getManagedInstanceGroup
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.OsManagementHub.getManagedInstanceGroup

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

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

    Gets information about the specified managed instance group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagedInstanceGroup = oci.OsManagementHub.getManagedInstanceGroup({
        managedInstanceGroupId: testManagedInstanceGroupOciOsManagementHubManagedInstanceGroup.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_instance_group = oci.OsManagementHub.get_managed_instance_group(managed_instance_group_id=test_managed_instance_group_oci_os_management_hub_managed_instance_group["id"])
    
    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.GetManagedInstanceGroup(ctx, &osmanagementhub.GetManagedInstanceGroupArgs{
    			ManagedInstanceGroupId: testManagedInstanceGroupOciOsManagementHubManagedInstanceGroup.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 testManagedInstanceGroup = Oci.OsManagementHub.GetManagedInstanceGroup.Invoke(new()
        {
            ManagedInstanceGroupId = testManagedInstanceGroupOciOsManagementHubManagedInstanceGroup.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.OsManagementHub.OsManagementHubFunctions;
    import com.pulumi.oci.OsManagementHub.inputs.GetManagedInstanceGroupArgs;
    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 testManagedInstanceGroup = OsManagementHubFunctions.getManagedInstanceGroup(GetManagedInstanceGroupArgs.builder()
                .managedInstanceGroupId(testManagedInstanceGroupOciOsManagementHubManagedInstanceGroup.id())
                .build());
    
        }
    }
    
    variables:
      testManagedInstanceGroup:
        fn::invoke:
          Function: oci:OsManagementHub:getManagedInstanceGroup
          Arguments:
            managedInstanceGroupId: ${testManagedInstanceGroupOciOsManagementHubManagedInstanceGroup.id}
    

    Using getManagedInstanceGroup

    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 getManagedInstanceGroup(args: GetManagedInstanceGroupArgs, opts?: InvokeOptions): Promise<GetManagedInstanceGroupResult>
    function getManagedInstanceGroupOutput(args: GetManagedInstanceGroupOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceGroupResult>
    def get_managed_instance_group(managed_instance_group_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetManagedInstanceGroupResult
    def get_managed_instance_group_output(managed_instance_group_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceGroupResult]
    func GetManagedInstanceGroup(ctx *Context, args *GetManagedInstanceGroupArgs, opts ...InvokeOption) (*GetManagedInstanceGroupResult, error)
    func GetManagedInstanceGroupOutput(ctx *Context, args *GetManagedInstanceGroupOutputArgs, opts ...InvokeOption) GetManagedInstanceGroupResultOutput

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

    public static class GetManagedInstanceGroup 
    {
        public static Task<GetManagedInstanceGroupResult> InvokeAsync(GetManagedInstanceGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetManagedInstanceGroupResult> Invoke(GetManagedInstanceGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagedInstanceGroupResult> getManagedInstanceGroup(GetManagedInstanceGroupArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagementHub/getManagedInstanceGroup:getManagedInstanceGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ManagedInstanceGroupId string
    The OCID of the managed instance group.
    ManagedInstanceGroupId string
    The OCID of the managed instance group.
    managedInstanceGroupId String
    The OCID of the managed instance group.
    managedInstanceGroupId string
    The OCID of the managed instance group.
    managed_instance_group_id str
    The OCID of the managed instance group.
    managedInstanceGroupId String
    The OCID of the managed instance group.

    getManagedInstanceGroup Result

    The following output properties are available:

    ArchType string
    The CPU architecture of the instances in the managed instance group.
    AutonomousSettings List<GetManagedInstanceGroupAutonomousSetting>
    Settings for the Autonomous Linux service.
    CompartmentId string
    The OCID of the compartment that contains the managed instance group.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    Software source description.
    DisplayName string
    Software source name.
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the software source.
    IsManagedByAutonomousLinux bool
    Indicates whether the Autonomous Linux service manages the group.
    Location string
    The location of managed instances attached to the group.
    ManagedInstanceCount int
    The number of managed instances in the group.
    ManagedInstanceGroupId string
    ManagedInstanceIds List<string>
    The list of managed instance OCIDs attached to the managed instance group.
    NotificationTopicId string
    The OCID for the Oracle Notifications service (ONS) topic. ONS is the channel used to send notifications to the customer.
    OsFamily string
    The operating system type of the instances in the managed instance group.
    PendingJobCount int
    The number of scheduled jobs pending against the managed instance group.
    SoftwareSourceIds List<string>
    The list of software source OCIDs that the managed instance group will use.
    SoftwareSources List<GetManagedInstanceGroupSoftwareSource>
    The list of software sources that the managed instance group will use.
    State string
    The current state of the managed instance group.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the managed instance group was created (in RFC 3339 format).
    TimeModified string
    The time the managed instance group was last modified (in RFC 3339 format).
    VendorName string
    The vendor of the operating system used by the managed instances in the group.
    ArchType string
    The CPU architecture of the instances in the managed instance group.
    AutonomousSettings []GetManagedInstanceGroupAutonomousSetting
    Settings for the Autonomous Linux service.
    CompartmentId string
    The OCID of the compartment that contains the managed instance group.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    Software source description.
    DisplayName string
    Software source name.
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the software source.
    IsManagedByAutonomousLinux bool
    Indicates whether the Autonomous Linux service manages the group.
    Location string
    The location of managed instances attached to the group.
    ManagedInstanceCount int
    The number of managed instances in the group.
    ManagedInstanceGroupId string
    ManagedInstanceIds []string
    The list of managed instance OCIDs attached to the managed instance group.
    NotificationTopicId string
    The OCID for the Oracle Notifications service (ONS) topic. ONS is the channel used to send notifications to the customer.
    OsFamily string
    The operating system type of the instances in the managed instance group.
    PendingJobCount int
    The number of scheduled jobs pending against the managed instance group.
    SoftwareSourceIds []string
    The list of software source OCIDs that the managed instance group will use.
    SoftwareSources []GetManagedInstanceGroupSoftwareSource
    The list of software sources that the managed instance group will use.
    State string
    The current state of the managed instance group.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the managed instance group was created (in RFC 3339 format).
    TimeModified string
    The time the managed instance group was last modified (in RFC 3339 format).
    VendorName string
    The vendor of the operating system used by the managed instances in the group.
    archType String
    The CPU architecture of the instances in the managed instance group.
    autonomousSettings List<GetManagedInstanceGroupAutonomousSetting>
    Settings for the Autonomous Linux service.
    compartmentId String
    The OCID of the compartment that contains the managed instance group.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    Software source description.
    displayName String
    Software source name.
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the software source.
    isManagedByAutonomousLinux Boolean
    Indicates whether the Autonomous Linux service manages the group.
    location String
    The location of managed instances attached to the group.
    managedInstanceCount Integer
    The number of managed instances in the group.
    managedInstanceGroupId String
    managedInstanceIds List<String>
    The list of managed instance OCIDs attached to the managed instance group.
    notificationTopicId String
    The OCID for the Oracle Notifications service (ONS) topic. ONS is the channel used to send notifications to the customer.
    osFamily String
    The operating system type of the instances in the managed instance group.
    pendingJobCount Integer
    The number of scheduled jobs pending against the managed instance group.
    softwareSourceIds List<String>
    The list of software source OCIDs that the managed instance group will use.
    softwareSources List<GetManagedInstanceGroupSoftwareSource>
    The list of software sources that the managed instance group will use.
    state String
    The current state of the managed instance group.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the managed instance group was created (in RFC 3339 format).
    timeModified String
    The time the managed instance group was last modified (in RFC 3339 format).
    vendorName String
    The vendor of the operating system used by the managed instances in the group.
    archType string
    The CPU architecture of the instances in the managed instance group.
    autonomousSettings GetManagedInstanceGroupAutonomousSetting[]
    Settings for the Autonomous Linux service.
    compartmentId string
    The OCID of the compartment that contains the managed instance group.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    Software source description.
    displayName string
    Software source name.
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The OCID of the software source.
    isManagedByAutonomousLinux boolean
    Indicates whether the Autonomous Linux service manages the group.
    location string
    The location of managed instances attached to the group.
    managedInstanceCount number
    The number of managed instances in the group.
    managedInstanceGroupId string
    managedInstanceIds string[]
    The list of managed instance OCIDs attached to the managed instance group.
    notificationTopicId string
    The OCID for the Oracle Notifications service (ONS) topic. ONS is the channel used to send notifications to the customer.
    osFamily string
    The operating system type of the instances in the managed instance group.
    pendingJobCount number
    The number of scheduled jobs pending against the managed instance group.
    softwareSourceIds string[]
    The list of software source OCIDs that the managed instance group will use.
    softwareSources GetManagedInstanceGroupSoftwareSource[]
    The list of software sources that the managed instance group will use.
    state string
    The current state of the managed instance group.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time the managed instance group was created (in RFC 3339 format).
    timeModified string
    The time the managed instance group was last modified (in RFC 3339 format).
    vendorName string
    The vendor of the operating system used by the managed instances in the group.
    arch_type str
    The CPU architecture of the instances in the managed instance group.
    autonomous_settings Sequence[osmanagementhub.GetManagedInstanceGroupAutonomousSetting]
    Settings for the Autonomous Linux service.
    compartment_id str
    The OCID of the compartment that contains the managed instance group.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description str
    Software source description.
    display_name str
    Software source name.
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    The OCID of the software source.
    is_managed_by_autonomous_linux bool
    Indicates whether the Autonomous Linux service manages the group.
    location str
    The location of managed instances attached to the group.
    managed_instance_count int
    The number of managed instances in the group.
    managed_instance_group_id str
    managed_instance_ids Sequence[str]
    The list of managed instance OCIDs attached to the managed instance group.
    notification_topic_id str
    The OCID for the Oracle Notifications service (ONS) topic. ONS is the channel used to send notifications to the customer.
    os_family str
    The operating system type of the instances in the managed instance group.
    pending_job_count int
    The number of scheduled jobs pending against the managed instance group.
    software_source_ids Sequence[str]
    The list of software source OCIDs that the managed instance group will use.
    software_sources Sequence[osmanagementhub.GetManagedInstanceGroupSoftwareSource]
    The list of software sources that the managed instance group will use.
    state str
    The current state of the managed instance group.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The time the managed instance group was created (in RFC 3339 format).
    time_modified str
    The time the managed instance group was last modified (in RFC 3339 format).
    vendor_name str
    The vendor of the operating system used by the managed instances in the group.
    archType String
    The CPU architecture of the instances in the managed instance group.
    autonomousSettings List<Property Map>
    Settings for the Autonomous Linux service.
    compartmentId String
    The OCID of the compartment that contains the managed instance group.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    Software source description.
    displayName String
    Software source name.
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the software source.
    isManagedByAutonomousLinux Boolean
    Indicates whether the Autonomous Linux service manages the group.
    location String
    The location of managed instances attached to the group.
    managedInstanceCount Number
    The number of managed instances in the group.
    managedInstanceGroupId String
    managedInstanceIds List<String>
    The list of managed instance OCIDs attached to the managed instance group.
    notificationTopicId String
    The OCID for the Oracle Notifications service (ONS) topic. ONS is the channel used to send notifications to the customer.
    osFamily String
    The operating system type of the instances in the managed instance group.
    pendingJobCount Number
    The number of scheduled jobs pending against the managed instance group.
    softwareSourceIds List<String>
    The list of software source OCIDs that the managed instance group will use.
    softwareSources List<Property Map>
    The list of software sources that the managed instance group will use.
    state String
    The current state of the managed instance group.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the managed instance group was created (in RFC 3339 format).
    timeModified String
    The time the managed instance group was last modified (in RFC 3339 format).
    vendorName String
    The vendor of the operating system used by the managed instances in the group.

    Supporting Types

    GetManagedInstanceGroupAutonomousSetting

    IsDataCollectionAuthorized bool
    Indicates whether Autonomous Linux will collect crash files. This setting can be changed by the user.
    ScheduledJobId string
    The OCID of the restricted scheduled job associated with this instance. This value cannot be deleted by the user.
    IsDataCollectionAuthorized bool
    Indicates whether Autonomous Linux will collect crash files. This setting can be changed by the user.
    ScheduledJobId string
    The OCID of the restricted scheduled job associated with this instance. This value cannot be deleted by the user.
    isDataCollectionAuthorized Boolean
    Indicates whether Autonomous Linux will collect crash files. This setting can be changed by the user.
    scheduledJobId String
    The OCID of the restricted scheduled job associated with this instance. This value cannot be deleted by the user.
    isDataCollectionAuthorized boolean
    Indicates whether Autonomous Linux will collect crash files. This setting can be changed by the user.
    scheduledJobId string
    The OCID of the restricted scheduled job associated with this instance. This value cannot be deleted by the user.
    is_data_collection_authorized bool
    Indicates whether Autonomous Linux will collect crash files. This setting can be changed by the user.
    scheduled_job_id str
    The OCID of the restricted scheduled job associated with this instance. This value cannot be deleted by the user.
    isDataCollectionAuthorized Boolean
    Indicates whether Autonomous Linux will collect crash files. This setting can be changed by the user.
    scheduledJobId String
    The OCID of the restricted scheduled job associated with this instance. This value cannot be deleted by the user.

    GetManagedInstanceGroupSoftwareSource

    Description string
    Software source description.
    DisplayName string
    Software source name.
    Id string
    The OCID of the software source.
    IsMandatoryForAutonomousLinux bool
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    SoftwareSourceType string
    Type of the software source.
    Description string
    Software source description.
    DisplayName string
    Software source name.
    Id string
    The OCID of the software source.
    IsMandatoryForAutonomousLinux bool
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    SoftwareSourceType string
    Type of the software source.
    description String
    Software source description.
    displayName String
    Software source name.
    id String
    The OCID of the software source.
    isMandatoryForAutonomousLinux Boolean
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    softwareSourceType String
    Type of the software source.
    description string
    Software source description.
    displayName string
    Software source name.
    id string
    The OCID of the software source.
    isMandatoryForAutonomousLinux boolean
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    softwareSourceType string
    Type of the software source.
    description str
    Software source description.
    display_name str
    Software source name.
    id str
    The OCID of the software source.
    is_mandatory_for_autonomous_linux bool
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    software_source_type str
    Type of the software source.
    description String
    Software source description.
    displayName String
    Software source name.
    id String
    The OCID of the software source.
    isMandatoryForAutonomousLinux Boolean
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    softwareSourceType String
    Type of the software source.

    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.11.0 published on Thursday, Sep 19, 2024 by Pulumi