1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. oci
  5. getResourceAnalyticsMonitoredRegion
Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi
oci logo
Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi

    This data source provides details about a specific Monitored Region resource in Oracle Cloud Infrastructure Resource Analytics service.

    Gets information about a MonitoredRegion.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testMonitoredRegion = oci.oci.getResourceAnalyticsMonitoredRegion({
        monitoredRegionId: testMonitoredRegionOciResourceAnalyticsMonitoredRegion.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_monitored_region = oci.oci.get_resource_analytics_monitored_region(monitored_region_id=test_monitored_region_oci_resource_analytics_monitored_region["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/oci"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := oci.LookupResourceAnalyticsMonitoredRegion(ctx, &oci.LookupResourceAnalyticsMonitoredRegionArgs{
    			MonitoredRegionId: testMonitoredRegionOciResourceAnalyticsMonitoredRegion.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 testMonitoredRegion = Oci.Oci.GetResourceAnalyticsMonitoredRegion.Invoke(new()
        {
            MonitoredRegionId = testMonitoredRegionOciResourceAnalyticsMonitoredRegion.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.oci.OciFunctions;
    import com.pulumi.oci.oci.inputs.GetResourceAnalyticsMonitoredRegionArgs;
    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 testMonitoredRegion = OciFunctions.getResourceAnalyticsMonitoredRegion(GetResourceAnalyticsMonitoredRegionArgs.builder()
                .monitoredRegionId(testMonitoredRegionOciResourceAnalyticsMonitoredRegion.id())
                .build());
    
        }
    }
    
    variables:
      testMonitoredRegion:
        fn::invoke:
          function: oci:oci:getResourceAnalyticsMonitoredRegion
          arguments:
            monitoredRegionId: ${testMonitoredRegionOciResourceAnalyticsMonitoredRegion.id}
    

    Using getResourceAnalyticsMonitoredRegion

    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 getResourceAnalyticsMonitoredRegion(args: GetResourceAnalyticsMonitoredRegionArgs, opts?: InvokeOptions): Promise<GetResourceAnalyticsMonitoredRegionResult>
    function getResourceAnalyticsMonitoredRegionOutput(args: GetResourceAnalyticsMonitoredRegionOutputArgs, opts?: InvokeOptions): Output<GetResourceAnalyticsMonitoredRegionResult>
    def get_resource_analytics_monitored_region(monitored_region_id: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetResourceAnalyticsMonitoredRegionResult
    def get_resource_analytics_monitored_region_output(monitored_region_id: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetResourceAnalyticsMonitoredRegionResult]
    func LookupResourceAnalyticsMonitoredRegion(ctx *Context, args *LookupResourceAnalyticsMonitoredRegionArgs, opts ...InvokeOption) (*LookupResourceAnalyticsMonitoredRegionResult, error)
    func LookupResourceAnalyticsMonitoredRegionOutput(ctx *Context, args *LookupResourceAnalyticsMonitoredRegionOutputArgs, opts ...InvokeOption) LookupResourceAnalyticsMonitoredRegionResultOutput

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

    public static class GetResourceAnalyticsMonitoredRegion 
    {
        public static Task<GetResourceAnalyticsMonitoredRegionResult> InvokeAsync(GetResourceAnalyticsMonitoredRegionArgs args, InvokeOptions? opts = null)
        public static Output<GetResourceAnalyticsMonitoredRegionResult> Invoke(GetResourceAnalyticsMonitoredRegionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetResourceAnalyticsMonitoredRegionResult> getResourceAnalyticsMonitoredRegion(GetResourceAnalyticsMonitoredRegionArgs args, InvokeOptions options)
    public static Output<GetResourceAnalyticsMonitoredRegionResult> getResourceAnalyticsMonitoredRegion(GetResourceAnalyticsMonitoredRegionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:oci/getResourceAnalyticsMonitoredRegion:getResourceAnalyticsMonitoredRegion
      arguments:
        # arguments dictionary

    The following arguments are supported:

    MonitoredRegionId string
    The OCID of the MonitoredRegion.
    MonitoredRegionId string
    The OCID of the MonitoredRegion.
    monitoredRegionId String
    The OCID of the MonitoredRegion.
    monitoredRegionId string
    The OCID of the MonitoredRegion.
    monitored_region_id str
    The OCID of the MonitoredRegion.
    monitoredRegionId String
    The OCID of the MonitoredRegion.

    getResourceAnalyticsMonitoredRegion Result

    The following output properties are available:

    Id string
    The OCID of the MonitoredRegion.
    LifecycleDetails string
    A message that describes the current state of the MonitoredRegion in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    MonitoredRegionId string
    RegionId string
    The Region Identifier of this MonitoredRegion.
    ResourceAnalyticsInstanceId string
    The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
    State string
    The current state of the MonitoredRegion.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the MonitoredRegion was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the MonitoredRegion was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    Id string
    The OCID of the MonitoredRegion.
    LifecycleDetails string
    A message that describes the current state of the MonitoredRegion in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    MonitoredRegionId string
    RegionId string
    The Region Identifier of this MonitoredRegion.
    ResourceAnalyticsInstanceId string
    The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
    State string
    The current state of the MonitoredRegion.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the MonitoredRegion was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the MonitoredRegion was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    id String
    The OCID of the MonitoredRegion.
    lifecycleDetails String
    A message that describes the current state of the MonitoredRegion in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    monitoredRegionId String
    regionId String
    The Region Identifier of this MonitoredRegion.
    resourceAnalyticsInstanceId String
    The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
    state String
    The current state of the MonitoredRegion.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the MonitoredRegion was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the MonitoredRegion was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    id string
    The OCID of the MonitoredRegion.
    lifecycleDetails string
    A message that describes the current state of the MonitoredRegion in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    monitoredRegionId string
    regionId string
    The Region Identifier of this MonitoredRegion.
    resourceAnalyticsInstanceId string
    The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
    state string
    The current state of the MonitoredRegion.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the MonitoredRegion was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time the MonitoredRegion was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    id str
    The OCID of the MonitoredRegion.
    lifecycle_details str
    A message that describes the current state of the MonitoredRegion in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    monitored_region_id str
    region_id str
    The Region Identifier of this MonitoredRegion.
    resource_analytics_instance_id str
    The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
    state str
    The current state of the MonitoredRegion.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The date and time the MonitoredRegion was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_updated str
    The date and time the MonitoredRegion was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    id String
    The OCID of the MonitoredRegion.
    lifecycleDetails String
    A message that describes the current state of the MonitoredRegion in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    monitoredRegionId String
    regionId String
    The Region Identifier of this MonitoredRegion.
    resourceAnalyticsInstanceId String
    The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
    state String
    The current state of the MonitoredRegion.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the MonitoredRegion was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the MonitoredRegion was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z

    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 v3.11.1 published on Friday, Nov 14, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate