1. Packages
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. oci
  6. getResourceAnalyticsTenancyAttachment
Viewing docs for Oracle Cloud Infrastructure v4.20.0
published on Wednesday, Jul 15, 2026 by Pulumi
oci logo
Viewing docs for Oracle Cloud Infrastructure v4.20.0
published on Wednesday, Jul 15, 2026 by Pulumi

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

    Gets information about a TenancyAttachment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testTenancyAttachment = oci.oci.getResourceAnalyticsTenancyAttachment({
        tenancyAttachmentId: testTenancyAttachmentOciResourceAnalyticsTenancyAttachment.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_tenancy_attachment = oci.oci.get_resource_analytics_tenancy_attachment(tenancy_attachment_id=test_tenancy_attachment_oci_resource_analytics_tenancy_attachment["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/oci"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := oci.LookupResourceAnalyticsTenancyAttachment(ctx, &oci.LookupResourceAnalyticsTenancyAttachmentArgs{
    			TenancyAttachmentId: testTenancyAttachmentOciResourceAnalyticsTenancyAttachment.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 testTenancyAttachment = Oci.Oci.GetResourceAnalyticsTenancyAttachment.Invoke(new()
        {
            TenancyAttachmentId = testTenancyAttachmentOciResourceAnalyticsTenancyAttachment.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.GetResourceAnalyticsTenancyAttachmentArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 testTenancyAttachment = OciFunctions.getResourceAnalyticsTenancyAttachment(GetResourceAnalyticsTenancyAttachmentArgs.builder()
                .tenancyAttachmentId(testTenancyAttachmentOciResourceAnalyticsTenancyAttachment.id())
                .build());
    
        }
    }
    
    variables:
      testTenancyAttachment:
        fn::invoke:
          function: oci:oci:getResourceAnalyticsTenancyAttachment
          arguments:
            tenancyAttachmentId: ${testTenancyAttachmentOciResourceAnalyticsTenancyAttachment.id}
    
    pulumi {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    data "oci_oci_getresourceanalyticstenancyattachment" "testTenancyAttachment" {
      tenancy_attachment_id = testTenancyAttachmentOciResourceAnalyticsTenancyAttachment.id
    }
    

    Using getResourceAnalyticsTenancyAttachment

    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 getResourceAnalyticsTenancyAttachment(args: GetResourceAnalyticsTenancyAttachmentArgs, opts?: InvokeOptions): Promise<GetResourceAnalyticsTenancyAttachmentResult>
    function getResourceAnalyticsTenancyAttachmentOutput(args: GetResourceAnalyticsTenancyAttachmentOutputArgs, opts?: InvokeOptions): Output<GetResourceAnalyticsTenancyAttachmentResult>
    def get_resource_analytics_tenancy_attachment(tenancy_attachment_id: Optional[str] = None,
                                                  opts: Optional[InvokeOptions] = None) -> GetResourceAnalyticsTenancyAttachmentResult
    def get_resource_analytics_tenancy_attachment_output(tenancy_attachment_id: pulumi.Input[Optional[str]] = None,
                                                  opts: Optional[InvokeOptions] = None) -> Output[GetResourceAnalyticsTenancyAttachmentResult]
    func LookupResourceAnalyticsTenancyAttachment(ctx *Context, args *LookupResourceAnalyticsTenancyAttachmentArgs, opts ...InvokeOption) (*LookupResourceAnalyticsTenancyAttachmentResult, error)
    func LookupResourceAnalyticsTenancyAttachmentOutput(ctx *Context, args *LookupResourceAnalyticsTenancyAttachmentOutputArgs, opts ...InvokeOption) LookupResourceAnalyticsTenancyAttachmentResultOutput

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

    public static class GetResourceAnalyticsTenancyAttachment 
    {
        public static Task<GetResourceAnalyticsTenancyAttachmentResult> InvokeAsync(GetResourceAnalyticsTenancyAttachmentArgs args, InvokeOptions? opts = null)
        public static Output<GetResourceAnalyticsTenancyAttachmentResult> Invoke(GetResourceAnalyticsTenancyAttachmentInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetResourceAnalyticsTenancyAttachmentResult> getResourceAnalyticsTenancyAttachment(GetResourceAnalyticsTenancyAttachmentArgs args, InvokeOptions options)
    public static Output<GetResourceAnalyticsTenancyAttachmentResult> getResourceAnalyticsTenancyAttachment(GetResourceAnalyticsTenancyAttachmentArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:oci/getResourceAnalyticsTenancyAttachment:getResourceAnalyticsTenancyAttachment
      arguments:
        # arguments dictionary
    data "oci_oci_get_resource_analytics_tenancy_attachment" "name" {
        # arguments
    }

    The following arguments are supported:

    TenancyAttachmentId string
    The OCID of the TenancyAttachment.
    TenancyAttachmentId string
    The OCID of the TenancyAttachment.
    tenancy_attachment_id string
    The OCID of the TenancyAttachment.
    tenancyAttachmentId String
    The OCID of the TenancyAttachment.
    tenancyAttachmentId string
    The OCID of the TenancyAttachment.
    tenancy_attachment_id str
    The OCID of the TenancyAttachment.
    tenancyAttachmentId String
    The OCID of the TenancyAttachment.

    getResourceAnalyticsTenancyAttachment Result

    The following output properties are available:

    DataPopulationStatus string
    The overall status of the data population from the tenancy.
    Description string
    A description of the tenancy.
    Id string
    The OCID of the TenancyAttachment.
    IsReportingTenancy bool
    Whether the tenancy is the tenancy used when creating Resource Analytics Instance.
    LifecycleDetails string
    A message that describes the current state of the TenancyAttachment in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    MonitoredRegions List<GetResourceAnalyticsTenancyAttachmentMonitoredRegion>
    List of monitored regions with their data population status.
    ResourceAnalyticsInstanceId string
    The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
    State string
    The current state of the TenancyAttachment.
    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"}
    TenancyAttachmentId string
    TenancyId string
    The OCID of the tenancy associated with this TenancyAttachment.
    TimeCreated string
    The date and time the TenancyAttachment was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeDataPopulationEnded string
    The date and time the data population tasks completed, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeDataPopulationStarted string
    The date and time the data population tasks started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    DataPopulationStatus string
    The overall status of the data population from the tenancy.
    Description string
    A description of the tenancy.
    Id string
    The OCID of the TenancyAttachment.
    IsReportingTenancy bool
    Whether the tenancy is the tenancy used when creating Resource Analytics Instance.
    LifecycleDetails string
    A message that describes the current state of the TenancyAttachment in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    MonitoredRegions []GetResourceAnalyticsTenancyAttachmentMonitoredRegion
    List of monitored regions with their data population status.
    ResourceAnalyticsInstanceId string
    The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
    State string
    The current state of the TenancyAttachment.
    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"}
    TenancyAttachmentId string
    TenancyId string
    The OCID of the tenancy associated with this TenancyAttachment.
    TimeCreated string
    The date and time the TenancyAttachment was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeDataPopulationEnded string
    The date and time the data population tasks completed, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeDataPopulationStarted string
    The date and time the data population tasks started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    data_population_status string
    The overall status of the data population from the tenancy.
    description string
    A description of the tenancy.
    id string
    The OCID of the TenancyAttachment.
    is_reporting_tenancy bool
    Whether the tenancy is the tenancy used when creating Resource Analytics Instance.
    lifecycle_details string
    A message that describes the current state of the TenancyAttachment in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    monitored_regions list(object)
    List of monitored regions with their data population status.
    resource_analytics_instance_id string
    The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
    state string
    The current state of the TenancyAttachment.
    system_tags map(string)
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenancy_attachment_id string
    tenancy_id string
    The OCID of the tenancy associated with this TenancyAttachment.
    time_created string
    The date and time the TenancyAttachment was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_data_population_ended string
    The date and time the data population tasks completed, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_data_population_started string
    The date and time the data population tasks started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_updated string
    The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    dataPopulationStatus String
    The overall status of the data population from the tenancy.
    description String
    A description of the tenancy.
    id String
    The OCID of the TenancyAttachment.
    isReportingTenancy Boolean
    Whether the tenancy is the tenancy used when creating Resource Analytics Instance.
    lifecycleDetails String
    A message that describes the current state of the TenancyAttachment in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    monitoredRegions List<GetResourceAnalyticsTenancyAttachmentMonitoredRegion>
    List of monitored regions with their data population status.
    resourceAnalyticsInstanceId String
    The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
    state String
    The current state of the TenancyAttachment.
    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"}
    tenancyAttachmentId String
    tenancyId String
    The OCID of the tenancy associated with this TenancyAttachment.
    timeCreated String
    The date and time the TenancyAttachment was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeDataPopulationEnded String
    The date and time the data population tasks completed, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeDataPopulationStarted String
    The date and time the data population tasks started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    dataPopulationStatus string
    The overall status of the data population from the tenancy.
    description string
    A description of the tenancy.
    id string
    The OCID of the TenancyAttachment.
    isReportingTenancy boolean
    Whether the tenancy is the tenancy used when creating Resource Analytics Instance.
    lifecycleDetails string
    A message that describes the current state of the TenancyAttachment in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    monitoredRegions GetResourceAnalyticsTenancyAttachmentMonitoredRegion[]
    List of monitored regions with their data population status.
    resourceAnalyticsInstanceId string
    The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
    state string
    The current state of the TenancyAttachment.
    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"}
    tenancyAttachmentId string
    tenancyId string
    The OCID of the tenancy associated with this TenancyAttachment.
    timeCreated string
    The date and time the TenancyAttachment was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeDataPopulationEnded string
    The date and time the data population tasks completed, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeDataPopulationStarted string
    The date and time the data population tasks started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    data_population_status str
    The overall status of the data population from the tenancy.
    description str
    A description of the tenancy.
    id str
    The OCID of the TenancyAttachment.
    is_reporting_tenancy bool
    Whether the tenancy is the tenancy used when creating Resource Analytics Instance.
    lifecycle_details str
    A message that describes the current state of the TenancyAttachment in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    monitored_regions Sequence[GetResourceAnalyticsTenancyAttachmentMonitoredRegion]
    List of monitored regions with their data population status.
    resource_analytics_instance_id str
    The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
    state str
    The current state of the TenancyAttachment.
    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"}
    tenancy_attachment_id str
    tenancy_id str
    The OCID of the tenancy associated with this TenancyAttachment.
    time_created str
    The date and time the TenancyAttachment was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_data_population_ended str
    The date and time the data population tasks completed, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_data_population_started str
    The date and time the data population tasks started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_updated str
    The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    dataPopulationStatus String
    The overall status of the data population from the tenancy.
    description String
    A description of the tenancy.
    id String
    The OCID of the TenancyAttachment.
    isReportingTenancy Boolean
    Whether the tenancy is the tenancy used when creating Resource Analytics Instance.
    lifecycleDetails String
    A message that describes the current state of the TenancyAttachment in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    monitoredRegions List<Property Map>
    List of monitored regions with their data population status.
    resourceAnalyticsInstanceId String
    The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
    state String
    The current state of the TenancyAttachment.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenancyAttachmentId String
    tenancyId String
    The OCID of the tenancy associated with this TenancyAttachment.
    timeCreated String
    The date and time the TenancyAttachment was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeDataPopulationEnded String
    The date and time the data population tasks completed, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeDataPopulationStarted String
    The date and time the data population tasks started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z

    Supporting Types

    GetResourceAnalyticsTenancyAttachmentMonitoredRegion

    DataPopulations List<GetResourceAnalyticsTenancyAttachmentMonitoredRegionDataPopulation>
    Data population status for a monitored region in the tenancy.
    RegionId string
    The Region Identifier of the monitored region. E.g. us-ashburn-1
    DataPopulations []GetResourceAnalyticsTenancyAttachmentMonitoredRegionDataPopulation
    Data population status for a monitored region in the tenancy.
    RegionId string
    The Region Identifier of the monitored region. E.g. us-ashburn-1
    data_populations list(object)
    Data population status for a monitored region in the tenancy.
    region_id string
    The Region Identifier of the monitored region. E.g. us-ashburn-1
    dataPopulations List<GetResourceAnalyticsTenancyAttachmentMonitoredRegionDataPopulation>
    Data population status for a monitored region in the tenancy.
    regionId String
    The Region Identifier of the monitored region. E.g. us-ashburn-1
    dataPopulations GetResourceAnalyticsTenancyAttachmentMonitoredRegionDataPopulation[]
    Data population status for a monitored region in the tenancy.
    regionId string
    The Region Identifier of the monitored region. E.g. us-ashburn-1
    data_populations Sequence[GetResourceAnalyticsTenancyAttachmentMonitoredRegionDataPopulation]
    Data population status for a monitored region in the tenancy.
    region_id str
    The Region Identifier of the monitored region. E.g. us-ashburn-1
    dataPopulations List<Property Map>
    Data population status for a monitored region in the tenancy.
    regionId String
    The Region Identifier of the monitored region. E.g. us-ashburn-1

    GetResourceAnalyticsTenancyAttachmentMonitoredRegionDataPopulation

    InProgressCount int
    The number of data population tasks currently in progress.
    Status string
    The overall status of the data population from the monitored region of the tenancy.
    SucceededCount int
    The number of data population tasks that have succeeded.
    TimeEnded string
    The date and time the data population task completed, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeStarted string
    The date and time the data population task was started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TotalCount int
    The total number of data population tasks.
    InProgressCount int
    The number of data population tasks currently in progress.
    Status string
    The overall status of the data population from the monitored region of the tenancy.
    SucceededCount int
    The number of data population tasks that have succeeded.
    TimeEnded string
    The date and time the data population task completed, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeStarted string
    The date and time the data population task was started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TotalCount int
    The total number of data population tasks.
    in_progress_count number
    The number of data population tasks currently in progress.
    status string
    The overall status of the data population from the monitored region of the tenancy.
    succeeded_count number
    The number of data population tasks that have succeeded.
    time_ended string
    The date and time the data population task completed, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_started string
    The date and time the data population task was started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    total_count number
    The total number of data population tasks.
    inProgressCount Integer
    The number of data population tasks currently in progress.
    status String
    The overall status of the data population from the monitored region of the tenancy.
    succeededCount Integer
    The number of data population tasks that have succeeded.
    timeEnded String
    The date and time the data population task completed, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeStarted String
    The date and time the data population task was started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    totalCount Integer
    The total number of data population tasks.
    inProgressCount number
    The number of data population tasks currently in progress.
    status string
    The overall status of the data population from the monitored region of the tenancy.
    succeededCount number
    The number of data population tasks that have succeeded.
    timeEnded string
    The date and time the data population task completed, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeStarted string
    The date and time the data population task was started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    totalCount number
    The total number of data population tasks.
    in_progress_count int
    The number of data population tasks currently in progress.
    status str
    The overall status of the data population from the monitored region of the tenancy.
    succeeded_count int
    The number of data population tasks that have succeeded.
    time_ended str
    The date and time the data population task completed, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_started str
    The date and time the data population task was started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    total_count int
    The total number of data population tasks.
    inProgressCount Number
    The number of data population tasks currently in progress.
    status String
    The overall status of the data population from the monitored region of the tenancy.
    succeededCount Number
    The number of data population tasks that have succeeded.
    timeEnded String
    The date and time the data population task completed, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeStarted String
    The date and time the data population task was started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    totalCount Number
    The total number of data population tasks.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.20.0
    published on Wednesday, Jul 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial