1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. oci
  5. getMulticloudOmHubMulticloudResources
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
oci logo
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi

    This data source provides the list of Om Hub Multicloud Resources in Oracle Cloud Infrastructure Multicloud service.

    Gets a list of multicloud resources with multicloud base compartment and subscription across Cloud Service Providers.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testOmHubMulticloudResources = oci.oci.getMulticloudOmHubMulticloudResources({
        subscriptionId: subscriptionId,
        subscriptionServiceName: subscriptionServiceName,
        compartmentId: compartmentId,
        externalLocation: externalLocation,
        resourceAnchorId: resourceAnchorId,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_om_hub_multicloud_resources = oci.oci.get_multicloud_om_hub_multicloud_resources(subscription_id=subscription_id,
        subscription_service_name=subscription_service_name,
        compartment_id=compartment_id,
        external_location=external_location,
        resource_anchor_id=resource_anchor_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.GetMulticloudOmHubMulticloudResources(ctx, &oci.GetMulticloudOmHubMulticloudResourcesArgs{
    			SubscriptionId:          subscriptionId,
    			SubscriptionServiceName: subscriptionServiceName,
    			CompartmentId:           pulumi.StringRef(compartmentId),
    			ExternalLocation:        pulumi.StringRef(externalLocation),
    			ResourceAnchorId:        pulumi.StringRef(resourceAnchorId),
    		}, 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 testOmHubMulticloudResources = Oci.Oci.GetMulticloudOmHubMulticloudResources.Invoke(new()
        {
            SubscriptionId = subscriptionId,
            SubscriptionServiceName = subscriptionServiceName,
            CompartmentId = compartmentId,
            ExternalLocation = externalLocation,
            ResourceAnchorId = resourceAnchorId,
        });
    
    });
    
    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.GetMulticloudOmHubMulticloudResourcesArgs;
    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 testOmHubMulticloudResources = OciFunctions.getMulticloudOmHubMulticloudResources(GetMulticloudOmHubMulticloudResourcesArgs.builder()
                .subscriptionId(subscriptionId)
                .subscriptionServiceName(subscriptionServiceName)
                .compartmentId(compartmentId)
                .externalLocation(externalLocation)
                .resourceAnchorId(resourceAnchorId)
                .build());
    
        }
    }
    
    variables:
      testOmHubMulticloudResources:
        fn::invoke:
          function: oci:oci:getMulticloudOmHubMulticloudResources
          arguments:
            subscriptionId: ${subscriptionId}
            subscriptionServiceName: ${subscriptionServiceName}
            compartmentId: ${compartmentId}
            externalLocation: ${externalLocation}
            resourceAnchorId: ${resourceAnchorId}
    

    Using getMulticloudOmHubMulticloudResources

    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 getMulticloudOmHubMulticloudResources(args: GetMulticloudOmHubMulticloudResourcesArgs, opts?: InvokeOptions): Promise<GetMulticloudOmHubMulticloudResourcesResult>
    function getMulticloudOmHubMulticloudResourcesOutput(args: GetMulticloudOmHubMulticloudResourcesOutputArgs, opts?: InvokeOptions): Output<GetMulticloudOmHubMulticloudResourcesResult>
    def get_multicloud_om_hub_multicloud_resources(compartment_id: Optional[str] = None,
                                                   external_location: Optional[str] = None,
                                                   filters: Optional[Sequence[GetMulticloudOmHubMulticloudResourcesFilter]] = None,
                                                   limit: Optional[int] = None,
                                                   resource_anchor_id: Optional[str] = None,
                                                   subscription_id: Optional[str] = None,
                                                   subscription_service_name: Optional[str] = None,
                                                   opts: Optional[InvokeOptions] = None) -> GetMulticloudOmHubMulticloudResourcesResult
    def get_multicloud_om_hub_multicloud_resources_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                                   external_location: Optional[pulumi.Input[str]] = None,
                                                   filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetMulticloudOmHubMulticloudResourcesFilterArgs]]]] = None,
                                                   limit: Optional[pulumi.Input[int]] = None,
                                                   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[GetMulticloudOmHubMulticloudResourcesResult]
    func GetMulticloudOmHubMulticloudResources(ctx *Context, args *GetMulticloudOmHubMulticloudResourcesArgs, opts ...InvokeOption) (*GetMulticloudOmHubMulticloudResourcesResult, error)
    func GetMulticloudOmHubMulticloudResourcesOutput(ctx *Context, args *GetMulticloudOmHubMulticloudResourcesOutputArgs, opts ...InvokeOption) GetMulticloudOmHubMulticloudResourcesResultOutput

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

    public static class GetMulticloudOmHubMulticloudResources 
    {
        public static Task<GetMulticloudOmHubMulticloudResourcesResult> InvokeAsync(GetMulticloudOmHubMulticloudResourcesArgs args, InvokeOptions? opts = null)
        public static Output<GetMulticloudOmHubMulticloudResourcesResult> Invoke(GetMulticloudOmHubMulticloudResourcesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMulticloudOmHubMulticloudResourcesResult> getMulticloudOmHubMulticloudResources(GetMulticloudOmHubMulticloudResourcesArgs args, InvokeOptions options)
    public static Output<GetMulticloudOmHubMulticloudResourcesResult> getMulticloudOmHubMulticloudResources(GetMulticloudOmHubMulticloudResourcesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:oci/getMulticloudOmHubMulticloudResources:getMulticloudOmHubMulticloudResources
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SubscriptionId string
    The OCID of the Multicloud subscription in which to list resources.
    SubscriptionServiceName string
    The subscription service name of the Cloud Service Provider.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    ExternalLocation string
    The Cloud Service Provider region.
    Filters List<GetMulticloudOmHubMulticloudResourcesFilter>
    Limit int
    ResourceAnchorId string
    The OCID of the ResourceAnchor.
    SubscriptionId string
    The OCID of the Multicloud subscription in which to list resources.
    SubscriptionServiceName string
    The subscription service name of the Cloud Service Provider.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    ExternalLocation string
    The Cloud Service Provider region.
    Filters []GetMulticloudOmHubMulticloudResourcesFilter
    Limit int
    ResourceAnchorId string
    The OCID of the ResourceAnchor.
    subscriptionId String
    The OCID of the Multicloud subscription in which to list resources.
    subscriptionServiceName String
    The subscription service name of the Cloud Service Provider.
    compartmentId String
    The OCID of the compartment in which to list resources.
    externalLocation String
    The Cloud Service Provider region.
    filters List<GetMulticloudOmHubMulticloudResourcesFilter>
    limit Integer
    resourceAnchorId String
    The OCID of the ResourceAnchor.
    subscriptionId string
    The OCID of the Multicloud subscription in which to list resources.
    subscriptionServiceName string
    The subscription service name of the Cloud Service Provider.
    compartmentId string
    The OCID of the compartment in which to list resources.
    externalLocation string
    The Cloud Service Provider region.
    filters GetMulticloudOmHubMulticloudResourcesFilter[]
    limit number
    resourceAnchorId string
    The OCID of the ResourceAnchor.
    subscription_id str
    The OCID of the Multicloud subscription in which to list resources.
    subscription_service_name str
    The subscription service name of the Cloud Service Provider.
    compartment_id str
    The OCID of the compartment in which to list resources.
    external_location str
    The Cloud Service Provider region.
    filters Sequence[GetMulticloudOmHubMulticloudResourcesFilter]
    limit int
    resource_anchor_id str
    The OCID of the ResourceAnchor.
    subscriptionId String
    The OCID of the Multicloud subscription in which to list resources.
    subscriptionServiceName String
    The subscription service name of the Cloud Service Provider.
    compartmentId String
    The OCID of the compartment in which to list resources.
    externalLocation String
    The Cloud Service Provider region.
    filters List<Property Map>
    limit Number
    resourceAnchorId String
    The OCID of the ResourceAnchor.

    getMulticloudOmHubMulticloudResources Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    MulticloudResourceCollections List<GetMulticloudOmHubMulticloudResourcesMulticloudResourceCollection>
    The list of OmHubMulticloudResource.
    SubscriptionId string
    SubscriptionServiceName string
    CompartmentId string
    Compartment Id of the resource.
    ExternalLocation string
    Filters List<GetMulticloudOmHubMulticloudResourcesFilter>
    Limit int
    ResourceAnchorId string
    Id string
    The provider-assigned unique ID for this managed resource.
    MulticloudResourceCollections []GetMulticloudOmHubMulticloudResourcesMulticloudResourceCollection
    The list of OmHubMulticloudResource.
    SubscriptionId string
    SubscriptionServiceName string
    CompartmentId string
    Compartment Id of the resource.
    ExternalLocation string
    Filters []GetMulticloudOmHubMulticloudResourcesFilter
    Limit int
    ResourceAnchorId string
    id String
    The provider-assigned unique ID for this managed resource.
    multicloudResourceCollections List<GetMulticloudOmHubMulticloudResourcesMulticloudResourceCollection>
    The list of OmHubMulticloudResource.
    subscriptionId String
    subscriptionServiceName String
    compartmentId String
    Compartment Id of the resource.
    externalLocation String
    filters List<GetMulticloudOmHubMulticloudResourcesFilter>
    limit Integer
    resourceAnchorId String
    id string
    The provider-assigned unique ID for this managed resource.
    multicloudResourceCollections GetMulticloudOmHubMulticloudResourcesMulticloudResourceCollection[]
    The list of OmHubMulticloudResource.
    subscriptionId string
    subscriptionServiceName string
    compartmentId string
    Compartment Id of the resource.
    externalLocation string
    filters GetMulticloudOmHubMulticloudResourcesFilter[]
    limit number
    resourceAnchorId string
    id String
    The provider-assigned unique ID for this managed resource.
    multicloudResourceCollections List<Property Map>
    The list of OmHubMulticloudResource.
    subscriptionId String
    subscriptionServiceName String
    compartmentId String
    Compartment Id of the resource.
    externalLocation String
    filters List<Property Map>
    limit Number
    resourceAnchorId String

    Supporting Types

    GetMulticloudOmHubMulticloudResourcesFilter

    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

    GetMulticloudOmHubMulticloudResourcesMulticloudResourceCollection

    items List<Property Map>
    List of MulticloudResourceSummary.

    GetMulticloudOmHubMulticloudResourcesMulticloudResourceCollectionItem

    CompartmentId string
    The OCID of the compartment in which to list resources.
    CompartmentName string
    Compartment name associated the resource.
    CspAdditionalProperties Dictionary<string, string>
    CSP Specific Additional Properties, AzureSubnetId for Azure
    CspResourceId string
    Resource Id that comes from the Multi Cloud Control Plane
    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"}
    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"}
    LifecycleState string
    The current state of the multicloud resource.
    NetworkAnchorId string
    OCID of the Network Anchor
    NetworkAnchorName string
    Name of the network anchor associated to the resource.
    ResourceDisplayName string
    Endpoint used to retrieve displayName and lifeCycleState of the resource.
    ResourceId string
    The Id of the multicloud resource.
    ResourceType string
    What resource it refers to. Eg. VMCluster, ExaInfra, etc.
    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 subscription was created, in the format defined by RFC 3339.
    TimeUpdated string
    The date and time the subscription was updated, in the format defined by RFC 3339.
    VcnId string
    Id of the Virtual Cloud Network associated to the resource.
    VcnName string
    Resource Anchor name.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    CompartmentName string
    Compartment name associated the resource.
    CspAdditionalProperties map[string]string
    CSP Specific Additional Properties, AzureSubnetId for Azure
    CspResourceId string
    Resource Id that comes from the Multi Cloud Control Plane
    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"}
    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"}
    LifecycleState string
    The current state of the multicloud resource.
    NetworkAnchorId string
    OCID of the Network Anchor
    NetworkAnchorName string
    Name of the network anchor associated to the resource.
    ResourceDisplayName string
    Endpoint used to retrieve displayName and lifeCycleState of the resource.
    ResourceId string
    The Id of the multicloud resource.
    ResourceType string
    What resource it refers to. Eg. VMCluster, ExaInfra, etc.
    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 subscription was created, in the format defined by RFC 3339.
    TimeUpdated string
    The date and time the subscription was updated, in the format defined by RFC 3339.
    VcnId string
    Id of the Virtual Cloud Network associated to the resource.
    VcnName string
    Resource Anchor name.
    compartmentId String
    The OCID of the compartment in which to list resources.
    compartmentName String
    Compartment name associated the resource.
    cspAdditionalProperties Map<String,String>
    CSP Specific Additional Properties, AzureSubnetId for Azure
    cspResourceId String
    Resource Id that comes from the Multi Cloud Control Plane
    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"}
    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"}
    lifecycleState String
    The current state of the multicloud resource.
    networkAnchorId String
    OCID of the Network Anchor
    networkAnchorName String
    Name of the network anchor associated to the resource.
    resourceDisplayName String
    Endpoint used to retrieve displayName and lifeCycleState of the resource.
    resourceId String
    The Id of the multicloud resource.
    resourceType String
    What resource it refers to. Eg. VMCluster, ExaInfra, etc.
    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 subscription was created, in the format defined by RFC 3339.
    timeUpdated String
    The date and time the subscription was updated, in the format defined by RFC 3339.
    vcnId String
    Id of the Virtual Cloud Network associated to the resource.
    vcnName String
    Resource Anchor name.
    compartmentId string
    The OCID of the compartment in which to list resources.
    compartmentName string
    Compartment name associated the resource.
    cspAdditionalProperties {[key: string]: string}
    CSP Specific Additional Properties, AzureSubnetId for Azure
    cspResourceId string
    Resource Id that comes from the Multi Cloud Control Plane
    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"}
    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"}
    lifecycleState string
    The current state of the multicloud resource.
    networkAnchorId string
    OCID of the Network Anchor
    networkAnchorName string
    Name of the network anchor associated to the resource.
    resourceDisplayName string
    Endpoint used to retrieve displayName and lifeCycleState of the resource.
    resourceId string
    The Id of the multicloud resource.
    resourceType string
    What resource it refers to. Eg. VMCluster, ExaInfra, etc.
    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 subscription was created, in the format defined by RFC 3339.
    timeUpdated string
    The date and time the subscription was updated, in the format defined by RFC 3339.
    vcnId string
    Id of the Virtual Cloud Network associated to the resource.
    vcnName string
    Resource Anchor name.
    compartment_id str
    The OCID of the compartment in which to list resources.
    compartment_name str
    Compartment name associated the resource.
    csp_additional_properties Mapping[str, str]
    CSP Specific Additional Properties, AzureSubnetId for Azure
    csp_resource_id str
    Resource Id that comes from the Multi Cloud Control Plane
    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"}
    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"}
    lifecycle_state str
    The current state of the multicloud resource.
    network_anchor_id str
    OCID of the Network Anchor
    network_anchor_name str
    Name of the network anchor associated to the resource.
    resource_display_name str
    Endpoint used to retrieve displayName and lifeCycleState of the resource.
    resource_id str
    The Id of the multicloud resource.
    resource_type str
    What resource it refers to. Eg. VMCluster, ExaInfra, etc.
    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 subscription was created, in the format defined by RFC 3339.
    time_updated str
    The date and time the subscription was updated, in the format defined by RFC 3339.
    vcn_id str
    Id of the Virtual Cloud Network associated to the resource.
    vcn_name str
    Resource Anchor name.
    compartmentId String
    The OCID of the compartment in which to list resources.
    compartmentName String
    Compartment name associated the resource.
    cspAdditionalProperties Map<String>
    CSP Specific Additional Properties, AzureSubnetId for Azure
    cspResourceId String
    Resource Id that comes from the Multi Cloud Control Plane
    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"}
    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"}
    lifecycleState String
    The current state of the multicloud resource.
    networkAnchorId String
    OCID of the Network Anchor
    networkAnchorName String
    Name of the network anchor associated to the resource.
    resourceDisplayName String
    Endpoint used to retrieve displayName and lifeCycleState of the resource.
    resourceId String
    The Id of the multicloud resource.
    resourceType String
    What resource it refers to. Eg. VMCluster, ExaInfra, etc.
    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 subscription was created, in the format defined by RFC 3339.
    timeUpdated String
    The date and time the subscription was updated, in the format defined by RFC 3339.
    vcnId String
    Id of the Virtual Cloud Network associated to the resource.
    vcnName String
    Resource Anchor name.

    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.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate