Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.DataCatalog.getMetastore
Explore with Pulumi AI
This data source provides details about a specific Metastore resource in Oracle Cloud Infrastructure Data Catalog service.
Gets a metastore by identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMetastore = oci.DataCatalog.getMetastore({
metastoreId: testMetastoreOciDatacatalogMetastore.id,
});
import pulumi
import pulumi_oci as oci
test_metastore = oci.DataCatalog.get_metastore(metastore_id=test_metastore_oci_datacatalog_metastore["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/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: testMetastoreOciDatacatalogMetastore.Id,
}, 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 testMetastore = Oci.DataCatalog.GetMetastore.Invoke(new()
{
MetastoreId = testMetastoreOciDatacatalogMetastore.Id,
});
});
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(testMetastoreOciDatacatalogMetastore.id())
.build());
}
}
variables:
testMetastore:
fn::invoke:
Function: oci:DataCatalog:getMetastore
Arguments:
metastoreId: ${testMetastoreOciDatacatalogMetastore.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:
- Metastore
Id string - The metastore's OCID.
- Metastore
Id string - The metastore's OCID.
- metastore
Id String - The metastore's OCID.
- metastore
Id string - The metastore's OCID.
- metastore_
id str - The metastore's OCID.
- metastore
Id String - The metastore's OCID.
getMetastore Result
The following output properties are available:
- Compartment
Id string - OCID of the compartment which holds the metastore.
- Default
External stringTable Location - 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 stringTable Location - 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/
- Dictionary<string, string>
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - Mutable name of the metastore.
- Dictionary<string, string>
- 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.
- Lifecycle
Details 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.
- Locks
List<Get
Metastore Lock> - Locks associated with this resource.
- Metastore
Id string - State string
- The current state of the metastore.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - Time at which the metastore was created. An RFC3339 formatted datetime string.
- Time
Updated string - Time at which the metastore was last modified. An RFC3339 formatted datetime string.
- Compartment
Id string - OCID of the compartment which holds the metastore.
- Default
External stringTable Location - 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 stringTable Location - 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/
- map[string]string
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - Mutable name of the metastore.
- map[string]string
- 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.
- Lifecycle
Details 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.
- Locks
[]Get
Metastore Lock - Locks associated with this resource.
- Metastore
Id string - State string
- The current state of the metastore.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - Time at which the metastore was created. An RFC3339 formatted datetime string.
- Time
Updated string - Time at which the metastore was last modified. An RFC3339 formatted datetime string.
- compartment
Id String - OCID of the compartment which holds the metastore.
- default
External StringTable Location - 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 StringTable Location - 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/
- Map<String,String>
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - Mutable name of the metastore.
- Map<String,String>
- 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.
- lifecycle
Details 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.
- locks
List<Get
Metastore Lock> - Locks associated with this resource.
- metastore
Id String - state String
- The current state of the metastore.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - Time at which the metastore was created. An RFC3339 formatted datetime string.
- time
Updated String - Time at which the metastore was last modified. An RFC3339 formatted datetime string.
- compartment
Id string - OCID of the compartment which holds the metastore.
- default
External stringTable Location - 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 stringTable Location - 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/
- {[key: string]: string}
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string - Mutable name of the metastore.
- {[key: string]: string}
- 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.
- lifecycle
Details 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.
- locks
Get
Metastore Lock[] - Locks associated with this resource.
- metastore
Id string - state string
- The current state of the metastore.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - Time at which the metastore was created. An RFC3339 formatted datetime string.
- time
Updated 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_ strtable_ location - 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_ strtable_ location - 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/
- Mapping[str, str]
- 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.
- Mapping[str, str]
- 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.
- locks
Sequence[datacatalog.
Get Metastore Lock] - Locks associated with this resource.
- metastore_
id str - state str
- The current state of the metastore.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"}
- 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.
- compartment
Id String - OCID of the compartment which holds the metastore.
- default
External StringTable Location - 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 StringTable Location - 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/
- Map<String>
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - Mutable name of the metastore.
- Map<String>
- 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.
- lifecycle
Details 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.
- locks List<Property Map>
- Locks associated with this resource.
- metastore
Id String - state String
- The current state of the metastore.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - Time at which the metastore was created. An RFC3339 formatted datetime string.
- time
Updated String - Time at which the metastore was last modified. An RFC3339 formatted datetime string.
Supporting Types
GetMetastoreLock
- Message string
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- string
- The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- Time
Created string - Time at which the metastore was created. An RFC3339 formatted datetime string.
- Type string
- Type of the lock.
- Message string
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- string
- The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- Time
Created string - Time at which the metastore was created. An RFC3339 formatted datetime string.
- Type string
- Type of the lock.
- message String
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- String
- The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- time
Created String - Time at which the metastore was created. An RFC3339 formatted datetime string.
- type String
- Type of the lock.
- message string
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- string
- The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- time
Created string - Time at which the metastore was created. An RFC3339 formatted datetime string.
- type string
- Type of the lock.
- message str
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- str
- The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- time_
created str - Time at which the metastore was created. An RFC3339 formatted datetime string.
- type str
- Type of the lock.
- message String
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- String
- The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- time
Created String - Time at which the metastore was created. An RFC3339 formatted datetime string.
- type String
- Type of the lock.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.