Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.oci.getMulticloudResourceAnchor
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 dictionaryThe following arguments are supported:
- Resource
Anchor stringId - The OCID of the ResourceAnchor.
- Subscription
Id string - The OCID of the subscription in which to list resources.
- Subscription
Service stringName - The subscription service name values from [ORACLEDBATAZURE, ORACLEDBATGOOGLE, ORACLEDBATAWS]
- Resource
Anchor stringId - The OCID of the ResourceAnchor.
- Subscription
Id string - The OCID of the subscription in which to list resources.
- Subscription
Service stringName - The subscription service name values from [ORACLEDBATAZURE, ORACLEDBATGOOGLE, ORACLEDBATAWS]
- resource
Anchor StringId - The OCID of the ResourceAnchor.
- subscription
Id String - The OCID of the subscription in which to list resources.
- subscription
Service StringName - The subscription service name values from [ORACLEDBATAZURE, ORACLEDBATGOOGLE, ORACLEDBATAWS]
- resource
Anchor stringId - The OCID of the ResourceAnchor.
- subscription
Id string - The OCID of the subscription in which to list resources.
- subscription
Service stringName - The subscription service name values from [ORACLEDBATAZURE, ORACLEDBATGOOGLE, ORACLEDBATAWS]
- resource_
anchor_ strid - The OCID of the ResourceAnchor.
- subscription_
id str - The OCID of the subscription in which to list resources.
- subscription_
service_ strname - The subscription service name values from [ORACLEDBATAZURE, ORACLEDBATGOOGLE, ORACLEDBATAWS]
- resource
Anchor StringId - The OCID of the ResourceAnchor.
- subscription
Id String - The OCID of the subscription in which to list resources.
- subscription
Service StringName - The subscription service name values from [ORACLEDBATAZURE, ORACLEDBATGOOGLE, ORACLEDBATAWS]
getMulticloudResourceAnchor Result
The following output properties are available:
- Cloud
Service List<GetProvider Metadata Items Multicloud Resource Anchor Cloud Service Provider Metadata Item> - 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 string - The OCID of the compartment.
- 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"} - Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable.
- 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.
- Lifecycle
Details 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.
- Lifecycle
State string - The current state of the ResourceAnchor.
- Linked
Compartment stringId - 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.
- Resource
Anchor stringId - Resource
Anchor stringSubscription Id - Oracle Cloud Infrastructure Subscription Id
- Setup
Mode 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
- Subscription
Id string - Subscription
Service stringName - Subscription
Type string - subscription type
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the ResourceAnchor was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Updated 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 []GetProvider Metadata Items Multicloud Resource Anchor Cloud Service Provider Metadata Item - 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 string - The OCID of the compartment.
- 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"} - Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable.
- 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.
- Lifecycle
Details 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.
- Lifecycle
State string - The current state of the ResourceAnchor.
- Linked
Compartment stringId - 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.
- Resource
Anchor stringId - Resource
Anchor stringSubscription Id - Oracle Cloud Infrastructure Subscription Id
- Setup
Mode 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
- Subscription
Id string - Subscription
Service stringName - Subscription
Type string - subscription type
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the ResourceAnchor was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Updated 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 List<GetProvider Metadata Items Multicloud Resource Anchor Cloud Service Provider Metadata Item> - 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 String - The OCID of the compartment.
- 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"} - display
Name String - A user-friendly name. Does not have to be unique, and it's changeable.
- 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.
- lifecycle
Details 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.
- lifecycle
State String - The current state of the ResourceAnchor.
- linked
Compartment StringId - 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.
- resource
Anchor StringId - resource
Anchor StringSubscription Id - Oracle Cloud Infrastructure Subscription Id
- setup
Mode 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
- subscription
Id String - subscription
Service StringName - subscription
Type String - subscription type
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the ResourceAnchor was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated 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 GetProvider Metadata Items Multicloud Resource Anchor Cloud Service Provider Metadata Item[] - 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 string - The OCID of the compartment.
- {[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"} - display
Name string - A user-friendly name. Does not have to be unique, and it's changeable.
- {[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.
- lifecycle
Details 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.
- lifecycle
State string - The current state of the ResourceAnchor.
- linked
Compartment stringId - 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.
- resource
Anchor stringId - resource
Anchor stringSubscription Id - Oracle Cloud Infrastructure Subscription Id
- setup
Mode 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
- subscription
Id string - subscription
Service stringName - subscription
Type string - subscription type
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The date and time the ResourceAnchor was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated 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_ Sequence[Getprovider_ metadata_ items Multicloud Resource Anchor Cloud Service Provider Metadata Item] - 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.
- 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.
- 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_ strid - 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_ strid - resource_
anchor_ strsubscription_ id - 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_ strname - subscription_
type str - subscription type
- 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
- cloud
Service List<Property Map>Provider Metadata Items - 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 String - The OCID of the compartment.
- 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"} - display
Name String - A user-friendly name. Does not have to be unique, and it's changeable.
- 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.
- lifecycle
Details 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.
- lifecycle
State String - The current state of the ResourceAnchor.
- linked
Compartment StringId - 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.
- resource
Anchor StringId - resource
Anchor StringSubscription Id - Oracle Cloud Infrastructure Subscription Id
- setup
Mode 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
- subscription
Id String - subscription
Service StringName - subscription
Type String - subscription type
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the ResourceAnchor was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated 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
- Account
Id string - AWS accountId that was used for creating this resource anchor resource.
- Project
Number string - GCP project number that was used for creating this resource anchor resource.
- Region string
- Oracle Cloud Infrastructure Region that resource is created.
- Resource
Anchor stringName - CSP resource anchor ID or name.
- Resource
Anchor stringUri - CSP resource anchor Uri.
- Resource
Group string - Azure resource group that was used for creating this resource.
- Subscription string
- Azure subscription that was used for creating this resource.
- Subscription
Type string - subscription type
- Account
Id string - AWS accountId that was used for creating this resource anchor resource.
- Project
Number string - GCP project number that was used for creating this resource anchor resource.
- Region string
- Oracle Cloud Infrastructure Region that resource is created.
- Resource
Anchor stringName - CSP resource anchor ID or name.
- Resource
Anchor stringUri - CSP resource anchor Uri.
- Resource
Group string - Azure resource group that was used for creating this resource.
- Subscription string
- Azure subscription that was used for creating this resource.
- Subscription
Type string - subscription type
- account
Id String - AWS accountId that was used for creating this resource anchor resource.
- project
Number String - GCP project number that was used for creating this resource anchor resource.
- region String
- Oracle Cloud Infrastructure Region that resource is created.
- resource
Anchor StringName - CSP resource anchor ID or name.
- resource
Anchor StringUri - CSP resource anchor Uri.
- resource
Group String - Azure resource group that was used for creating this resource.
- subscription String
- Azure subscription that was used for creating this resource.
- subscription
Type String - subscription type
- account
Id string - AWS accountId that was used for creating this resource anchor resource.
- project
Number string - GCP project number that was used for creating this resource anchor resource.
- region string
- Oracle Cloud Infrastructure Region that resource is created.
- resource
Anchor stringName - CSP resource anchor ID or name.
- resource
Anchor stringUri - CSP resource anchor Uri.
- resource
Group string - Azure resource group that was used for creating this resource.
- subscription string
- Azure subscription that was used for creating this resource.
- subscription
Type 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_ strname - CSP resource anchor ID or name.
- resource_
anchor_ struri - 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
- account
Id String - AWS accountId that was used for creating this resource anchor resource.
- project
Number String - GCP project number that was used for creating this resource anchor resource.
- region String
- Oracle Cloud Infrastructure Region that resource is created.
- resource
Anchor StringName - CSP resource anchor ID or name.
- resource
Anchor StringUri - CSP resource anchor Uri.
- resource
Group String - Azure resource group that was used for creating this resource.
- subscription String
- Azure subscription that was used for creating this resource.
- subscription
Type String - subscription type
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
