1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. AppMgmtControl
  5. getMonitoredInstances
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.AppMgmtControl.getMonitoredInstances

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides the list of Monitored Instances in Oracle Cloud Infrastructure Appmgmt Control service.

    Returns a list of monitored instances.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testMonitoredInstances = oci.AppMgmtControl.getMonitoredInstances({
        compartmentId: compartmentId,
        displayName: monitoredInstanceDisplayName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_monitored_instances = oci.AppMgmtControl.get_monitored_instances(compartment_id=compartment_id,
        display_name=monitored_instance_display_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/AppMgmtControl"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := AppMgmtControl.GetMonitoredInstances(ctx, &appmgmtcontrol.GetMonitoredInstancesArgs{
    			CompartmentId: compartmentId,
    			DisplayName:   pulumi.StringRef(monitoredInstanceDisplayName),
    		}, 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 testMonitoredInstances = Oci.AppMgmtControl.GetMonitoredInstances.Invoke(new()
        {
            CompartmentId = compartmentId,
            DisplayName = monitoredInstanceDisplayName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.AppMgmtControl.AppMgmtControlFunctions;
    import com.pulumi.oci.AppMgmtControl.inputs.GetMonitoredInstancesArgs;
    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 testMonitoredInstances = AppMgmtControlFunctions.getMonitoredInstances(GetMonitoredInstancesArgs.builder()
                .compartmentId(compartmentId)
                .displayName(monitoredInstanceDisplayName)
                .build());
    
        }
    }
    
    variables:
      testMonitoredInstances:
        fn::invoke:
          Function: oci:AppMgmtControl:getMonitoredInstances
          Arguments:
            compartmentId: ${compartmentId}
            displayName: ${monitoredInstanceDisplayName}
    

    Using getMonitoredInstances

    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 getMonitoredInstances(args: GetMonitoredInstancesArgs, opts?: InvokeOptions): Promise<GetMonitoredInstancesResult>
    function getMonitoredInstancesOutput(args: GetMonitoredInstancesOutputArgs, opts?: InvokeOptions): Output<GetMonitoredInstancesResult>
    def get_monitored_instances(compartment_id: Optional[str] = None,
                                display_name: Optional[str] = None,
                                filters: Optional[Sequence[_appmgmtcontrol.GetMonitoredInstancesFilter]] = None,
                                opts: Optional[InvokeOptions] = None) -> GetMonitoredInstancesResult
    def get_monitored_instances_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                display_name: Optional[pulumi.Input[str]] = None,
                                filters: Optional[pulumi.Input[Sequence[pulumi.Input[_appmgmtcontrol.GetMonitoredInstancesFilterArgs]]]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetMonitoredInstancesResult]
    func GetMonitoredInstances(ctx *Context, args *GetMonitoredInstancesArgs, opts ...InvokeOption) (*GetMonitoredInstancesResult, error)
    func GetMonitoredInstancesOutput(ctx *Context, args *GetMonitoredInstancesOutputArgs, opts ...InvokeOption) GetMonitoredInstancesResultOutput

    > Note: This function is named GetMonitoredInstances in the Go SDK.

    public static class GetMonitoredInstances 
    {
        public static Task<GetMonitoredInstancesResult> InvokeAsync(GetMonitoredInstancesArgs args, InvokeOptions? opts = null)
        public static Output<GetMonitoredInstancesResult> Invoke(GetMonitoredInstancesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMonitoredInstancesResult> getMonitoredInstances(GetMonitoredInstancesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:AppMgmtControl/getMonitoredInstances:getMonitoredInstances
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The ID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters List<GetMonitoredInstancesFilter>
    CompartmentId string
    The ID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters []GetMonitoredInstancesFilter
    compartmentId String
    The ID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<GetMonitoredInstancesFilter>
    compartmentId string
    The ID of the compartment in which to list resources.
    displayName string
    A filter to return only resources that match the entire display name given.
    filters GetMonitoredInstancesFilter[]
    compartment_id str
    The ID of the compartment in which to list resources.
    display_name str
    A filter to return only resources that match the entire display name given.
    filters Sequence[appmgmtcontrol.GetMonitoredInstancesFilter]
    compartmentId String
    The ID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<Property Map>

    getMonitoredInstances Result

    The following output properties are available:

    CompartmentId string
    Compartment Identifier OCID
    Id string
    The provider-assigned unique ID for this managed resource.
    MonitoredInstanceCollections List<GetMonitoredInstancesMonitoredInstanceCollection>
    The list of monitored_instance_collection.
    DisplayName string
    A user-friendly name of the monitored instance. It is binded to Compute Instance. DisplayName is fetched from Core Service API.
    Filters List<GetMonitoredInstancesFilter>
    CompartmentId string
    Compartment Identifier OCID
    Id string
    The provider-assigned unique ID for this managed resource.
    MonitoredInstanceCollections []GetMonitoredInstancesMonitoredInstanceCollection
    The list of monitored_instance_collection.
    DisplayName string
    A user-friendly name of the monitored instance. It is binded to Compute Instance. DisplayName is fetched from Core Service API.
    Filters []GetMonitoredInstancesFilter
    compartmentId String
    Compartment Identifier OCID
    id String
    The provider-assigned unique ID for this managed resource.
    monitoredInstanceCollections List<GetMonitoredInstancesMonitoredInstanceCollection>
    The list of monitored_instance_collection.
    displayName String
    A user-friendly name of the monitored instance. It is binded to Compute Instance. DisplayName is fetched from Core Service API.
    filters List<GetMonitoredInstancesFilter>
    compartmentId string
    Compartment Identifier OCID
    id string
    The provider-assigned unique ID for this managed resource.
    monitoredInstanceCollections GetMonitoredInstancesMonitoredInstanceCollection[]
    The list of monitored_instance_collection.
    displayName string
    A user-friendly name of the monitored instance. It is binded to Compute Instance. DisplayName is fetched from Core Service API.
    filters GetMonitoredInstancesFilter[]
    compartment_id str
    Compartment Identifier OCID
    id str
    The provider-assigned unique ID for this managed resource.
    monitored_instance_collections Sequence[appmgmtcontrol.GetMonitoredInstancesMonitoredInstanceCollection]
    The list of monitored_instance_collection.
    display_name str
    A user-friendly name of the monitored instance. It is binded to Compute Instance. DisplayName is fetched from Core Service API.
    filters Sequence[appmgmtcontrol.GetMonitoredInstancesFilter]
    compartmentId String
    Compartment Identifier OCID
    id String
    The provider-assigned unique ID for this managed resource.
    monitoredInstanceCollections List<Property Map>
    The list of monitored_instance_collection.
    displayName String
    A user-friendly name of the monitored instance. It is binded to Compute Instance. DisplayName is fetched from Core Service API.
    filters List<Property Map>

    Supporting Types

    GetMonitoredInstancesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetMonitoredInstancesMonitoredInstanceCollection

    GetMonitoredInstancesMonitoredInstanceCollectionItem

    CompartmentId string
    The ID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    InstanceId string
    The OCID of monitored instance.
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    ManagementAgentId string
    Management Agent Identifier OCID. Used to invoke manage operations on Management Agent Cloud Service.
    MonitoringState string
    Monitoring status. Can be either enabled or disabled.
    State string
    The current state of the monitored instance.
    TimeCreated string
    The time the MonitoredInstance was created. An RFC3339 formatted datetime string
    TimeUpdated string
    The time the MonitoredInstance was updated. An RFC3339 formatted datetime string
    CompartmentId string
    The ID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    InstanceId string
    The OCID of monitored instance.
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    ManagementAgentId string
    Management Agent Identifier OCID. Used to invoke manage operations on Management Agent Cloud Service.
    MonitoringState string
    Monitoring status. Can be either enabled or disabled.
    State string
    The current state of the monitored instance.
    TimeCreated string
    The time the MonitoredInstance was created. An RFC3339 formatted datetime string
    TimeUpdated string
    The time the MonitoredInstance was updated. An RFC3339 formatted datetime string
    compartmentId String
    The ID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the entire display name given.
    instanceId String
    The OCID of monitored instance.
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    managementAgentId String
    Management Agent Identifier OCID. Used to invoke manage operations on Management Agent Cloud Service.
    monitoringState String
    Monitoring status. Can be either enabled or disabled.
    state String
    The current state of the monitored instance.
    timeCreated String
    The time the MonitoredInstance was created. An RFC3339 formatted datetime string
    timeUpdated String
    The time the MonitoredInstance was updated. An RFC3339 formatted datetime string
    compartmentId string
    The ID of the compartment in which to list resources.
    displayName string
    A filter to return only resources that match the entire display name given.
    instanceId string
    The OCID of monitored instance.
    lifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    managementAgentId string
    Management Agent Identifier OCID. Used to invoke manage operations on Management Agent Cloud Service.
    monitoringState string
    Monitoring status. Can be either enabled or disabled.
    state string
    The current state of the monitored instance.
    timeCreated string
    The time the MonitoredInstance was created. An RFC3339 formatted datetime string
    timeUpdated string
    The time the MonitoredInstance was updated. An RFC3339 formatted datetime string
    compartment_id str
    The ID of the compartment in which to list resources.
    display_name str
    A filter to return only resources that match the entire display name given.
    instance_id str
    The OCID of monitored instance.
    lifecycle_details str
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    management_agent_id str
    Management Agent Identifier OCID. Used to invoke manage operations on Management Agent Cloud Service.
    monitoring_state str
    Monitoring status. Can be either enabled or disabled.
    state str
    The current state of the monitored instance.
    time_created str
    The time the MonitoredInstance was created. An RFC3339 formatted datetime string
    time_updated str
    The time the MonitoredInstance was updated. An RFC3339 formatted datetime string
    compartmentId String
    The ID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the entire display name given.
    instanceId String
    The OCID of monitored instance.
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    managementAgentId String
    Management Agent Identifier OCID. Used to invoke manage operations on Management Agent Cloud Service.
    monitoringState String
    Monitoring status. Can be either enabled or disabled.
    state String
    The current state of the monitored instance.
    timeCreated String
    The time the MonitoredInstance was created. An RFC3339 formatted datetime string
    timeUpdated String
    The time the MonitoredInstance was updated. An RFC3339 formatted datetime string

    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 v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi