Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
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 dictionaryThe following arguments are supported:
- Subscription
Id string - The OCID of the Multicloud subscription in which to list resources.
- Subscription
Service stringName - The subscription service name of the Cloud Service Provider.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- External
Location string - The Cloud Service Provider region.
- Filters
List<Get
Multicloud Om Hub Multicloud Resources Filter> - Limit int
- Resource
Anchor stringId - The OCID of the ResourceAnchor.
- Subscription
Id string - The OCID of the Multicloud subscription in which to list resources.
- Subscription
Service stringName - The subscription service name of the Cloud Service Provider.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- External
Location string - The Cloud Service Provider region.
- Filters
[]Get
Multicloud Om Hub Multicloud Resources Filter - Limit int
- Resource
Anchor stringId - The OCID of the ResourceAnchor.
- subscription
Id String - The OCID of the Multicloud subscription in which to list resources.
- subscription
Service StringName - The subscription service name of the Cloud Service Provider.
- compartment
Id String - The OCID of the compartment in which to list resources.
- external
Location String - The Cloud Service Provider region.
- filters
List<Get
Multicloud Om Hub Multicloud Resources Filter> - limit Integer
- resource
Anchor StringId - The OCID of the ResourceAnchor.
- subscription
Id string - The OCID of the Multicloud subscription in which to list resources.
- subscription
Service stringName - The subscription service name of the Cloud Service Provider.
- compartment
Id string - The OCID of the compartment in which to list resources.
- external
Location string - The Cloud Service Provider region.
- filters
Get
Multicloud Om Hub Multicloud Resources Filter[] - limit number
- resource
Anchor stringId - The OCID of the ResourceAnchor.
- subscription_
id str - The OCID of the Multicloud subscription in which to list resources.
- subscription_
service_ strname - 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[Get
Multicloud Om Hub Multicloud Resources Filter] - limit int
- resource_
anchor_ strid - The OCID of the ResourceAnchor.
- subscription
Id String - The OCID of the Multicloud subscription in which to list resources.
- subscription
Service StringName - The subscription service name of the Cloud Service Provider.
- compartment
Id String - The OCID of the compartment in which to list resources.
- external
Location String - The Cloud Service Provider region.
- filters List<Property Map>
- limit Number
- resource
Anchor StringId - The OCID of the ResourceAnchor.
getMulticloudOmHubMulticloudResources Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Multicloud
Resource List<GetCollections Multicloud Om Hub Multicloud Resources Multicloud Resource Collection> - The list of OmHubMulticloudResource.
- Subscription
Id string - Subscription
Service stringName - Compartment
Id string - Compartment Id of the resource.
- External
Location string - Filters
List<Get
Multicloud Om Hub Multicloud Resources Filter> - Limit int
- Resource
Anchor stringId
- Id string
- The provider-assigned unique ID for this managed resource.
- Multicloud
Resource []GetCollections Multicloud Om Hub Multicloud Resources Multicloud Resource Collection - The list of OmHubMulticloudResource.
- Subscription
Id string - Subscription
Service stringName - Compartment
Id string - Compartment Id of the resource.
- External
Location string - Filters
[]Get
Multicloud Om Hub Multicloud Resources Filter - Limit int
- Resource
Anchor stringId
- id String
- The provider-assigned unique ID for this managed resource.
- multicloud
Resource List<GetCollections Multicloud Om Hub Multicloud Resources Multicloud Resource Collection> - The list of OmHubMulticloudResource.
- subscription
Id String - subscription
Service StringName - compartment
Id String - Compartment Id of the resource.
- external
Location String - filters
List<Get
Multicloud Om Hub Multicloud Resources Filter> - limit Integer
- resource
Anchor StringId
- id string
- The provider-assigned unique ID for this managed resource.
- multicloud
Resource GetCollections Multicloud Om Hub Multicloud Resources Multicloud Resource Collection[] - The list of OmHubMulticloudResource.
- subscription
Id string - subscription
Service stringName - compartment
Id string - Compartment Id of the resource.
- external
Location string - filters
Get
Multicloud Om Hub Multicloud Resources Filter[] - limit number
- resource
Anchor stringId
- id str
- The provider-assigned unique ID for this managed resource.
- multicloud_
resource_ Sequence[Getcollections Multicloud Om Hub Multicloud Resources Multicloud Resource Collection] - The list of OmHubMulticloudResource.
- subscription_
id str - subscription_
service_ strname - compartment_
id str - Compartment Id of the resource.
- external_
location str - filters
Sequence[Get
Multicloud Om Hub Multicloud Resources Filter] - limit int
- resource_
anchor_ strid
- id String
- The provider-assigned unique ID for this managed resource.
- multicloud
Resource List<Property Map>Collections - The list of OmHubMulticloudResource.
- subscription
Id String - subscription
Service StringName - compartment
Id String - Compartment Id of the resource.
- external
Location String - filters List<Property Map>
- limit Number
- resource
Anchor StringId
Supporting Types
GetMulticloudOmHubMulticloudResourcesFilter
GetMulticloudOmHubMulticloudResourcesMulticloudResourceCollection
- Items
List<Get
Multicloud Om Hub Multicloud Resources Multicloud Resource Collection Item> - List of MulticloudResourceSummary.
- Items
[]Get
Multicloud Om Hub Multicloud Resources Multicloud Resource Collection Item - List of MulticloudResourceSummary.
- items
List<Get
Multicloud Om Hub Multicloud Resources Multicloud Resource Collection Item> - List of MulticloudResourceSummary.
- items
Get
Multicloud Om Hub Multicloud Resources Multicloud Resource Collection Item[] - List of MulticloudResourceSummary.
- items
Sequence[Get
Multicloud Om Hub Multicloud Resources Multicloud Resource Collection Item] - List of MulticloudResourceSummary.
- items List<Property Map>
- List of MulticloudResourceSummary.
GetMulticloudOmHubMulticloudResourcesMulticloudResourceCollectionItem
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Compartment
Name string - Compartment name associated the resource.
- Csp
Additional Dictionary<string, string>Properties - CSP Specific Additional Properties, AzureSubnetId for Azure
- Csp
Resource stringId - Resource Id that comes from the Multi Cloud Control Plane
- 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"} - 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"} - Lifecycle
State string - The current state of the multicloud resource.
- Network
Anchor stringId - OCID of the Network Anchor
- Network
Anchor stringName - Name of the network anchor associated to the resource.
- Resource
Display stringName - Endpoint used to retrieve displayName and lifeCycleState of the resource.
- Resource
Id string - The Id of the multicloud resource.
- Resource
Type string - What resource it refers to. Eg. VMCluster, ExaInfra, etc.
- 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 subscription was created, in the format defined by RFC 3339.
- Time
Updated string - The date and time the subscription was updated, in the format defined by RFC 3339.
- Vcn
Id string - Id of the Virtual Cloud Network associated to the resource.
- Vcn
Name string - Resource Anchor name.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Compartment
Name string - Compartment name associated the resource.
- Csp
Additional map[string]stringProperties - CSP Specific Additional Properties, AzureSubnetId for Azure
- Csp
Resource stringId - Resource Id that comes from the Multi Cloud Control Plane
- 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"} - 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"} - Lifecycle
State string - The current state of the multicloud resource.
- Network
Anchor stringId - OCID of the Network Anchor
- Network
Anchor stringName - Name of the network anchor associated to the resource.
- Resource
Display stringName - Endpoint used to retrieve displayName and lifeCycleState of the resource.
- Resource
Id string - The Id of the multicloud resource.
- Resource
Type string - What resource it refers to. Eg. VMCluster, ExaInfra, etc.
- 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 subscription was created, in the format defined by RFC 3339.
- Time
Updated string - The date and time the subscription was updated, in the format defined by RFC 3339.
- Vcn
Id string - Id of the Virtual Cloud Network associated to the resource.
- Vcn
Name string - Resource Anchor name.
- compartment
Id String - The OCID of the compartment in which to list resources.
- compartment
Name String - Compartment name associated the resource.
- csp
Additional Map<String,String>Properties - CSP Specific Additional Properties, AzureSubnetId for Azure
- csp
Resource StringId - Resource Id that comes from the Multi Cloud Control Plane
- 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"} - 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"} - lifecycle
State String - The current state of the multicloud resource.
- network
Anchor StringId - OCID of the Network Anchor
- network
Anchor StringName - Name of the network anchor associated to the resource.
- resource
Display StringName - Endpoint used to retrieve displayName and lifeCycleState of the resource.
- resource
Id String - The Id of the multicloud resource.
- resource
Type String - What resource it refers to. Eg. VMCluster, ExaInfra, etc.
- 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 subscription was created, in the format defined by RFC 3339.
- time
Updated String - The date and time the subscription was updated, in the format defined by RFC 3339.
- vcn
Id String - Id of the Virtual Cloud Network associated to the resource.
- vcn
Name String - Resource Anchor name.
- compartment
Id string - The OCID of the compartment in which to list resources.
- compartment
Name string - Compartment name associated the resource.
- csp
Additional {[key: string]: string}Properties - CSP Specific Additional Properties, AzureSubnetId for Azure
- csp
Resource stringId - Resource Id that comes from the Multi Cloud Control Plane
- {[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"} - {[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"} - lifecycle
State string - The current state of the multicloud resource.
- network
Anchor stringId - OCID of the Network Anchor
- network
Anchor stringName - Name of the network anchor associated to the resource.
- resource
Display stringName - Endpoint used to retrieve displayName and lifeCycleState of the resource.
- resource
Id string - The Id of the multicloud resource.
- resource
Type string - What resource it refers to. Eg. VMCluster, ExaInfra, etc.
- {[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 subscription was created, in the format defined by RFC 3339.
- time
Updated string - The date and time the subscription was updated, in the format defined by RFC 3339.
- vcn
Id string - Id of the Virtual Cloud Network associated to the resource.
- vcn
Name 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_ Mapping[str, str]properties - CSP Specific Additional Properties, AzureSubnetId for Azure
- csp_
resource_ strid - Resource Id that comes from the Multi Cloud Control Plane
- 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"} - 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_ strid - OCID of the Network Anchor
- network_
anchor_ strname - Name of the network anchor associated to the resource.
- resource_
display_ strname - 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.
- 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.
- compartment
Id String - The OCID of the compartment in which to list resources.
- compartment
Name String - Compartment name associated the resource.
- csp
Additional Map<String>Properties - CSP Specific Additional Properties, AzureSubnetId for Azure
- csp
Resource StringId - Resource Id that comes from the Multi Cloud Control Plane
- 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"} - 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"} - lifecycle
State String - The current state of the multicloud resource.
- network
Anchor StringId - OCID of the Network Anchor
- network
Anchor StringName - Name of the network anchor associated to the resource.
- resource
Display StringName - Endpoint used to retrieve displayName and lifeCycleState of the resource.
- resource
Id String - The Id of the multicloud resource.
- resource
Type String - What resource it refers to. Eg. VMCluster, ExaInfra, etc.
- 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 subscription was created, in the format defined by RFC 3339.
- time
Updated String - The date and time the subscription was updated, in the format defined by RFC 3339.
- vcn
Id String - Id of the Virtual Cloud Network associated to the resource.
- vcn
Name String - Resource Anchor name.
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.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
