Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi
Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi
This data source provides the list of compartments under a root compartment in Oracle Cloud Infrastructure Multicloud service.
Gets a list of multicloud metadata 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 testOmHubMultiCloudsMetadata = oci.oci.getMulticloudOmHubMultiCloudsMetadata({
compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_om_hub_multi_clouds_metadata = oci.oci.get_multicloud_om_hub_multi_clouds_metadata(compartment_id=compartment_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.GetMulticloudOmHubMultiCloudsMetadata(ctx, &oci.GetMulticloudOmHubMultiCloudsMetadataArgs{
CompartmentId: compartmentId,
}, 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 testOmHubMultiCloudsMetadata = Oci.Oci.GetMulticloudOmHubMultiCloudsMetadata.Invoke(new()
{
CompartmentId = compartmentId,
});
});
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.GetMulticloudOmHubMultiCloudsMetadataArgs;
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 testOmHubMultiCloudsMetadata = OciFunctions.getMulticloudOmHubMultiCloudsMetadata(GetMulticloudOmHubMultiCloudsMetadataArgs.builder()
.compartmentId(compartmentId)
.build());
}
}
variables:
testOmHubMultiCloudsMetadata:
fn::invoke:
function: oci:oci:getMulticloudOmHubMultiCloudsMetadata
arguments:
compartmentId: ${compartmentId}
Using getMulticloudOmHubMultiCloudsMetadata
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 getMulticloudOmHubMultiCloudsMetadata(args: GetMulticloudOmHubMultiCloudsMetadataArgs, opts?: InvokeOptions): Promise<GetMulticloudOmHubMultiCloudsMetadataResult>
function getMulticloudOmHubMultiCloudsMetadataOutput(args: GetMulticloudOmHubMultiCloudsMetadataOutputArgs, opts?: InvokeOptions): Output<GetMulticloudOmHubMultiCloudsMetadataResult>def get_multicloud_om_hub_multi_clouds_metadata(compartment_id: Optional[str] = None,
limit: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetMulticloudOmHubMultiCloudsMetadataResult
def get_multicloud_om_hub_multi_clouds_metadata_output(compartment_id: Optional[pulumi.Input[str]] = None,
limit: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMulticloudOmHubMultiCloudsMetadataResult]func GetMulticloudOmHubMultiCloudsMetadata(ctx *Context, args *GetMulticloudOmHubMultiCloudsMetadataArgs, opts ...InvokeOption) (*GetMulticloudOmHubMultiCloudsMetadataResult, error)
func GetMulticloudOmHubMultiCloudsMetadataOutput(ctx *Context, args *GetMulticloudOmHubMultiCloudsMetadataOutputArgs, opts ...InvokeOption) GetMulticloudOmHubMultiCloudsMetadataResultOutput> Note: This function is named GetMulticloudOmHubMultiCloudsMetadata in the Go SDK.
public static class GetMulticloudOmHubMultiCloudsMetadata
{
public static Task<GetMulticloudOmHubMultiCloudsMetadataResult> InvokeAsync(GetMulticloudOmHubMultiCloudsMetadataArgs args, InvokeOptions? opts = null)
public static Output<GetMulticloudOmHubMultiCloudsMetadataResult> Invoke(GetMulticloudOmHubMultiCloudsMetadataInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMulticloudOmHubMultiCloudsMetadataResult> getMulticloudOmHubMultiCloudsMetadata(GetMulticloudOmHubMultiCloudsMetadataArgs args, InvokeOptions options)
public static Output<GetMulticloudOmHubMultiCloudsMetadataResult> getMulticloudOmHubMultiCloudsMetadata(GetMulticloudOmHubMultiCloudsMetadataArgs args, InvokeOptions options)
fn::invoke:
function: oci:oci/getMulticloudOmHubMultiCloudsMetadata:getMulticloudOmHubMultiCloudsMetadata
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The OCID of the root compartment in which to list resources.
- Limit int
- Compartment
Id string - The OCID of the root compartment in which to list resources.
- Limit int
- compartment
Id String - The OCID of the root compartment in which to list resources.
- limit Integer
- compartment
Id string - The OCID of the root compartment in which to list resources.
- limit number
- compartment_
id str - The OCID of the root compartment in which to list resources.
- limit int
- compartment
Id String - The OCID of the root compartment in which to list resources.
- limit Number
getMulticloudOmHubMultiCloudsMetadata Result
The following output properties are available:
- Compartment
Id string - MultiCloud base compartment OCID associated with subscriptionId.
- Id string
- The provider-assigned unique ID for this managed resource.
- Multi
Cloud List<GetMetadata Collections Multicloud Om Hub Multi Clouds Metadata Multi Cloud Metadata Collection> - The list of MultiCloudMetadataCollection.
- Limit int
- Compartment
Id string - MultiCloud base compartment OCID associated with subscriptionId.
- Id string
- The provider-assigned unique ID for this managed resource.
- Multi
Cloud []GetMetadata Collections Multicloud Om Hub Multi Clouds Metadata Multi Cloud Metadata Collection - The list of MultiCloudMetadataCollection.
- Limit int
- compartment
Id String - MultiCloud base compartment OCID associated with subscriptionId.
- id String
- The provider-assigned unique ID for this managed resource.
- multi
Cloud List<GetMetadata Collections Multicloud Om Hub Multi Clouds Metadata Multi Cloud Metadata Collection> - The list of MultiCloudMetadataCollection.
- limit Integer
- compartment
Id string - MultiCloud base compartment OCID associated with subscriptionId.
- id string
- The provider-assigned unique ID for this managed resource.
- multi
Cloud GetMetadata Collections Multicloud Om Hub Multi Clouds Metadata Multi Cloud Metadata Collection[] - The list of MultiCloudMetadataCollection.
- limit number
- compartment_
id str - MultiCloud base compartment OCID associated with subscriptionId.
- id str
- The provider-assigned unique ID for this managed resource.
- multi_
cloud_ Sequence[Getmetadata_ collections Multicloud Om Hub Multi Clouds Metadata Multi Cloud Metadata Collection] - The list of MultiCloudMetadataCollection.
- limit int
- compartment
Id String - MultiCloud base compartment OCID associated with subscriptionId.
- id String
- The provider-assigned unique ID for this managed resource.
- multi
Cloud List<Property Map>Metadata Collections - The list of MultiCloudMetadataCollection.
- limit Number
Supporting Types
GetMulticloudOmHubMultiCloudsMetadataMultiCloudMetadataCollection
- Items
List<Get
Multicloud Om Hub Multi Clouds Metadata Multi Cloud Metadata Collection Item> - List of MultiCloudMetadataSummary
- Items
[]Get
Multicloud Om Hub Multi Clouds Metadata Multi Cloud Metadata Collection Item - List of MultiCloudMetadataSummary
- items
List<Get
Multicloud Om Hub Multi Clouds Metadata Multi Cloud Metadata Collection Item> - List of MultiCloudMetadataSummary
- items
Get
Multicloud Om Hub Multi Clouds Metadata Multi Cloud Metadata Collection Item[] - List of MultiCloudMetadataSummary
- items
Sequence[Get
Multicloud Om Hub Multi Clouds Metadata Multi Cloud Metadata Collection Item] - List of MultiCloudMetadataSummary
- items List<Property Map>
- List of MultiCloudMetadataSummary
GetMulticloudOmHubMultiCloudsMetadataMultiCloudMetadataCollectionItem
- Compartment
Id string - The OCID of the root compartment in which to list resources.
- 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"} - Subscription
Id string - Oracle Cloud Infrastructure subscriptionId.
- 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 multicloud compartment was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Compartment
Id string - The OCID of the root compartment in which to list resources.
- 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"} - Subscription
Id string - Oracle Cloud Infrastructure subscriptionId.
- 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 multicloud compartment was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id String - The OCID of the root compartment in which to list resources.
- 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"} - subscription
Id String - Oracle Cloud Infrastructure subscriptionId.
- 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 multicloud compartment was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id string - The OCID of the root compartment in which to list resources.
- {[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"} - subscription
Id string - Oracle Cloud Infrastructure subscriptionId.
- {[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 multicloud compartment was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- compartment_
id str - The OCID of the root compartment in which to list resources.
- 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"} - subscription_
id str - Oracle Cloud Infrastructure subscriptionId.
- 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 multicloud compartment was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id String - The OCID of the root compartment in which to list resources.
- 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"} - subscription
Id String - Oracle Cloud Infrastructure subscriptionId.
- 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 multicloud compartment was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi
