oci.OsManagement.getManagedInstances
Explore with Pulumi AI
This data source provides the list of Managed Instances in Oracle Cloud Infrastructure OS Management service.
Returns a list of all Managed Instances.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testManagedInstances = Oci.OsManagement.GetManagedInstances.Invoke(new()
{
CompartmentId = @var.Compartment_id,
DisplayName = @var.Managed_instance_display_name,
OsFamily = @var.Managed_instance_os_family,
});
});
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.GetManagedInstances(ctx, &osmanagement.GetManagedInstancesArgs{
CompartmentId: _var.Compartment_id,
DisplayName: pulumi.StringRef(_var.Managed_instance_display_name),
OsFamily: pulumi.StringRef(_var.Managed_instance_os_family),
}, nil)
if err != nil {
return err
}
return nil
})
}
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.GetManagedInstancesArgs;
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 testManagedInstances = OsManagementFunctions.getManagedInstances(GetManagedInstancesArgs.builder()
.compartmentId(var_.compartment_id())
.displayName(var_.managed_instance_display_name())
.osFamily(var_.managed_instance_os_family())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_managed_instances = oci.OsManagement.get_managed_instances(compartment_id=var["compartment_id"],
display_name=var["managed_instance_display_name"],
os_family=var["managed_instance_os_family"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedInstances = oci.OsManagement.getManagedInstances({
compartmentId: _var.compartment_id,
displayName: _var.managed_instance_display_name,
osFamily: _var.managed_instance_os_family,
});
variables:
testManagedInstances:
fn::invoke:
Function: oci:OsManagement:getManagedInstances
Arguments:
compartmentId: ${var.compartment_id}
displayName: ${var.managed_instance_display_name}
osFamily: ${var.managed_instance_os_family}
Using getManagedInstances
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 getManagedInstances(args: GetManagedInstancesArgs, opts?: InvokeOptions): Promise<GetManagedInstancesResult>
function getManagedInstancesOutput(args: GetManagedInstancesOutputArgs, opts?: InvokeOptions): Output<GetManagedInstancesResult>
def get_managed_instances(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_osmanagement.GetManagedInstancesFilter]] = None,
os_family: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetManagedInstancesResult
def get_managed_instances_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagement.GetManagedInstancesFilterArgs]]]] = None,
os_family: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstancesResult]
func GetManagedInstances(ctx *Context, args *GetManagedInstancesArgs, opts ...InvokeOption) (*GetManagedInstancesResult, error)
func GetManagedInstancesOutput(ctx *Context, args *GetManagedInstancesOutputArgs, opts ...InvokeOption) GetManagedInstancesResultOutput
> Note: This function is named GetManagedInstances
in the Go SDK.
public static class GetManagedInstances
{
public static Task<GetManagedInstancesResult> InvokeAsync(GetManagedInstancesArgs args, InvokeOptions? opts = null)
public static Output<GetManagedInstancesResult> Invoke(GetManagedInstancesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetManagedInstancesResult> getManagedInstances(GetManagedInstancesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:OsManagement/getManagedInstances:getManagedInstances
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 Instances Filter> - Os
Family string The OS family for which to list resources.
- 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 Instances Filter - Os
Family string The OS family for which to list resources.
- 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 Instances Filter> - os
Family String The OS family for which to list resources.
- 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 Instances Filter[] - os
Family string The OS family for which to list resources.
- 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
Get
Managed Instances Filter] - os_
family str The OS family for which to list resources.
- 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.
getManagedInstances 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
Instances List<GetManaged Instances Managed Instance> The list of managed_instances.
- Display
Name string User friendly name
- Filters
List<Get
Managed Instances Filter> - Os
Family string The Operating System type of the managed instance.
- Compartment
Id string OCID for the Compartment
- Id string
The provider-assigned unique ID for this managed resource.
- Managed
Instances []GetManaged Instances Managed Instance The list of managed_instances.
- Display
Name string User friendly name
- Filters
[]Get
Managed Instances Filter - Os
Family string The Operating System type of the managed instance.
- compartment
Id String OCID for the Compartment
- id String
The provider-assigned unique ID for this managed resource.
- managed
Instances List<GetManaged Instances Managed Instance> The list of managed_instances.
- display
Name String User friendly name
- filters
List<Get
Managed Instances Filter> - os
Family String The Operating System type of the managed instance.
- compartment
Id string OCID for the Compartment
- id string
The provider-assigned unique ID for this managed resource.
- managed
Instances GetManaged Instances Managed Instance[] The list of managed_instances.
- display
Name string User friendly name
- filters
Get
Managed Instances Filter[] - os
Family string The Operating System type of the managed instance.
- compartment_
id str OCID for the Compartment
- id str
The provider-assigned unique ID for this managed resource.
- managed_
instances GetManaged Instances Managed Instance] The list of managed_instances.
- display_
name str User friendly name
- filters
Get
Managed Instances Filter] - os_
family str The Operating System type of the managed instance.
- compartment
Id String OCID for the Compartment
- id String
The provider-assigned unique ID for this managed resource.
- managed
Instances List<Property Map> The list of managed_instances.
- display
Name String User friendly name
- filters List<Property Map>
- os
Family String The Operating System type of the managed instance.
Supporting Types
GetManagedInstancesFilter
GetManagedInstancesManagedInstance
- Autonomouses
List<Get
Managed Instances Managed Instance Autonomouse> if present, indicates the Managed Instance is an autonomous instance. Holds all the Autonomous specific information
- Bug
Updates intAvailable Number of bug fix type updates available to be installed
- Child
Software List<GetSources Managed Instances Managed Instance Child Software Source> list of child Software Sources attached to the Managed Instance
- Compartment
Id string The ID of the compartment in which to list resources.
- Description string
Information specified by the user about the managed instance
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- Enhancement
Updates intAvailable Number of enhancement type updates available to be installed
- Id string
software source identifier
- bool
True if user allow data collection for this instance
- Is
Reboot boolRequired Indicates whether a reboot is required to complete installation of updates.
- Ksplice
Effective stringKernel Version The ksplice effective kernel version
- Last
Boot string Time at which the instance last booted
- Last
Checkin string Time at which the instance last checked in
- Managed
Instance List<GetGroups Managed Instances Managed Instance Managed Instance Group> The ids of the managed instance groups of which this instance is a member.
- Managed
Instance stringId - Notification
Topic stringId OCID of the ONS topic used to send notification to users
- Os
Family string The OS family for which to list resources.
- Os
Kernel stringVersion Operating System Kernel Version
- Os
Name string Operating System Name
- Os
Version string Operating System Version
- Other
Updates intAvailable Number of non-classified updates available to be installed
- Parent
Software List<GetSources Managed Instances Managed Instance Parent Software Source> the parent (base) Software Source attached to the Managed Instance
- Scheduled
Job intCount Number of scheduled jobs associated with this instance
- Security
Updates intAvailable Number of security type updates available to be installed
- Status string
status of the managed instance.
- Updates
Available int Number of updates available to be installed
- Work
Request intCount Number of work requests associated with this instance
- Autonomouses
[]Get
Managed Instances Managed Instance Autonomouse if present, indicates the Managed Instance is an autonomous instance. Holds all the Autonomous specific information
- Bug
Updates intAvailable Number of bug fix type updates available to be installed
- Child
Software []GetSources Managed Instances Managed Instance Child Software Source list of child Software Sources attached to the Managed Instance
- Compartment
Id string The ID of the compartment in which to list resources.
- Description string
Information specified by the user about the managed instance
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- Enhancement
Updates intAvailable Number of enhancement type updates available to be installed
- Id string
software source identifier
- bool
True if user allow data collection for this instance
- Is
Reboot boolRequired Indicates whether a reboot is required to complete installation of updates.
- Ksplice
Effective stringKernel Version The ksplice effective kernel version
- Last
Boot string Time at which the instance last booted
- Last
Checkin string Time at which the instance last checked in
- Managed
Instance []GetGroups Managed Instances Managed Instance Managed Instance Group The ids of the managed instance groups of which this instance is a member.
- Managed
Instance stringId - Notification
Topic stringId OCID of the ONS topic used to send notification to users
- Os
Family string The OS family for which to list resources.
- Os
Kernel stringVersion Operating System Kernel Version
- Os
Name string Operating System Name
- Os
Version string Operating System Version
- Other
Updates intAvailable Number of non-classified updates available to be installed
- Parent
Software []GetSources Managed Instances Managed Instance Parent Software Source the parent (base) Software Source attached to the Managed Instance
- Scheduled
Job intCount Number of scheduled jobs associated with this instance
- Security
Updates intAvailable Number of security type updates available to be installed
- Status string
status of the managed instance.
- Updates
Available int Number of updates available to be installed
- Work
Request intCount Number of work requests associated with this instance
- autonomouses
List<Get
Managed Instances Managed Instance Autonomouse> if present, indicates the Managed Instance is an autonomous instance. Holds all the Autonomous specific information
- bug
Updates IntegerAvailable Number of bug fix type updates available to be installed
- child
Software List<GetSources Managed Instances Managed Instance Child Software Source> list of child Software Sources attached to the Managed Instance
- compartment
Id String The ID of the compartment in which to list resources.
- description String
Information specified by the user about the managed instance
- display
Name String A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- enhancement
Updates IntegerAvailable Number of enhancement type updates available to be installed
- id String
software source identifier
- Boolean
True if user allow data collection for this instance
- is
Reboot BooleanRequired Indicates whether a reboot is required to complete installation of updates.
- ksplice
Effective StringKernel Version The ksplice effective kernel version
- last
Boot String Time at which the instance last booted
- last
Checkin String Time at which the instance last checked in
- managed
Instance List<GetGroups Managed Instances Managed Instance Managed Instance Group> The ids of the managed instance groups of which this instance is a member.
- managed
Instance StringId - notification
Topic StringId OCID of the ONS topic used to send notification to users
- os
Family String The OS family for which to list resources.
- os
Kernel StringVersion Operating System Kernel Version
- os
Name String Operating System Name
- os
Version String Operating System Version
- other
Updates IntegerAvailable Number of non-classified updates available to be installed
- parent
Software List<GetSources Managed Instances Managed Instance Parent Software Source> the parent (base) Software Source attached to the Managed Instance
- scheduled
Job IntegerCount Number of scheduled jobs associated with this instance
- security
Updates IntegerAvailable Number of security type updates available to be installed
- status String
status of the managed instance.
- updates
Available Integer Number of updates available to be installed
- work
Request IntegerCount Number of work requests associated with this instance
- autonomouses
Get
Managed Instances Managed Instance Autonomouse[] if present, indicates the Managed Instance is an autonomous instance. Holds all the Autonomous specific information
- bug
Updates numberAvailable Number of bug fix type updates available to be installed
- child
Software GetSources Managed Instances Managed Instance Child Software Source[] list of child Software Sources attached to the Managed Instance
- compartment
Id string The ID of the compartment in which to list resources.
- description string
Information specified by the user about the managed instance
- display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- enhancement
Updates numberAvailable Number of enhancement type updates available to be installed
- id string
software source identifier
- boolean
True if user allow data collection for this instance
- is
Reboot booleanRequired Indicates whether a reboot is required to complete installation of updates.
- ksplice
Effective stringKernel Version The ksplice effective kernel version
- last
Boot string Time at which the instance last booted
- last
Checkin string Time at which the instance last checked in
- managed
Instance GetGroups Managed Instances Managed Instance Managed Instance Group[] The ids of the managed instance groups of which this instance is a member.
- managed
Instance stringId - notification
Topic stringId OCID of the ONS topic used to send notification to users
- os
Family string The OS family for which to list resources.
- os
Kernel stringVersion Operating System Kernel Version
- os
Name string Operating System Name
- os
Version string Operating System Version
- other
Updates numberAvailable Number of non-classified updates available to be installed
- parent
Software GetSources Managed Instances Managed Instance Parent Software Source[] the parent (base) Software Source attached to the Managed Instance
- scheduled
Job numberCount Number of scheduled jobs associated with this instance
- security
Updates numberAvailable Number of security type updates available to be installed
- status string
status of the managed instance.
- updates
Available number Number of updates available to be installed
- work
Request numberCount Number of work requests associated with this instance
- autonomouses
Get
Managed Instances Managed Instance Autonomouse] if present, indicates the Managed Instance is an autonomous instance. Holds all the Autonomous specific information
- bug_
updates_ intavailable Number of bug fix type updates available to be installed
- child_
software_ Getsources Managed Instances Managed Instance Child Software Source] list of child Software Sources attached to the Managed Instance
- compartment_
id str The ID of the compartment in which to list resources.
- description str
Information specified by the user about the managed instance
- display_
name str A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- enhancement_
updates_ intavailable Number of enhancement type updates available to be installed
- id str
software source identifier
- bool
True if user allow data collection for this instance
- is_
reboot_ boolrequired Indicates whether a reboot is required to complete installation of updates.
- ksplice_
effective_ strkernel_ version The ksplice effective kernel version
- last_
boot str Time at which the instance last booted
- last_
checkin str Time at which the instance last checked in
- managed_
instance_ Getgroups Managed Instances Managed Instance Managed Instance Group] The ids of the managed instance groups of which this instance is a member.
- managed_
instance_ strid - notification_
topic_ strid OCID of the ONS topic used to send notification to users
- os_
family str The OS family for which to list resources.
- os_
kernel_ strversion Operating System Kernel Version
- os_
name str Operating System Name
- os_
version str Operating System Version
- other_
updates_ intavailable Number of non-classified updates available to be installed
- parent_
software_ Getsources Managed Instances Managed Instance Parent Software Source] the parent (base) Software Source attached to the Managed Instance
- scheduled_
job_ intcount Number of scheduled jobs associated with this instance
- security_
updates_ intavailable Number of security type updates available to be installed
- status str
status of the managed instance.
- updates_
available int Number of updates available to be installed
- work_
request_ intcount Number of work requests associated with this instance
- autonomouses List<Property Map>
if present, indicates the Managed Instance is an autonomous instance. Holds all the Autonomous specific information
- bug
Updates NumberAvailable Number of bug fix type updates available to be installed
- child
Software List<Property Map>Sources list of child Software Sources attached to the Managed Instance
- compartment
Id String The ID of the compartment in which to list resources.
- description String
Information specified by the user about the managed instance
- display
Name String A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- enhancement
Updates NumberAvailable Number of enhancement type updates available to be installed
- id String
software source identifier
- Boolean
True if user allow data collection for this instance
- is
Reboot BooleanRequired Indicates whether a reboot is required to complete installation of updates.
- ksplice
Effective StringKernel Version The ksplice effective kernel version
- last
Boot String Time at which the instance last booted
- last
Checkin String Time at which the instance last checked in
- managed
Instance List<Property Map>Groups The ids of the managed instance groups of which this instance is a member.
- managed
Instance StringId - notification
Topic StringId OCID of the ONS topic used to send notification to users
- os
Family String The OS family for which to list resources.
- os
Kernel StringVersion Operating System Kernel Version
- os
Name String Operating System Name
- os
Version String Operating System Version
- other
Updates NumberAvailable Number of non-classified updates available to be installed
- parent
Software List<Property Map>Sources the parent (base) Software Source attached to the Managed Instance
- scheduled
Job NumberCount Number of scheduled jobs associated with this instance
- security
Updates NumberAvailable Number of security type updates available to be installed
- status String
status of the managed instance.
- updates
Available Number Number of updates available to be installed
- work
Request NumberCount Number of work requests associated with this instance
GetManagedInstancesManagedInstanceAutonomouse
- Is
Auto boolUpdate Enabled True if daily updates are enabled
- Is
Auto boolUpdate Enabled True if daily updates are enabled
- is
Auto BooleanUpdate Enabled True if daily updates are enabled
- is
Auto booleanUpdate Enabled True if daily updates are enabled
- is_
auto_ boolupdate_ enabled True if daily updates are enabled
- is
Auto BooleanUpdate Enabled True if daily updates are enabled
GetManagedInstancesManagedInstanceChildSoftwareSource
GetManagedInstancesManagedInstanceManagedInstanceGroup
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- Id string
software source identifier
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- Id string
software source identifier
- display
Name String A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- id String
software source identifier
- display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- id string
software source identifier
- display_
name str A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- id str
software source identifier
- display
Name String A user-friendly name. Does not have to be unique, and it's changeable. Example:
My new resource
- id String
software source identifier
GetManagedInstancesManagedInstanceParentSoftwareSource
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.