1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagement
  5. getManagedInstanceGroup
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.OsManagement.getManagedInstanceGroup

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

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

    Returns a specific Managed Instance Group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagedInstanceGroup = oci.OsManagement.getManagedInstanceGroup({
        managedInstanceGroupId: oci_osmanagement_managed_instance_group.test_managed_instance_group.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_instance_group = oci.OsManagement.get_managed_instance_group(managed_instance_group_id=oci_osmanagement_managed_instance_group["test_managed_instance_group"]["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.GetManagedInstanceGroup(ctx, &osmanagement.GetManagedInstanceGroupArgs{
    			ManagedInstanceGroupId: oci_osmanagement_managed_instance_group.Test_managed_instance_group.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.OsManagement.GetManagedInstanceGroup.Invoke(new()
        {
            ManagedInstanceGroupId = oci_osmanagement_managed_instance_group.Test_managed_instance_group.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.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 = OsManagementFunctions.getManagedInstanceGroup(GetManagedInstanceGroupArgs.builder()
                .managedInstanceGroupId(oci_osmanagement_managed_instance_group.test_managed_instance_group().id())
                .build());
    
        }
    }
    
    variables:
      testManagedInstanceGroup:
        fn::invoke:
          Function: oci:OsManagement:getManagedInstanceGroup
          Arguments:
            managedInstanceGroupId: ${oci_osmanagement_managed_instance_group.test_managed_instance_group.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:OsManagement/getManagedInstanceGroup:getManagedInstanceGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ManagedInstanceGroupId string
    OCID for the managed instance group
    ManagedInstanceGroupId string
    OCID for the managed instance group
    managedInstanceGroupId String
    OCID for the managed instance group
    managedInstanceGroupId string
    OCID for the managed instance group
    managed_instance_group_id str
    OCID for the managed instance group
    managedInstanceGroupId String
    OCID for the managed instance group

    getManagedInstanceGroup Result

    The following output properties are available:

    CompartmentId string
    OCID for the Compartment
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    Information specified by the user about the managed instance group
    DisplayName string
    User friendly name
    FreeformTags Dictionary<string, object>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    unique identifier that is immutable on creation
    ManagedInstanceCount int
    ManagedInstanceGroupId string
    ManagedInstanceIds List<string>
    ManagedInstances List<GetManagedInstanceGroupManagedInstance>
    list of Managed Instances in the group
    OsFamily string
    The Operating System type of the managed instance.
    State string
    The current state of the Software Source.
    CompartmentId string
    OCID for the Compartment
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    Information specified by the user about the managed instance group
    DisplayName string
    User friendly name
    FreeformTags map[string]interface{}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    unique identifier that is immutable on creation
    ManagedInstanceCount int
    ManagedInstanceGroupId string
    ManagedInstanceIds []string
    ManagedInstances []GetManagedInstanceGroupManagedInstance
    list of Managed Instances in the group
    OsFamily string
    The Operating System type of the managed instance.
    State string
    The current state of the Software Source.
    compartmentId String
    OCID for the Compartment
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    Information specified by the user about the managed instance group
    displayName String
    User friendly name
    freeformTags Map<String,Object>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    unique identifier that is immutable on creation
    managedInstanceCount Integer
    managedInstanceGroupId String
    managedInstanceIds List<String>
    managedInstances List<GetManagedInstanceGroupManagedInstance>
    list of Managed Instances in the group
    osFamily String
    The Operating System type of the managed instance.
    state String
    The current state of the Software Source.
    compartmentId string
    OCID for the Compartment
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    Information specified by the user about the managed instance group
    displayName string
    User friendly name
    freeformTags {[key: string]: any}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id string
    unique identifier that is immutable on creation
    managedInstanceCount number
    managedInstanceGroupId string
    managedInstanceIds string[]
    managedInstances GetManagedInstanceGroupManagedInstance[]
    list of Managed Instances in the group
    osFamily string
    The Operating System type of the managed instance.
    state string
    The current state of the Software Source.
    compartment_id str
    OCID for the Compartment
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description str
    Information specified by the user about the managed instance group
    display_name str
    User friendly name
    freeform_tags Mapping[str, Any]
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id str
    unique identifier that is immutable on creation
    managed_instance_count int
    managed_instance_group_id str
    managed_instance_ids Sequence[str]
    managed_instances Sequence[osmanagement.GetManagedInstanceGroupManagedInstance]
    list of Managed Instances in the group
    os_family str
    The Operating System type of the managed instance.
    state str
    The current state of the Software Source.
    compartmentId String
    OCID for the Compartment
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    Information specified by the user about the managed instance group
    displayName String
    User friendly name
    freeformTags Map<Any>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    unique identifier that is immutable on creation
    managedInstanceCount Number
    managedInstanceGroupId String
    managedInstanceIds List<String>
    managedInstances List<Property Map>
    list of Managed Instances in the group
    osFamily String
    The Operating System type of the managed instance.
    state String
    The current state of the Software Source.

    Supporting Types

    GetManagedInstanceGroupManagedInstance

    DisplayName string
    User friendly name
    Id string
    unique identifier that is immutable on creation
    DisplayName string
    User friendly name
    Id string
    unique identifier that is immutable on creation
    displayName String
    User friendly name
    id String
    unique identifier that is immutable on creation
    displayName string
    User friendly name
    id string
    unique identifier that is immutable on creation
    display_name str
    User friendly name
    id str
    unique identifier that is immutable on creation
    displayName String
    User friendly name
    id String
    unique identifier that is immutable on creation

    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.32.0 published on Thursday, Apr 18, 2024 by Pulumi