Oracle Cloud Infrastructure v3.12.0 published on Friday, Nov 21, 2025 by Pulumi
Oracle Cloud Infrastructure v3.12.0 published on Friday, Nov 21, 2025 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/v3/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.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 testTenancyAttachment = OciFunctions.getResourceAnalyticsTenancyAttachment(GetResourceAnalyticsTenancyAttachmentArgs.builder()
.tenancyAttachmentId(testTenancyAttachmentOciResourceAnalyticsTenancyAttachment.id())
.build());
}
}
variables:
testTenancyAttachment:
fn::invoke:
function: oci:oci:getResourceAnalyticsTenancyAttachment
arguments:
tenancyAttachmentId: ${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: Optional[pulumi.Input[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 dictionaryThe following arguments are supported:
- Tenancy
Attachment stringId - The OCID of the TenancyAttachment.
- Tenancy
Attachment stringId - The OCID of the TenancyAttachment.
- tenancy
Attachment StringId - The OCID of the TenancyAttachment.
- tenancy
Attachment stringId - The OCID of the TenancyAttachment.
- tenancy_
attachment_ strid - The OCID of the TenancyAttachment.
- tenancy
Attachment StringId - The OCID of the TenancyAttachment.
getResourceAnalyticsTenancyAttachment Result
The following output properties are available:
- Description string
- A description of the tenancy.
- Id string
- The OCID of the TenancyAttachment.
- Is
Reporting boolTenancy - 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.
- Resource
Analytics stringInstance Id - The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
- State string
- The current state of the TenancyAttachment.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Tenancy
Attachment stringId - 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
Updated string - The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Description string
- A description of the tenancy.
- Id string
- The OCID of the TenancyAttachment.
- Is
Reporting boolTenancy - 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.
- Resource
Analytics stringInstance Id - The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
- State string
- The current state of the TenancyAttachment.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Tenancy
Attachment stringId - 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
Updated string - The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- description String
- A description of the tenancy.
- id String
- The OCID of the TenancyAttachment.
- is
Reporting BooleanTenancy - 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.
- resource
Analytics StringInstance Id - The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
- state String
- The current state of the TenancyAttachment.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - tenancy
Attachment StringId - 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
Updated String - The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- description string
- A description of the tenancy.
- id string
- The OCID of the TenancyAttachment.
- is
Reporting booleanTenancy - 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.
- resource
Analytics stringInstance Id - The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
- state string
- The current state of the TenancyAttachment.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - tenancy
Attachment stringId - 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
Updated string - The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- description str
- A description of the tenancy.
- id str
- The OCID of the TenancyAttachment.
- is_
reporting_ booltenancy - 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.
- resource_
analytics_ strinstance_ id - The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
- state str
- The current state of the TenancyAttachment.
- 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_ strid - 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_
updated str - The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- description String
- A description of the tenancy.
- id String
- The OCID of the TenancyAttachment.
- is
Reporting BooleanTenancy - 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.
- resource
Analytics StringInstance Id - The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
- state String
- The current state of the TenancyAttachment.
- 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 StringId - 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
Updated String - The date and time the TenancyAttachment 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
ociTerraform Provider.
Oracle Cloud Infrastructure v3.12.0 published on Friday, Nov 21, 2025 by Pulumi
