1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. oci
  5. getResourceAnalyticsMonitoredRegions
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 the list of Monitored Regions in Oracle Cloud Infrastructure Resource Analytics service.

    Gets a list of MonitoredRegions.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testMonitoredRegions = oci.oci.getResourceAnalyticsMonitoredRegions({
        id: monitoredRegionId,
        resourceAnalyticsInstanceId: testResourceAnalyticsInstance.id,
        state: monitoredRegionState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_monitored_regions = oci.oci.get_resource_analytics_monitored_regions(id=monitored_region_id,
        resource_analytics_instance_id=test_resource_analytics_instance["id"],
        state=monitored_region_state)
    
    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.GetResourceAnalyticsMonitoredRegions(ctx, &oci.GetResourceAnalyticsMonitoredRegionsArgs{
    			Id:                          pulumi.StringRef(monitoredRegionId),
    			ResourceAnalyticsInstanceId: pulumi.StringRef(testResourceAnalyticsInstance.Id),
    			State:                       pulumi.StringRef(monitoredRegionState),
    		}, 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 testMonitoredRegions = Oci.Oci.GetResourceAnalyticsMonitoredRegions.Invoke(new()
        {
            Id = monitoredRegionId,
            ResourceAnalyticsInstanceId = testResourceAnalyticsInstance.Id,
            State = monitoredRegionState,
        });
    
    });
    
    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.GetResourceAnalyticsMonitoredRegionsArgs;
    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 testMonitoredRegions = OciFunctions.getResourceAnalyticsMonitoredRegions(GetResourceAnalyticsMonitoredRegionsArgs.builder()
                .id(monitoredRegionId)
                .resourceAnalyticsInstanceId(testResourceAnalyticsInstance.id())
                .state(monitoredRegionState)
                .build());
    
        }
    }
    
    variables:
      testMonitoredRegions:
        fn::invoke:
          function: oci:oci:getResourceAnalyticsMonitoredRegions
          arguments:
            id: ${monitoredRegionId}
            resourceAnalyticsInstanceId: ${testResourceAnalyticsInstance.id}
            state: ${monitoredRegionState}
    

    Using getResourceAnalyticsMonitoredRegions

    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 getResourceAnalyticsMonitoredRegions(args: GetResourceAnalyticsMonitoredRegionsArgs, opts?: InvokeOptions): Promise<GetResourceAnalyticsMonitoredRegionsResult>
    function getResourceAnalyticsMonitoredRegionsOutput(args: GetResourceAnalyticsMonitoredRegionsOutputArgs, opts?: InvokeOptions): Output<GetResourceAnalyticsMonitoredRegionsResult>
    def get_resource_analytics_monitored_regions(filters: Optional[Sequence[GetResourceAnalyticsMonitoredRegionsFilter]] = None,
                                                 id: Optional[str] = None,
                                                 resource_analytics_instance_id: Optional[str] = None,
                                                 state: Optional[str] = None,
                                                 opts: Optional[InvokeOptions] = None) -> GetResourceAnalyticsMonitoredRegionsResult
    def get_resource_analytics_monitored_regions_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetResourceAnalyticsMonitoredRegionsFilterArgs]]]] = None,
                                                 id: Optional[pulumi.Input[str]] = None,
                                                 resource_analytics_instance_id: Optional[pulumi.Input[str]] = None,
                                                 state: Optional[pulumi.Input[str]] = None,
                                                 opts: Optional[InvokeOptions] = None) -> Output[GetResourceAnalyticsMonitoredRegionsResult]
    func GetResourceAnalyticsMonitoredRegions(ctx *Context, args *GetResourceAnalyticsMonitoredRegionsArgs, opts ...InvokeOption) (*GetResourceAnalyticsMonitoredRegionsResult, error)
    func GetResourceAnalyticsMonitoredRegionsOutput(ctx *Context, args *GetResourceAnalyticsMonitoredRegionsOutputArgs, opts ...InvokeOption) GetResourceAnalyticsMonitoredRegionsResultOutput

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

    public static class GetResourceAnalyticsMonitoredRegions 
    {
        public static Task<GetResourceAnalyticsMonitoredRegionsResult> InvokeAsync(GetResourceAnalyticsMonitoredRegionsArgs args, InvokeOptions? opts = null)
        public static Output<GetResourceAnalyticsMonitoredRegionsResult> Invoke(GetResourceAnalyticsMonitoredRegionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetResourceAnalyticsMonitoredRegionsResult> getResourceAnalyticsMonitoredRegions(GetResourceAnalyticsMonitoredRegionsArgs args, InvokeOptions options)
    public static Output<GetResourceAnalyticsMonitoredRegionsResult> getResourceAnalyticsMonitoredRegions(GetResourceAnalyticsMonitoredRegionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:oci/getResourceAnalyticsMonitoredRegions:getResourceAnalyticsMonitoredRegions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filters List<GetResourceAnalyticsMonitoredRegionsFilter>
    Id string
    The OCID of the MonitoredRegion.
    ResourceAnalyticsInstanceId string
    The OCID of a ResourceAnalyticsInstance.
    State string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    Filters []GetResourceAnalyticsMonitoredRegionsFilter
    Id string
    The OCID of the MonitoredRegion.
    ResourceAnalyticsInstanceId string
    The OCID of a ResourceAnalyticsInstance.
    State string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    filters List<GetResourceAnalyticsMonitoredRegionsFilter>
    id String
    The OCID of the MonitoredRegion.
    resourceAnalyticsInstanceId String
    The OCID of a ResourceAnalyticsInstance.
    state String
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    filters GetResourceAnalyticsMonitoredRegionsFilter[]
    id string
    The OCID of the MonitoredRegion.
    resourceAnalyticsInstanceId string
    The OCID of a ResourceAnalyticsInstance.
    state string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    filters Sequence[GetResourceAnalyticsMonitoredRegionsFilter]
    id str
    The OCID of the MonitoredRegion.
    resource_analytics_instance_id str
    The OCID of a ResourceAnalyticsInstance.
    state str
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    filters List<Property Map>
    id String
    The OCID of the MonitoredRegion.
    resourceAnalyticsInstanceId String
    The OCID of a ResourceAnalyticsInstance.
    state String
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.

    getResourceAnalyticsMonitoredRegions Result

    The following output properties are available:

    MonitoredRegionCollections List<GetResourceAnalyticsMonitoredRegionsMonitoredRegionCollection>
    The list of monitored_region_collection.
    Filters List<GetResourceAnalyticsMonitoredRegionsFilter>
    Id string
    The OCID of the MonitoredRegion.
    ResourceAnalyticsInstanceId string
    The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
    State string
    The current state of the MonitoredRegion.
    MonitoredRegionCollections []GetResourceAnalyticsMonitoredRegionsMonitoredRegionCollection
    The list of monitored_region_collection.
    Filters []GetResourceAnalyticsMonitoredRegionsFilter
    Id string
    The OCID of the MonitoredRegion.
    ResourceAnalyticsInstanceId string
    The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
    State string
    The current state of the MonitoredRegion.
    monitoredRegionCollections List<GetResourceAnalyticsMonitoredRegionsMonitoredRegionCollection>
    The list of monitored_region_collection.
    filters List<GetResourceAnalyticsMonitoredRegionsFilter>
    id String
    The OCID of the MonitoredRegion.
    resourceAnalyticsInstanceId String
    The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
    state String
    The current state of the MonitoredRegion.
    monitoredRegionCollections GetResourceAnalyticsMonitoredRegionsMonitoredRegionCollection[]
    The list of monitored_region_collection.
    filters GetResourceAnalyticsMonitoredRegionsFilter[]
    id string
    The OCID of the MonitoredRegion.
    resourceAnalyticsInstanceId string
    The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
    state string
    The current state of the MonitoredRegion.
    monitored_region_collections Sequence[GetResourceAnalyticsMonitoredRegionsMonitoredRegionCollection]
    The list of monitored_region_collection.
    filters Sequence[GetResourceAnalyticsMonitoredRegionsFilter]
    id str
    The OCID of the MonitoredRegion.
    resource_analytics_instance_id str
    The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
    state str
    The current state of the MonitoredRegion.
    monitoredRegionCollections List<Property Map>
    The list of monitored_region_collection.
    filters List<Property Map>
    id String
    The OCID of the MonitoredRegion.
    resourceAnalyticsInstanceId String
    The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
    state String
    The current state of the MonitoredRegion.

    Supporting Types

    GetResourceAnalyticsMonitoredRegionsFilter

    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

    GetResourceAnalyticsMonitoredRegionsMonitoredRegionCollection

    GetResourceAnalyticsMonitoredRegionsMonitoredRegionCollectionItem

    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.
    RegionId string
    The Region Identifier of this MonitoredRegion.
    ResourceAnalyticsInstanceId string
    The OCID of a ResourceAnalyticsInstance.
    State string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    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.
    RegionId string
    The Region Identifier of this MonitoredRegion.
    ResourceAnalyticsInstanceId string
    The OCID of a ResourceAnalyticsInstance.
    State string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    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.
    regionId String
    The Region Identifier of this MonitoredRegion.
    resourceAnalyticsInstanceId String
    The OCID of a ResourceAnalyticsInstance.
    state String
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    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.
    regionId string
    The Region Identifier of this MonitoredRegion.
    resourceAnalyticsInstanceId string
    The OCID of a ResourceAnalyticsInstance.
    state string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    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.
    region_id str
    The Region Identifier of this MonitoredRegion.
    resource_analytics_instance_id str
    The OCID of a ResourceAnalyticsInstance.
    state str
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    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.
    regionId String
    The Region Identifier of this MonitoredRegion.
    resourceAnalyticsInstanceId String
    The OCID of a ResourceAnalyticsInstance.
    state String
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    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