Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.DataCatalog.getMetastores
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMetastores = oci.DataCatalog.getMetastores({
compartmentId: compartmentId,
displayName: metastoreDisplayName,
state: metastoreState,
});
import pulumi
import pulumi_oci as oci
test_metastores = oci.DataCatalog.get_metastores(compartment_id=compartment_id,
display_name=metastore_display_name,
state=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: compartmentId,
DisplayName: pulumi.StringRef(metastoreDisplayName),
State: pulumi.StringRef(metastoreState),
}, 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 testMetastores = Oci.DataCatalog.GetMetastores.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = metastoreDisplayName,
State = metastoreState,
});
});
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.GetMetastoresArgs;
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 testMetastores = DataCatalogFunctions.getMetastores(GetMetastoresArgs.builder()
.compartmentId(compartmentId)
.displayName(metastoreDisplayName)
.state(metastoreState)
.build());
}
}
variables:
testMetastores:
fn::invoke:
Function: oci:DataCatalog:getMetastores
Arguments:
compartmentId: ${compartmentId}
displayName: ${metastoreDisplayName}
state: ${metastoreState}
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:
- Compartment
Id string - The OCID of the compartment where you want to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- Filters
List<Get
Metastores Filter> - State string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- Compartment
Id string - The OCID of the compartment where you want to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- Filters
[]Get
Metastores Filter - State string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- compartment
Id String - The OCID of the compartment where you want to list resources.
- display
Name String - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- filters
List<Get
Metastores Filter> - state String
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- compartment
Id string - The OCID of the compartment where you want to list resources.
- display
Name string - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- filters
Get
Metastores Filter[] - 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
Sequence[datacatalog.
Get Metastores Filter] - state str
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- compartment
Id String - The OCID of the compartment where you want to list resources.
- display
Name 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:
- Compartment
Id string - OCID of the compartment which holds the metastore.
- Id string
- The provider-assigned unique ID for this managed resource.
- Metastores
List<Get
Metastores Metastore> - The list of metastores.
- Display
Name string - Mutable name of the metastore.
- Filters
List<Get
Metastores Filter> - State string
- The current state of the metastore.
- Compartment
Id string - OCID of the compartment which holds the metastore.
- Id string
- The provider-assigned unique ID for this managed resource.
- Metastores
[]Get
Metastores Metastore - The list of metastores.
- Display
Name string - Mutable name of the metastore.
- Filters
[]Get
Metastores Filter - State string
- The current state of the metastore.
- compartment
Id String - OCID of the compartment which holds the metastore.
- id String
- The provider-assigned unique ID for this managed resource.
- metastores
List<Get
Metastores Metastore> - The list of metastores.
- display
Name String - Mutable name of the metastore.
- filters
List<Get
Metastores Filter> - state String
- The current state of the metastore.
- compartment
Id string - OCID of the compartment which holds the metastore.
- id string
- The provider-assigned unique ID for this managed resource.
- metastores
Get
Metastores Metastore[] - The list of metastores.
- display
Name string - Mutable name of the metastore.
- filters
Get
Metastores Filter[] - 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
Sequence[datacatalog.
Get Metastores Metastore] - The list of metastores.
- display_
name str - Mutable name of the metastore.
- filters
Sequence[datacatalog.
Get Metastores Filter] - state str
- The current state of the metastore.
- compartment
Id 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.
- display
Name String - Mutable name of the metastore.
- filters List<Property Map>
- state String
- The current state of the metastore.
Supporting Types
GetMetastoresFilter
GetMetastoresMetastore
- Compartment
Id string - The OCID of the compartment where you want to list resources.
- 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, object>
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- 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.
- 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
Metastores Metastore Lock> - Locks associated with this resource.
- State string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- Dictionary<string, object>
- 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 - The OCID of the compartment where you want to list resources.
- 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]interface{}
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- 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.
- 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
Metastores Metastore Lock - Locks associated with this resource.
- State string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- map[string]interface{}
- 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 - The OCID of the compartment where you want to list resources.
- 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,Object>
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- 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.
- 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
Metastores Metastore Lock> - Locks associated with this resource.
- state String
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- Map<String,Object>
- 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 - The OCID of the compartment where you want to list resources.
- 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]: any}
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- {[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.
- 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
Metastores Metastore Lock[] - Locks associated with this resource.
- state string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- {[key: string]: any}
- 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 - The OCID of the compartment where you want to list resources.
- 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, 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.
- 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.
- locks
Sequence[datacatalog.
Get Metastores Metastore Lock] - Locks associated with this resource.
- state str
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- Mapping[str, Any]
- 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 - The OCID of the compartment where you want to list resources.
- 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<Any>
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - A filter to return only resources that match the entire display name given. The match is not case sensitive.
- 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.
- 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.
- state String
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- Map<Any>
- 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.
GetMetastoresMetastoreLock
- 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.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi