Viewing docs for Oracle Cloud Infrastructure v4.5.0
published on Thursday, Apr 2, 2026 by Pulumi
published on Thursday, Apr 2, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.5.0
published on Thursday, Apr 2, 2026 by Pulumi
published on Thursday, Apr 2, 2026 by Pulumi
This data source provides details about a specific OmHub MultiCloud base compartment in Oracle Cloud Infrastructure Multicloud service.
Gets information about multicloud base compartment
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOmHubMultiCloudMetadata = oci.oci.getMulticloudOmHubMultiCloudMetadata({
compartmentId: compartmentId,
subscriptionId: subscriptionId,
});
import pulumi
import pulumi_oci as oci
test_om_hub_multi_cloud_metadata = oci.oci.get_multicloud_om_hub_multi_cloud_metadata(compartment_id=compartment_id,
subscription_id=subscription_id)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/oci"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := oci.GetMulticloudOmHubMultiCloudMetadata(ctx, &oci.GetMulticloudOmHubMultiCloudMetadataArgs{
CompartmentId: compartmentId,
SubscriptionId: subscriptionId,
}, 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 testOmHubMultiCloudMetadata = Oci.Oci.GetMulticloudOmHubMultiCloudMetadata.Invoke(new()
{
CompartmentId = compartmentId,
SubscriptionId = subscriptionId,
});
});
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.GetMulticloudOmHubMultiCloudMetadataArgs;
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 testOmHubMultiCloudMetadata = OciFunctions.getMulticloudOmHubMultiCloudMetadata(GetMulticloudOmHubMultiCloudMetadataArgs.builder()
.compartmentId(compartmentId)
.subscriptionId(subscriptionId)
.build());
}
}
variables:
testOmHubMultiCloudMetadata:
fn::invoke:
function: oci:oci:getMulticloudOmHubMultiCloudMetadata
arguments:
compartmentId: ${compartmentId}
subscriptionId: ${subscriptionId}
Using getMulticloudOmHubMultiCloudMetadata
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 getMulticloudOmHubMultiCloudMetadata(args: GetMulticloudOmHubMultiCloudMetadataArgs, opts?: InvokeOptions): Promise<GetMulticloudOmHubMultiCloudMetadataResult>
function getMulticloudOmHubMultiCloudMetadataOutput(args: GetMulticloudOmHubMultiCloudMetadataOutputArgs, opts?: InvokeOptions): Output<GetMulticloudOmHubMultiCloudMetadataResult>def get_multicloud_om_hub_multi_cloud_metadata(compartment_id: Optional[str] = None,
subscription_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMulticloudOmHubMultiCloudMetadataResult
def get_multicloud_om_hub_multi_cloud_metadata_output(compartment_id: Optional[pulumi.Input[str]] = None,
subscription_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMulticloudOmHubMultiCloudMetadataResult]func GetMulticloudOmHubMultiCloudMetadata(ctx *Context, args *GetMulticloudOmHubMultiCloudMetadataArgs, opts ...InvokeOption) (*GetMulticloudOmHubMultiCloudMetadataResult, error)
func GetMulticloudOmHubMultiCloudMetadataOutput(ctx *Context, args *GetMulticloudOmHubMultiCloudMetadataOutputArgs, opts ...InvokeOption) GetMulticloudOmHubMultiCloudMetadataResultOutput> Note: This function is named GetMulticloudOmHubMultiCloudMetadata in the Go SDK.
public static class GetMulticloudOmHubMultiCloudMetadata
{
public static Task<GetMulticloudOmHubMultiCloudMetadataResult> InvokeAsync(GetMulticloudOmHubMultiCloudMetadataArgs args, InvokeOptions? opts = null)
public static Output<GetMulticloudOmHubMultiCloudMetadataResult> Invoke(GetMulticloudOmHubMultiCloudMetadataInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMulticloudOmHubMultiCloudMetadataResult> getMulticloudOmHubMultiCloudMetadata(GetMulticloudOmHubMultiCloudMetadataArgs args, InvokeOptions options)
public static Output<GetMulticloudOmHubMultiCloudMetadataResult> getMulticloudOmHubMultiCloudMetadata(GetMulticloudOmHubMultiCloudMetadataArgs args, InvokeOptions options)
fn::invoke:
function: oci:oci/getMulticloudOmHubMultiCloudMetadata:getMulticloudOmHubMultiCloudMetadata
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Subscription
Id string - The OCID of the Oracle Cloud Infrastructure subscription.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Subscription
Id string - The OCID of the Oracle Cloud Infrastructure subscription.
- compartment
Id String - The OCID of the compartment in which to list resources.
- subscription
Id String - The OCID of the Oracle Cloud Infrastructure subscription.
- compartment
Id string - The OCID of the compartment in which to list resources.
- subscription
Id string - The OCID of the Oracle Cloud Infrastructure subscription.
- compartment_
id str - The OCID of the compartment in which to list resources.
- subscription_
id str - The OCID of the Oracle Cloud Infrastructure subscription.
- compartment
Id String - The OCID of the compartment in which to list resources.
- subscription
Id String - The OCID of the Oracle Cloud Infrastructure subscription.
getMulticloudOmHubMultiCloudMetadata Result
The following output properties are available:
- Base
Compartment stringId - MultiCloud base compartment OCID associated with subscriptionId.
- Base
Subscription stringId - Oracle Cloud Infrastructure subscriptionId.
- Compartment
Id string - 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"} - Id string
- The provider-assigned unique ID for this managed resource.
- Subscription
Id string - 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
- Base
Compartment stringId - MultiCloud base compartment OCID associated with subscriptionId.
- Base
Subscription stringId - Oracle Cloud Infrastructure subscriptionId.
- Compartment
Id string - 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"} - Id string
- The provider-assigned unique ID for this managed resource.
- Subscription
Id string - 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
- base
Compartment StringId - MultiCloud base compartment OCID associated with subscriptionId.
- base
Subscription StringId - Oracle Cloud Infrastructure subscriptionId.
- compartment
Id String - 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"} - id String
- The provider-assigned unique ID for this managed resource.
- subscription
Id String - 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
- base
Compartment stringId - MultiCloud base compartment OCID associated with subscriptionId.
- base
Subscription stringId - Oracle Cloud Infrastructure subscriptionId.
- compartment
Id string - {[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"} - id string
- The provider-assigned unique ID for this managed resource.
- subscription
Id string - {[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
- base_
compartment_ strid - MultiCloud base compartment OCID associated with subscriptionId.
- base_
subscription_ strid - Oracle Cloud Infrastructure subscriptionId.
- compartment_
id str - 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"} - id str
- The provider-assigned unique ID for this managed resource.
- subscription_
id str - 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
- base
Compartment StringId - MultiCloud base compartment OCID associated with subscriptionId.
- base
Subscription StringId - Oracle Cloud Infrastructure subscriptionId.
- compartment
Id String - 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"} - id String
- The provider-assigned unique ID for this managed resource.
- subscription
Id String - 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.
Viewing docs for Oracle Cloud Infrastructure v4.5.0
published on Thursday, Apr 2, 2026 by Pulumi
published on Thursday, Apr 2, 2026 by Pulumi
