1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataCatalog
  5. getMetastore
Oracle Cloud Infrastructure v1.10.0 published on Thursday, Sep 7, 2023 by Pulumi

oci.DataCatalog.getMetastore

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.10.0 published on Thursday, Sep 7, 2023 by Pulumi

    This data source provides details about a specific Metastore resource in Oracle Cloud Infrastructure Data Catalog service.

    Gets a metastore by identifier.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testMetastore = Oci.DataCatalog.GetMetastore.Invoke(new()
        {
            MetastoreId = oci_datacatalog_metastore.Test_metastore.Id,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/DataCatalog"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DataCatalog.GetMetastore(ctx, &datacatalog.GetMetastoreArgs{
    			MetastoreId: oci_datacatalog_metastore.Test_metastore.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DataCatalog.DataCatalogFunctions;
    import com.pulumi.oci.DataCatalog.inputs.GetMetastoreArgs;
    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 testMetastore = DataCatalogFunctions.getMetastore(GetMetastoreArgs.builder()
                .metastoreId(oci_datacatalog_metastore.test_metastore().id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_metastore = oci.DataCatalog.get_metastore(metastore_id=oci_datacatalog_metastore["test_metastore"]["id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testMetastore = oci.DataCatalog.getMetastore({
        metastoreId: oci_datacatalog_metastore.test_metastore.id,
    });
    
    variables:
      testMetastore:
        fn::invoke:
          Function: oci:DataCatalog:getMetastore
          Arguments:
            metastoreId: ${oci_datacatalog_metastore.test_metastore.id}
    

    Using getMetastore

    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 getMetastore(args: GetMetastoreArgs, opts?: InvokeOptions): Promise<GetMetastoreResult>
    function getMetastoreOutput(args: GetMetastoreOutputArgs, opts?: InvokeOptions): Output<GetMetastoreResult>
    def get_metastore(metastore_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetMetastoreResult
    def get_metastore_output(metastore_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetMetastoreResult]
    func GetMetastore(ctx *Context, args *GetMetastoreArgs, opts ...InvokeOption) (*GetMetastoreResult, error)
    func GetMetastoreOutput(ctx *Context, args *GetMetastoreOutputArgs, opts ...InvokeOption) GetMetastoreResultOutput

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

    public static class GetMetastore 
    {
        public static Task<GetMetastoreResult> InvokeAsync(GetMetastoreArgs args, InvokeOptions? opts = null)
        public static Output<GetMetastoreResult> Invoke(GetMetastoreInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMetastoreResult> getMetastore(GetMetastoreArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DataCatalog/getMetastore:getMetastore
      arguments:
        # arguments dictionary

    The following arguments are supported:

    MetastoreId string

    The metastore's OCID.

    MetastoreId string

    The metastore's OCID.

    metastoreId String

    The metastore's OCID.

    metastoreId string

    The metastore's OCID.

    metastore_id str

    The metastore's OCID.

    metastoreId String

    The metastore's OCID.

    getMetastore Result

    The following output properties are available:

    CompartmentId string

    OCID of the compartment which holds the metastore.

    DefaultExternalTableLocation string

    Location under which external tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

    DefaultManagedTableLocation string

    Location under which managed tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

    DefinedTags Dictionary<string, object>

    Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace.bar-key": "value"}

    DisplayName string

    Mutable name of the metastore.

    FreeformTags Dictionary<string, object>

    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

    Id string

    The metastore's OCID.

    LifecycleDetails string

    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

    MetastoreId string
    State string

    The current state of the metastore.

    TimeCreated string

    Time at which the metastore was created. An RFC3339 formatted datetime string.

    TimeUpdated string

    Time at which the metastore was last modified. An RFC3339 formatted datetime string.

    CompartmentId string

    OCID of the compartment which holds the metastore.

    DefaultExternalTableLocation string

    Location under which external tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

    DefaultManagedTableLocation string

    Location under which managed tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

    DefinedTags map[string]interface{}

    Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace.bar-key": "value"}

    DisplayName string

    Mutable name of the metastore.

    FreeformTags map[string]interface{}

    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

    Id string

    The metastore's OCID.

    LifecycleDetails string

    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

    MetastoreId string
    State string

    The current state of the metastore.

    TimeCreated string

    Time at which the metastore was created. An RFC3339 formatted datetime string.

    TimeUpdated string

    Time at which the metastore was last modified. An RFC3339 formatted datetime string.

    compartmentId String

    OCID of the compartment which holds the metastore.

    defaultExternalTableLocation String

    Location under which external tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

    defaultManagedTableLocation String

    Location under which managed tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

    definedTags Map<String,Object>

    Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace.bar-key": "value"}

    displayName String

    Mutable name of the metastore.

    freeformTags Map<String,Object>

    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

    id String

    The metastore's OCID.

    lifecycleDetails String

    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

    metastoreId String
    state String

    The current state of the metastore.

    timeCreated String

    Time at which the metastore was created. An RFC3339 formatted datetime string.

    timeUpdated String

    Time at which the metastore was last modified. An RFC3339 formatted datetime string.

    compartmentId string

    OCID of the compartment which holds the metastore.

    defaultExternalTableLocation string

    Location under which external tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

    defaultManagedTableLocation string

    Location under which managed tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

    definedTags {[key: string]: any}

    Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace.bar-key": "value"}

    displayName string

    Mutable name of the metastore.

    freeformTags {[key: string]: any}

    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

    id string

    The metastore's OCID.

    lifecycleDetails string

    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

    metastoreId string
    state string

    The current state of the metastore.

    timeCreated string

    Time at which the metastore was created. An RFC3339 formatted datetime string.

    timeUpdated string

    Time at which the metastore was last modified. An RFC3339 formatted datetime string.

    compartment_id str

    OCID of the compartment which holds the metastore.

    default_external_table_location str

    Location under which external tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

    default_managed_table_location str

    Location under which managed tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

    defined_tags Mapping[str, Any]

    Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace.bar-key": "value"}

    display_name str

    Mutable name of the metastore.

    freeform_tags Mapping[str, Any]

    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

    id str

    The metastore's OCID.

    lifecycle_details str

    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

    metastore_id str
    state str

    The current state of the metastore.

    time_created str

    Time at which the metastore was created. An RFC3339 formatted datetime string.

    time_updated str

    Time at which the metastore was last modified. An RFC3339 formatted datetime string.

    compartmentId String

    OCID of the compartment which holds the metastore.

    defaultExternalTableLocation String

    Location under which external tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

    defaultManagedTableLocation String

    Location under which managed tables will be created by default. This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/

    definedTags Map<Any>

    Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace.bar-key": "value"}

    displayName String

    Mutable name of the metastore.

    freeformTags Map<Any>

    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

    id String

    The metastore's OCID.

    lifecycleDetails String

    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

    metastoreId String
    state String

    The current state of the metastore.

    timeCreated String

    Time at which the metastore was created. An RFC3339 formatted datetime string.

    timeUpdated String

    Time at which the metastore was last modified. An RFC3339 formatted datetime string.

    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 v1.10.0 published on Thursday, Sep 7, 2023 by Pulumi