1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. AppMgmtControl
  5. getMonitoredInstance
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.AppMgmtControl.getMonitoredInstance

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This data source provides details about a specific Monitored Instance resource in Oracle Cloud Infrastructure Appmgmt Control service.

    Gets a monitored instance by identifier

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testMonitoredInstance = oci.AppMgmtControl.getMonitoredInstance({
        monitoredInstanceId: oci_appmgmt_control_monitored_instance.test_monitored_instance.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_monitored_instance = oci.AppMgmtControl.get_monitored_instance(monitored_instance_id=oci_appmgmt_control_monitored_instance["test_monitored_instance"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/AppMgmtControl"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := AppMgmtControl.GetMonitoredInstance(ctx, &appmgmtcontrol.GetMonitoredInstanceArgs{
    			MonitoredInstanceId: oci_appmgmt_control_monitored_instance.Test_monitored_instance.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 testMonitoredInstance = Oci.AppMgmtControl.GetMonitoredInstance.Invoke(new()
        {
            MonitoredInstanceId = oci_appmgmt_control_monitored_instance.Test_monitored_instance.Id,
        });
    
    });
    
    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.GetMonitoredInstanceArgs;
    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 testMonitoredInstance = AppMgmtControlFunctions.getMonitoredInstance(GetMonitoredInstanceArgs.builder()
                .monitoredInstanceId(oci_appmgmt_control_monitored_instance.test_monitored_instance().id())
                .build());
    
        }
    }
    
    variables:
      testMonitoredInstance:
        fn::invoke:
          Function: oci:AppMgmtControl:getMonitoredInstance
          Arguments:
            monitoredInstanceId: ${oci_appmgmt_control_monitored_instance.test_monitored_instance.id}
    

    Using getMonitoredInstance

    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 getMonitoredInstance(args: GetMonitoredInstanceArgs, opts?: InvokeOptions): Promise<GetMonitoredInstanceResult>
    function getMonitoredInstanceOutput(args: GetMonitoredInstanceOutputArgs, opts?: InvokeOptions): Output<GetMonitoredInstanceResult>
    def get_monitored_instance(monitored_instance_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetMonitoredInstanceResult
    def get_monitored_instance_output(monitored_instance_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetMonitoredInstanceResult]
    func GetMonitoredInstance(ctx *Context, args *GetMonitoredInstanceArgs, opts ...InvokeOption) (*GetMonitoredInstanceResult, error)
    func GetMonitoredInstanceOutput(ctx *Context, args *GetMonitoredInstanceOutputArgs, opts ...InvokeOption) GetMonitoredInstanceResultOutput

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

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

    The following arguments are supported:

    MonitoredInstanceId string
    OCID of monitored instance.
    MonitoredInstanceId string
    OCID of monitored instance.
    monitoredInstanceId String
    OCID of monitored instance.
    monitoredInstanceId string
    OCID of monitored instance.
    monitored_instance_id str
    OCID of monitored instance.
    monitoredInstanceId String
    OCID of monitored instance.

    getMonitoredInstance Result

    The following output properties are available:

    CompartmentId string
    Compartment Identifier OCID
    DisplayName string
    A user-friendly name of the monitored instance. It is binded to Compute Instance. DisplayName is fetched from Core Service API.
    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    MonitoredInstanceId string
    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
    Compartment Identifier OCID
    DisplayName string
    A user-friendly name of the monitored instance. It is binded to Compute Instance. DisplayName is fetched from Core Service API.
    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    MonitoredInstanceId string
    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
    Compartment Identifier OCID
    displayName String
    A user-friendly name of the monitored instance. It is binded to Compute Instance. DisplayName is fetched from Core Service API.
    id String
    The provider-assigned unique ID for this managed resource.
    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.
    monitoredInstanceId String
    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
    Compartment Identifier OCID
    displayName string
    A user-friendly name of the monitored instance. It is binded to Compute Instance. DisplayName is fetched from Core Service API.
    id string
    The provider-assigned unique ID for this managed resource.
    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.
    monitoredInstanceId string
    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
    Compartment Identifier OCID
    display_name str
    A user-friendly name of the monitored instance. It is binded to Compute Instance. DisplayName is fetched from Core Service API.
    id str
    The provider-assigned unique ID for this managed resource.
    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.
    monitored_instance_id str
    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
    Compartment Identifier OCID
    displayName String
    A user-friendly name of the monitored instance. It is binded to Compute Instance. DisplayName is fetched from Core Service API.
    id String
    The provider-assigned unique ID for this managed resource.
    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.
    monitoredInstanceId String
    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 v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi