Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getMetastores

This data source provides the list of Metastores in Oracle Cloud Infrastructure Data Catalog service.

Returns a list of all metastores in the specified compartment.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testMetastores = Output.Create(Oci.DataCatalog.GetMetastores.InvokeAsync(new Oci.DataCatalog.GetMetastoresArgs
        {
            CompartmentId = @var.Compartment_id,
            DisplayName = @var.Metastore_display_name,
            State = @var.Metastore_state,
        }));
    }

}
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.GetMetastores(ctx, &datacatalog.GetMetastoresArgs{
			CompartmentId: _var.Compartment_id,
			DisplayName:   pulumi.StringRef(_var.Metastore_display_name),
			State:         pulumi.StringRef(_var.Metastore_state),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_metastores = oci.DataCatalog.get_metastores(compartment_id=var["compartment_id"],
    display_name=var["metastore_display_name"],
    state=var["metastore_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testMetastores = oci.DataCatalog.getMetastores({
    compartmentId: _var.compartment_id,
    displayName: _var.metastore_display_name,
    state: _var.metastore_state,
});

Coming soon!

Using getMetastores

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 getMetastores(args: GetMetastoresArgs, opts?: InvokeOptions): Promise<GetMetastoresResult>
function getMetastoresOutput(args: GetMetastoresOutputArgs, opts?: InvokeOptions): Output<GetMetastoresResult>
def get_metastores(compartment_id: Optional[str] = None,
                   display_name: Optional[str] = None,
                   filters: Optional[Sequence[_datacatalog.GetMetastoresFilter]] = None,
                   state: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetMetastoresResult
def get_metastores_output(compartment_id: Optional[pulumi.Input[str]] = None,
                   display_name: Optional[pulumi.Input[str]] = None,
                   filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datacatalog.GetMetastoresFilterArgs]]]] = None,
                   state: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetMetastoresResult]
func GetMetastores(ctx *Context, args *GetMetastoresArgs, opts ...InvokeOption) (*GetMetastoresResult, error)
func GetMetastoresOutput(ctx *Context, args *GetMetastoresOutputArgs, opts ...InvokeOption) GetMetastoresResultOutput

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

public static class GetMetastores 
{
    public static Task<GetMetastoresResult> InvokeAsync(GetMetastoresArgs args, InvokeOptions? opts = null)
    public static Output<GetMetastoresResult> Invoke(GetMetastoresInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMetastoresResult> getMetastores(GetMetastoresArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:DataCatalog/getMetastores:getMetastores
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CompartmentId string

The OCID of the compartment where you want to list resources.

DisplayName string

A filter to return only resources that match the entire display name given. The match is not case sensitive.

Filters List<GetMetastoresFilter>
State string

A filter to return only resources that match the specified lifecycle state. The value is case insensitive.

CompartmentId string

The OCID of the compartment where you want to list resources.

DisplayName string

A filter to return only resources that match the entire display name given. The match is not case sensitive.

Filters []GetMetastoresFilter
State string

A filter to return only resources that match the specified lifecycle state. The value is case insensitive.

compartmentId String

The OCID of the compartment where you want to list resources.

displayName String

A filter to return only resources that match the entire display name given. The match is not case sensitive.

filters List<GetMetastoresFilter>
state String

A filter to return only resources that match the specified lifecycle state. The value is case insensitive.

compartmentId string

The OCID of the compartment where you want to list resources.

displayName string

A filter to return only resources that match the entire display name given. The match is not case sensitive.

filters GetMetastoresFilter[]
state string

A filter to return only resources that match the specified lifecycle state. The value is case insensitive.

compartment_id str

The OCID of the compartment where you want to list resources.

display_name str

A filter to return only resources that match the entire display name given. The match is not case sensitive.

filters GetMetastoresFilter]
state str

A filter to return only resources that match the specified lifecycle state. The value is case insensitive.

compartmentId String

The OCID of the compartment where you want to list resources.

displayName String

A filter to return only resources that match the entire display name given. The match is not case sensitive.

filters List<Property Map>
state String

A filter to return only resources that match the specified lifecycle state. The value is case insensitive.

getMetastores Result

The following output properties are available:

CompartmentId string

OCID of the compartment which holds the metastore.

Id string

The provider-assigned unique ID for this managed resource.

Metastores List<GetMetastoresMetastore>

The list of metastores.

DisplayName string

Mutable name of the metastore.

Filters List<GetMetastoresFilter>
State string

The current state of the metastore.

CompartmentId string

OCID of the compartment which holds the metastore.

Id string

The provider-assigned unique ID for this managed resource.

Metastores []GetMetastoresMetastore

The list of metastores.

DisplayName string

Mutable name of the metastore.

Filters []GetMetastoresFilter
State string

The current state of the metastore.

compartmentId String

OCID of the compartment which holds the metastore.

id String

The provider-assigned unique ID for this managed resource.

metastores List<GetMetastoresMetastore>

The list of metastores.

displayName String

Mutable name of the metastore.

filters List<GetMetastoresFilter>
state String

The current state of the metastore.

compartmentId string

OCID of the compartment which holds the metastore.

id string

The provider-assigned unique ID for this managed resource.

metastores GetMetastoresMetastore[]

The list of metastores.

displayName string

Mutable name of the metastore.

filters GetMetastoresFilter[]
state string

The current state of the metastore.

compartment_id str

OCID of the compartment which holds the metastore.

id str

The provider-assigned unique ID for this managed resource.

metastores GetMetastoresMetastore]

The list of metastores.

display_name str

Mutable name of the metastore.

filters GetMetastoresFilter]
state str

The current state of the metastore.

compartmentId String

OCID of the compartment which holds the metastore.

id String

The provider-assigned unique ID for this managed resource.

metastores List<Property Map>

The list of metastores.

displayName String

Mutable name of the metastore.

filters List<Property Map>
state String

The current state of the metastore.

Supporting Types

GetMetastoresFilter

Name string
Values List<string>
Regex bool
Name string
Values []string
Regex bool
name String
values List<String>
regex Boolean
name string
values string[]
regex boolean
name str
values Sequence[str]
regex bool
name String
values List<String>
regex Boolean

GetMetastoresMetastore

CompartmentId string

The OCID of the compartment where you want to list resources.

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

A filter to return only resources that match the entire display name given. The match is not case sensitive.

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.

State string

A filter to return only resources that match the specified lifecycle state. The value is case insensitive.

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

The OCID of the compartment where you want to list resources.

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

A filter to return only resources that match the entire display name given. The match is not case sensitive.

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.

State string

A filter to return only resources that match the specified lifecycle state. The value is case insensitive.

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

The OCID of the compartment where you want to list resources.

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

A filter to return only resources that match the entire display name given. The match is not case sensitive.

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.

state String

A filter to return only resources that match the specified lifecycle state. The value is case insensitive.

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

The OCID of the compartment where you want to list resources.

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

A filter to return only resources that match the entire display name given. The match is not case sensitive.

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.

state string

A filter to return only resources that match the specified lifecycle state. The value is case insensitive.

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

The OCID of the compartment where you want to list resources.

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

A filter to return only resources that match the entire display name given. The match is not case sensitive.

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.

state str

A filter to return only resources that match the specified lifecycle state. The value is case insensitive.

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

The OCID of the compartment where you want to list resources.

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

A filter to return only resources that match the entire display name given. The match is not case sensitive.

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.

state String

A filter to return only resources that match the specified lifecycle state. The value is case insensitive.

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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.