1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. oci
  5. getMulticloudResourceAnchor
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi

oci.oci.getMulticloudResourceAnchor

Get Started
oci logo
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi

    This data source provides details about a specific Resource Anchor resource in Oracle Cloud Infrastructure Multicloud service.

    Gets information about a ResourceAnchor.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testResourceAnchor = oci.oci.getMulticloudResourceAnchor({
        resourceAnchorId: resourceAnchorId,
        subscriptionId: subscriptionId,
        subscriptionServiceName: subscriptionServiceName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_resource_anchor = oci.oci.get_multicloud_resource_anchor(resource_anchor_id=resource_anchor_id,
        subscription_id=subscription_id,
        subscription_service_name=subscription_service_name)
    
    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.GetMulticloudResourceAnchor(ctx, &oci.GetMulticloudResourceAnchorArgs{
    			ResourceAnchorId:        resourceAnchorId,
    			SubscriptionId:          subscriptionId,
    			SubscriptionServiceName: subscriptionServiceName,
    		}, 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 testResourceAnchor = Oci.Oci.GetMulticloudResourceAnchor.Invoke(new()
        {
            ResourceAnchorId = resourceAnchorId,
            SubscriptionId = subscriptionId,
            SubscriptionServiceName = subscriptionServiceName,
        });
    
    });
    
    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.GetMulticloudResourceAnchorArgs;
    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 testResourceAnchor = OciFunctions.getMulticloudResourceAnchor(GetMulticloudResourceAnchorArgs.builder()
                .resourceAnchorId(resourceAnchorId)
                .subscriptionId(subscriptionId)
                .subscriptionServiceName(subscriptionServiceName)
                .build());
    
        }
    }
    
    variables:
      testResourceAnchor:
        fn::invoke:
          function: oci:oci:getMulticloudResourceAnchor
          arguments:
            resourceAnchorId: ${resourceAnchorId}
            subscriptionId: ${subscriptionId}
            subscriptionServiceName: ${subscriptionServiceName}
    

    Using getMulticloudResourceAnchor

    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 getMulticloudResourceAnchor(args: GetMulticloudResourceAnchorArgs, opts?: InvokeOptions): Promise<GetMulticloudResourceAnchorResult>
    function getMulticloudResourceAnchorOutput(args: GetMulticloudResourceAnchorOutputArgs, opts?: InvokeOptions): Output<GetMulticloudResourceAnchorResult>
    def get_multicloud_resource_anchor(resource_anchor_id: Optional[str] = None,
                                       subscription_id: Optional[str] = None,
                                       subscription_service_name: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetMulticloudResourceAnchorResult
    def get_multicloud_resource_anchor_output(resource_anchor_id: Optional[pulumi.Input[str]] = None,
                                       subscription_id: Optional[pulumi.Input[str]] = None,
                                       subscription_service_name: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetMulticloudResourceAnchorResult]
    func GetMulticloudResourceAnchor(ctx *Context, args *GetMulticloudResourceAnchorArgs, opts ...InvokeOption) (*GetMulticloudResourceAnchorResult, error)
    func GetMulticloudResourceAnchorOutput(ctx *Context, args *GetMulticloudResourceAnchorOutputArgs, opts ...InvokeOption) GetMulticloudResourceAnchorResultOutput

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

    public static class GetMulticloudResourceAnchor 
    {
        public static Task<GetMulticloudResourceAnchorResult> InvokeAsync(GetMulticloudResourceAnchorArgs args, InvokeOptions? opts = null)
        public static Output<GetMulticloudResourceAnchorResult> Invoke(GetMulticloudResourceAnchorInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMulticloudResourceAnchorResult> getMulticloudResourceAnchor(GetMulticloudResourceAnchorArgs args, InvokeOptions options)
    public static Output<GetMulticloudResourceAnchorResult> getMulticloudResourceAnchor(GetMulticloudResourceAnchorArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:oci/getMulticloudResourceAnchor:getMulticloudResourceAnchor
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ResourceAnchorId string
    The OCID of the ResourceAnchor.
    SubscriptionId string
    The OCID of the subscription in which to list resources.
    SubscriptionServiceName string
    The subscription service name values from [ORACLEDBATAZURE, ORACLEDBATGOOGLE, ORACLEDBATAWS]
    ResourceAnchorId string
    The OCID of the ResourceAnchor.
    SubscriptionId string
    The OCID of the subscription in which to list resources.
    SubscriptionServiceName string
    The subscription service name values from [ORACLEDBATAZURE, ORACLEDBATGOOGLE, ORACLEDBATAWS]
    resourceAnchorId String
    The OCID of the ResourceAnchor.
    subscriptionId String
    The OCID of the subscription in which to list resources.
    subscriptionServiceName String
    The subscription service name values from [ORACLEDBATAZURE, ORACLEDBATGOOGLE, ORACLEDBATAWS]
    resourceAnchorId string
    The OCID of the ResourceAnchor.
    subscriptionId string
    The OCID of the subscription in which to list resources.
    subscriptionServiceName string
    The subscription service name values from [ORACLEDBATAZURE, ORACLEDBATGOOGLE, ORACLEDBATAWS]
    resource_anchor_id str
    The OCID of the ResourceAnchor.
    subscription_id str
    The OCID of the subscription in which to list resources.
    subscription_service_name str
    The subscription service name values from [ORACLEDBATAZURE, ORACLEDBATGOOGLE, ORACLEDBATAWS]
    resourceAnchorId String
    The OCID of the ResourceAnchor.
    subscriptionId String
    The OCID of the subscription in which to list resources.
    subscriptionServiceName String
    The subscription service name values from [ORACLEDBATAZURE, ORACLEDBATGOOGLE, ORACLEDBATAWS]

    getMulticloudResourceAnchor Result

    The following output properties are available:

    CloudServiceProviderMetadataItems List<GetMulticloudResourceAnchorCloudServiceProviderMetadataItem>
    Cloud Service Provider metadata item. Warning - In future this object can change to generic object with future Cloud Service Provider based on CloudServiceProvider field. This can be one of CSP provider type Azure, GCP and AWS.
    CompartmentId string
    The OCID of the compartment.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable.
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the ResourceAnchor.
    LifecycleDetails string
    A message that describes the current state of the ResourceAnchor in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    LifecycleState string
    The current state of the ResourceAnchor.
    LinkedCompartmentId string
    Optional - Oracle Cloud Infrastructure compartment Id (OCID) which was created or linked by customer with resource anchor. This compartmentId is different from where resource Anchor live.
    Region string
    Oracle Cloud Infrastructure Region that resource is created.
    ResourceAnchorId string
    ResourceAnchorSubscriptionId string
    Oracle Cloud Infrastructure Subscription Id
    SetupMode string
    AUTO_BIND - when passed compartment will be created on-behalf of customer and bind to this resource anchor NO_AUTO_BIND - compartment will not be created and later customer can bind existing compartment. to this resource anchor. This is for future use only
    SubscriptionId string
    SubscriptionServiceName string
    SubscriptionType string
    subscription type
    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 ResourceAnchor was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the ResourceAnchor was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    CloudServiceProviderMetadataItems []GetMulticloudResourceAnchorCloudServiceProviderMetadataItem
    Cloud Service Provider metadata item. Warning - In future this object can change to generic object with future Cloud Service Provider based on CloudServiceProvider field. This can be one of CSP provider type Azure, GCP and AWS.
    CompartmentId string
    The OCID of the compartment.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable.
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the ResourceAnchor.
    LifecycleDetails string
    A message that describes the current state of the ResourceAnchor in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    LifecycleState string
    The current state of the ResourceAnchor.
    LinkedCompartmentId string
    Optional - Oracle Cloud Infrastructure compartment Id (OCID) which was created or linked by customer with resource anchor. This compartmentId is different from where resource Anchor live.
    Region string
    Oracle Cloud Infrastructure Region that resource is created.
    ResourceAnchorId string
    ResourceAnchorSubscriptionId string
    Oracle Cloud Infrastructure Subscription Id
    SetupMode string
    AUTO_BIND - when passed compartment will be created on-behalf of customer and bind to this resource anchor NO_AUTO_BIND - compartment will not be created and later customer can bind existing compartment. to this resource anchor. This is for future use only
    SubscriptionId string
    SubscriptionServiceName string
    SubscriptionType string
    subscription type
    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 ResourceAnchor was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the ResourceAnchor was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    cloudServiceProviderMetadataItems List<GetMulticloudResourceAnchorCloudServiceProviderMetadataItem>
    Cloud Service Provider metadata item. Warning - In future this object can change to generic object with future Cloud Service Provider based on CloudServiceProvider field. This can be one of CSP provider type Azure, GCP and AWS.
    compartmentId String
    The OCID of the compartment.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable.
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the ResourceAnchor.
    lifecycleDetails String
    A message that describes the current state of the ResourceAnchor in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    lifecycleState String
    The current state of the ResourceAnchor.
    linkedCompartmentId String
    Optional - Oracle Cloud Infrastructure compartment Id (OCID) which was created or linked by customer with resource anchor. This compartmentId is different from where resource Anchor live.
    region String
    Oracle Cloud Infrastructure Region that resource is created.
    resourceAnchorId String
    resourceAnchorSubscriptionId String
    Oracle Cloud Infrastructure Subscription Id
    setupMode String
    AUTO_BIND - when passed compartment will be created on-behalf of customer and bind to this resource anchor NO_AUTO_BIND - compartment will not be created and later customer can bind existing compartment. to this resource anchor. This is for future use only
    subscriptionId String
    subscriptionServiceName String
    subscriptionType String
    subscription type
    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 ResourceAnchor was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the ResourceAnchor was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    cloudServiceProviderMetadataItems GetMulticloudResourceAnchorCloudServiceProviderMetadataItem[]
    Cloud Service Provider metadata item. Warning - In future this object can change to generic object with future Cloud Service Provider based on CloudServiceProvider field. This can be one of CSP provider type Azure, GCP and AWS.
    compartmentId string
    The OCID of the compartment.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable.
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The OCID of the ResourceAnchor.
    lifecycleDetails string
    A message that describes the current state of the ResourceAnchor in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    lifecycleState string
    The current state of the ResourceAnchor.
    linkedCompartmentId string
    Optional - Oracle Cloud Infrastructure compartment Id (OCID) which was created or linked by customer with resource anchor. This compartmentId is different from where resource Anchor live.
    region string
    Oracle Cloud Infrastructure Region that resource is created.
    resourceAnchorId string
    resourceAnchorSubscriptionId string
    Oracle Cloud Infrastructure Subscription Id
    setupMode string
    AUTO_BIND - when passed compartment will be created on-behalf of customer and bind to this resource anchor NO_AUTO_BIND - compartment will not be created and later customer can bind existing compartment. to this resource anchor. This is for future use only
    subscriptionId string
    subscriptionServiceName string
    subscriptionType string
    subscription type
    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 ResourceAnchor was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time the ResourceAnchor was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    cloud_service_provider_metadata_items Sequence[GetMulticloudResourceAnchorCloudServiceProviderMetadataItem]
    Cloud Service Provider metadata item. Warning - In future this object can change to generic object with future Cloud Service Provider based on CloudServiceProvider field. This can be one of CSP provider type Azure, GCP and AWS.
    compartment_id str
    The OCID of the compartment.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    A user-friendly name. Does not have to be unique, and it's changeable.
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    The OCID of the ResourceAnchor.
    lifecycle_details str
    A message that describes the current state of the ResourceAnchor in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    lifecycle_state str
    The current state of the ResourceAnchor.
    linked_compartment_id str
    Optional - Oracle Cloud Infrastructure compartment Id (OCID) which was created or linked by customer with resource anchor. This compartmentId is different from where resource Anchor live.
    region str
    Oracle Cloud Infrastructure Region that resource is created.
    resource_anchor_id str
    resource_anchor_subscription_id str
    Oracle Cloud Infrastructure Subscription Id
    setup_mode str
    AUTO_BIND - when passed compartment will be created on-behalf of customer and bind to this resource anchor NO_AUTO_BIND - compartment will not be created and later customer can bind existing compartment. to this resource anchor. This is for future use only
    subscription_id str
    subscription_service_name str
    subscription_type str
    subscription type
    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 ResourceAnchor was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_updated str
    The date and time the ResourceAnchor was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    cloudServiceProviderMetadataItems List<Property Map>
    Cloud Service Provider metadata item. Warning - In future this object can change to generic object with future Cloud Service Provider based on CloudServiceProvider field. This can be one of CSP provider type Azure, GCP and AWS.
    compartmentId String
    The OCID of the compartment.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable.
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the ResourceAnchor.
    lifecycleDetails String
    A message that describes the current state of the ResourceAnchor in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    lifecycleState String
    The current state of the ResourceAnchor.
    linkedCompartmentId String
    Optional - Oracle Cloud Infrastructure compartment Id (OCID) which was created or linked by customer with resource anchor. This compartmentId is different from where resource Anchor live.
    region String
    Oracle Cloud Infrastructure Region that resource is created.
    resourceAnchorId String
    resourceAnchorSubscriptionId String
    Oracle Cloud Infrastructure Subscription Id
    setupMode String
    AUTO_BIND - when passed compartment will be created on-behalf of customer and bind to this resource anchor NO_AUTO_BIND - compartment will not be created and later customer can bind existing compartment. to this resource anchor. This is for future use only
    subscriptionId String
    subscriptionServiceName String
    subscriptionType String
    subscription type
    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 ResourceAnchor was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the ResourceAnchor was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z

    Supporting Types

    GetMulticloudResourceAnchorCloudServiceProviderMetadataItem

    AccountId string
    AWS accountId that was used for creating this resource anchor resource.
    ProjectNumber string
    GCP project number that was used for creating this resource anchor resource.
    Region string
    Oracle Cloud Infrastructure Region that resource is created.
    ResourceAnchorName string
    CSP resource anchor ID or name.
    ResourceAnchorUri string
    CSP resource anchor Uri.
    ResourceGroup string
    Azure resource group that was used for creating this resource.
    Subscription string
    Azure subscription that was used for creating this resource.
    SubscriptionType string
    subscription type
    AccountId string
    AWS accountId that was used for creating this resource anchor resource.
    ProjectNumber string
    GCP project number that was used for creating this resource anchor resource.
    Region string
    Oracle Cloud Infrastructure Region that resource is created.
    ResourceAnchorName string
    CSP resource anchor ID or name.
    ResourceAnchorUri string
    CSP resource anchor Uri.
    ResourceGroup string
    Azure resource group that was used for creating this resource.
    Subscription string
    Azure subscription that was used for creating this resource.
    SubscriptionType string
    subscription type
    accountId String
    AWS accountId that was used for creating this resource anchor resource.
    projectNumber String
    GCP project number that was used for creating this resource anchor resource.
    region String
    Oracle Cloud Infrastructure Region that resource is created.
    resourceAnchorName String
    CSP resource anchor ID or name.
    resourceAnchorUri String
    CSP resource anchor Uri.
    resourceGroup String
    Azure resource group that was used for creating this resource.
    subscription String
    Azure subscription that was used for creating this resource.
    subscriptionType String
    subscription type
    accountId string
    AWS accountId that was used for creating this resource anchor resource.
    projectNumber string
    GCP project number that was used for creating this resource anchor resource.
    region string
    Oracle Cloud Infrastructure Region that resource is created.
    resourceAnchorName string
    CSP resource anchor ID or name.
    resourceAnchorUri string
    CSP resource anchor Uri.
    resourceGroup string
    Azure resource group that was used for creating this resource.
    subscription string
    Azure subscription that was used for creating this resource.
    subscriptionType string
    subscription type
    account_id str
    AWS accountId that was used for creating this resource anchor resource.
    project_number str
    GCP project number that was used for creating this resource anchor resource.
    region str
    Oracle Cloud Infrastructure Region that resource is created.
    resource_anchor_name str
    CSP resource anchor ID or name.
    resource_anchor_uri str
    CSP resource anchor Uri.
    resource_group str
    Azure resource group that was used for creating this resource.
    subscription str
    Azure subscription that was used for creating this resource.
    subscription_type str
    subscription type
    accountId String
    AWS accountId that was used for creating this resource anchor resource.
    projectNumber String
    GCP project number that was used for creating this resource anchor resource.
    region String
    Oracle Cloud Infrastructure Region that resource is created.
    resourceAnchorName String
    CSP resource anchor ID or name.
    resourceAnchorUri String
    CSP resource anchor Uri.
    resourceGroup String
    Azure resource group that was used for creating this resource.
    subscription String
    Azure subscription that was used for creating this resource.
    subscriptionType String
    subscription type

    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.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate