Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.OsManagement.getManagedInstanceGroup
Explore with Pulumi AI
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: testManagedInstanceGroupOciOsmanagementManagedInstanceGroup.id,
});
import pulumi
import pulumi_oci as oci
test_managed_instance_group = oci.OsManagement.get_managed_instance_group(managed_instance_group_id=test_managed_instance_group_oci_osmanagement_managed_instance_group["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/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: testManagedInstanceGroupOciOsmanagementManagedInstanceGroup.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 = testManagedInstanceGroupOciOsmanagementManagedInstanceGroup.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(testManagedInstanceGroupOciOsmanagementManagedInstanceGroup.id())
            .build());
    }
}
variables:
  testManagedInstanceGroup:
    fn::invoke:
      function: oci:OsManagement:getManagedInstanceGroup
      arguments:
        managedInstanceGroupId: ${testManagedInstanceGroupOciOsmanagementManagedInstanceGroup.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 LookupManagedInstanceGroup(ctx *Context, args *LookupManagedInstanceGroupArgs, opts ...InvokeOption) (*LookupManagedInstanceGroupResult, error)
func LookupManagedInstanceGroupOutput(ctx *Context, args *LookupManagedInstanceGroupOutputArgs, opts ...InvokeOption) LookupManagedInstanceGroupResultOutput> Note: This function is named LookupManagedInstanceGroup 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)
public static Output<GetManagedInstanceGroupResult> getManagedInstanceGroup(GetManagedInstanceGroupArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OsManagement/getManagedInstanceGroup:getManagedInstanceGroup
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ManagedInstance stringGroup Id 
- OCID for the managed instance group
- ManagedInstance stringGroup Id 
- OCID for the managed instance group
- managedInstance StringGroup Id 
- OCID for the managed instance group
- managedInstance stringGroup Id 
- OCID for the managed instance group
- managed_instance_ strgroup_ id 
- OCID for the managed instance group
- managedInstance StringGroup Id 
- OCID for the managed instance group
getManagedInstanceGroup Result
The following output properties are available:
- CompartmentId string
- OCID for the Compartment
- Dictionary<string, string>
- 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
- Dictionary<string, string>
- 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
- ManagedInstance intCount 
- ManagedInstance stringGroup Id 
- ManagedInstance List<string>Ids 
- ManagedInstances List<GetManaged Instance Group Managed Instance> 
- 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
- map[string]string
- 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
- map[string]string
- 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
- ManagedInstance intCount 
- ManagedInstance stringGroup Id 
- ManagedInstance []stringIds 
- ManagedInstances []GetManaged Instance Group Managed Instance 
- 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
- Map<String,String>
- 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
- Map<String,String>
- 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
- managedInstance IntegerCount 
- managedInstance StringGroup Id 
- managedInstance List<String>Ids 
- managedInstances List<GetManaged Instance Group Managed Instance> 
- 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
- {[key: string]: string}
- 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
- {[key: string]: string}
- 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
- managedInstance numberCount 
- managedInstance stringGroup Id 
- managedInstance string[]Ids 
- managedInstances GetManaged Instance Group Managed Instance[] 
- 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
- Mapping[str, str]
- 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
- Mapping[str, str]
- 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_ intcount 
- managed_instance_ strgroup_ id 
- managed_instance_ Sequence[str]ids 
- managed_instances Sequence[GetManaged Instance Group Managed Instance] 
- 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
- Map<String>
- 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
- Map<String>
- 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
- managedInstance NumberCount 
- managedInstance StringGroup Id 
- managedInstance List<String>Ids 
- 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 ociTerraform Provider.