Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.OsManagement.getManagedInstanceGroups
Explore with Pulumi AI
This data source provides the list of Managed Instance Groups in Oracle Cloud Infrastructure OS Management service.
Returns a list of all Managed Instance Groups.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedInstanceGroups = oci.OsManagement.getManagedInstanceGroups({
compartmentId: compartmentId,
displayName: managedInstanceGroupDisplayName,
osFamily: managedInstanceGroupOsFamily,
state: managedInstanceGroupState,
});
import pulumi
import pulumi_oci as oci
test_managed_instance_groups = oci.OsManagement.get_managed_instance_groups(compartment_id=compartment_id,
display_name=managed_instance_group_display_name,
os_family=managed_instance_group_os_family,
state=managed_instance_group_state)
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.GetManagedInstanceGroups(ctx, &osmanagement.GetManagedInstanceGroupsArgs{
CompartmentId: compartmentId,
DisplayName: pulumi.StringRef(managedInstanceGroupDisplayName),
OsFamily: pulumi.StringRef(managedInstanceGroupOsFamily),
State: pulumi.StringRef(managedInstanceGroupState),
}, 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 testManagedInstanceGroups = Oci.OsManagement.GetManagedInstanceGroups.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = managedInstanceGroupDisplayName,
OsFamily = managedInstanceGroupOsFamily,
State = managedInstanceGroupState,
});
});
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.GetManagedInstanceGroupsArgs;
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 testManagedInstanceGroups = OsManagementFunctions.getManagedInstanceGroups(GetManagedInstanceGroupsArgs.builder()
.compartmentId(compartmentId)
.displayName(managedInstanceGroupDisplayName)
.osFamily(managedInstanceGroupOsFamily)
.state(managedInstanceGroupState)
.build());
}
}
variables:
testManagedInstanceGroups:
fn::invoke:
Function: oci:OsManagement:getManagedInstanceGroups
Arguments:
compartmentId: ${compartmentId}
displayName: ${managedInstanceGroupDisplayName}
osFamily: ${managedInstanceGroupOsFamily}
state: ${managedInstanceGroupState}
Using getManagedInstanceGroups
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 getManagedInstanceGroups(args: GetManagedInstanceGroupsArgs, opts?: InvokeOptions): Promise<GetManagedInstanceGroupsResult>
function getManagedInstanceGroupsOutput(args: GetManagedInstanceGroupsOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceGroupsResult>
def get_managed_instance_groups(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_osmanagement.GetManagedInstanceGroupsFilter]] = None,
os_family: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetManagedInstanceGroupsResult
def get_managed_instance_groups_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagement.GetManagedInstanceGroupsFilterArgs]]]] = None,
os_family: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceGroupsResult]
func GetManagedInstanceGroups(ctx *Context, args *GetManagedInstanceGroupsArgs, opts ...InvokeOption) (*GetManagedInstanceGroupsResult, error)
func GetManagedInstanceGroupsOutput(ctx *Context, args *GetManagedInstanceGroupsOutputArgs, opts ...InvokeOption) GetManagedInstanceGroupsResultOutput
> Note: This function is named GetManagedInstanceGroups
in the Go SDK.
public static class GetManagedInstanceGroups
{
public static Task<GetManagedInstanceGroupsResult> InvokeAsync(GetManagedInstanceGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetManagedInstanceGroupsResult> Invoke(GetManagedInstanceGroupsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetManagedInstanceGroupsResult> getManagedInstanceGroups(GetManagedInstanceGroupsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:OsManagement/getManagedInstanceGroups:getManagedInstanceGroups
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- Filters
List<Get
Managed Instance Groups Filter> - Os
Family string - The OS family for which to list resources.
- State string
- The current lifecycle state for the object.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- Filters
[]Get
Managed Instance Groups Filter - Os
Family string - The OS family for which to list resources.
- State string
- The current lifecycle state for the object.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- filters
List<Get
Managed Instance Groups Filter> - os
Family String - The OS family for which to list resources.
- state String
- The current lifecycle state for the object.
- compartment
Id string - The ID of the compartment in which to list resources.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- filters
Get
Managed Instance Groups Filter[] - os
Family string - The OS family for which to list resources.
- state string
- The current lifecycle state for the object.
- compartment_
id str - The ID of the compartment in which to list resources.
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- filters
Sequence[osmanagement.
Get Managed Instance Groups Filter] - os_
family str - The OS family for which to list resources.
- state str
- The current lifecycle state for the object.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- filters List<Property Map>
- os
Family String - The OS family for which to list resources.
- state String
- The current lifecycle state for the object.
getManagedInstanceGroups Result
The following output properties are available:
- Compartment
Id string - OCID for the Compartment
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Instance List<GetGroups Managed Instance Groups Managed Instance Group> - The list of managed_instance_groups.
- Display
Name string - User friendly name
- Filters
List<Get
Managed Instance Groups Filter> - 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
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Instance []GetGroups Managed Instance Groups Managed Instance Group - The list of managed_instance_groups.
- Display
Name string - User friendly name
- Filters
[]Get
Managed Instance Groups Filter - 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
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Instance List<GetGroups Managed Instance Groups Managed Instance Group> - The list of managed_instance_groups.
- display
Name String - User friendly name
- filters
List<Get
Managed Instance Groups Filter> - 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
- id string
- The provider-assigned unique ID for this managed resource.
- managed
Instance GetGroups Managed Instance Groups Managed Instance Group[] - The list of managed_instance_groups.
- display
Name string - User friendly name
- filters
Get
Managed Instance Groups Filter[] - 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
- id str
- The provider-assigned unique ID for this managed resource.
- managed_
instance_ Sequence[osmanagement.groups Get Managed Instance Groups Managed Instance Group] - The list of managed_instance_groups.
- display_
name str - User friendly name
- filters
Sequence[osmanagement.
Get Managed Instance Groups Filter] - 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
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Instance List<Property Map>Groups - The list of managed_instance_groups.
- display
Name String - User friendly name
- filters List<Property Map>
- os
Family String - The Operating System type of the managed instance.
- state String
- The current state of the Software Source.
Supporting Types
GetManagedInstanceGroupsFilter
GetManagedInstanceGroupsManagedInstanceGroup
- Compartment
Id string - The ID of the compartment in which to list resources.
- 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 - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- 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 List<string>Ids - Managed
Instances List<GetManaged Instance Groups Managed Instance Group Managed Instance> - list of Managed Instances in the group
- Os
Family string - The OS family for which to list resources.
- State string
- The current lifecycle state for the object.
- Compartment
Id string - The ID of the compartment in which to list resources.
- 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 - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- 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 []stringIds - Managed
Instances []GetManaged Instance Groups Managed Instance Group Managed Instance - list of Managed Instances in the group
- Os
Family string - The OS family for which to list resources.
- State string
- The current lifecycle state for the object.
- compartment
Id String - The ID of the compartment in which to list resources.
- 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 - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- 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 List<String>Ids - managed
Instances List<GetManaged Instance Groups Managed Instance Group Managed Instance> - list of Managed Instances in the group
- os
Family String - The OS family for which to list resources.
- state String
- The current lifecycle state for the object.
- compartment
Id string - The ID of the compartment in which to list resources.
- {[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 - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- {[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 string[]Ids - managed
Instances GetManaged Instance Groups Managed Instance Group Managed Instance[] - list of Managed Instances in the group
- os
Family string - The OS family for which to list resources.
- state string
- The current lifecycle state for the object.
- compartment_
id str - The ID of the compartment in which to list resources.
- 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 - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- 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_ Sequence[str]ids - managed_
instances Sequence[osmanagement.Get Managed Instance Groups Managed Instance Group Managed Instance] - list of Managed Instances in the group
- os_
family str - The OS family for which to list resources.
- state str
- The current lifecycle state for the object.
- compartment
Id String - The ID of the compartment in which to list resources.
- 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 - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- 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 List<String>Ids - managed
Instances List<Property Map> - list of Managed Instances in the group
- os
Family String - The OS family for which to list resources.
- state String
- The current lifecycle state for the object.
GetManagedInstanceGroupsManagedInstanceGroupManagedInstance
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- Id string
- unique identifier that is immutable on creation
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- Id string
- unique identifier that is immutable on creation
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- id String
- unique identifier that is immutable on creation
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- id string
- unique identifier that is immutable on creation
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- id str
- unique identifier that is immutable on creation
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- 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.