Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 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 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:
- Managed
Instance stringGroup Id - OCID for the managed instance group
- Managed
Instance stringGroup Id - OCID for the managed instance group
- managed
Instance StringGroup Id - OCID for the managed instance group
- managed
Instance stringGroup Id - OCID for the managed instance group
- managed_
instance_ strgroup_ id - OCID for the managed instance group
- managed
Instance StringGroup Id - OCID for the managed instance group
getManagedInstanceGroup Result
The following output properties are available:
- Compartment
Id 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
- Display
Name 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
- Managed
Instance intCount - Managed
Instance stringGroup Id - Managed
Instance List<string>Ids - Managed
Instances List<GetManaged Instance Group Managed Instance> - list of Managed Instances in the group
- Os
Family string - The Operating System type of the managed instance.
- State string
- The current state of the Software Source.
- Compartment
Id 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
- Display
Name 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
- Managed
Instance intCount - Managed
Instance stringGroup Id - Managed
Instance []stringIds - Managed
Instances []GetManaged Instance Group Managed Instance - list of Managed Instances in the group
- Os
Family string - The Operating System type of the managed instance.
- State string
- The current state of the Software Source.
- compartment
Id 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
- display
Name 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
- managed
Instance IntegerCount - managed
Instance StringGroup Id - managed
Instance List<String>Ids - managed
Instances List<GetManaged Instance Group Managed Instance> - list of Managed Instances in the group
- os
Family String - The Operating System type of the managed instance.
- state String
- The current state of the Software Source.
- compartment
Id 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
- display
Name 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
- managed
Instance numberCount - managed
Instance stringGroup Id - managed
Instance string[]Ids - managed
Instances GetManaged Instance Group Managed Instance[] - list of Managed Instances in the group
- os
Family 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[osmanagement.Get Managed 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.
- compartment
Id 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
- display
Name 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
- managed
Instance NumberCount - managed
Instance StringGroup Id - managed
Instance List<String>Ids - managed
Instances List<Property Map> - list of Managed Instances in the group
- os
Family String - The Operating System type of the managed instance.
- state String
- The current state of the Software Source.
Supporting Types
GetManagedInstanceGroupManagedInstance
- Display
Name string - User friendly name
- Id string
- unique identifier that is immutable on creation
- Display
Name string - User friendly name
- Id string
- unique identifier that is immutable on creation
- display
Name String - User friendly name
- id String
- unique identifier that is immutable on creation
- display
Name 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
- display
Name 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.