1. Packages
  2. Google Cloud Native
  3. API Docs
  4. biglake
  5. biglake/v1
  6. getDatabase

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.biglake/v1.getDatabase

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Gets the database specified by the resource name.

    Using getDatabase

    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 getDatabase(args: GetDatabaseArgs, opts?: InvokeOptions): Promise<GetDatabaseResult>
    function getDatabaseOutput(args: GetDatabaseOutputArgs, opts?: InvokeOptions): Output<GetDatabaseResult>
    def get_database(catalog_id: Optional[str] = None,
                     database_id: Optional[str] = None,
                     location: Optional[str] = None,
                     project: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetDatabaseResult
    def get_database_output(catalog_id: Optional[pulumi.Input[str]] = None,
                     database_id: Optional[pulumi.Input[str]] = None,
                     location: Optional[pulumi.Input[str]] = None,
                     project: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseResult]
    func LookupDatabase(ctx *Context, args *LookupDatabaseArgs, opts ...InvokeOption) (*LookupDatabaseResult, error)
    func LookupDatabaseOutput(ctx *Context, args *LookupDatabaseOutputArgs, opts ...InvokeOption) LookupDatabaseResultOutput

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

    public static class GetDatabase 
    {
        public static Task<GetDatabaseResult> InvokeAsync(GetDatabaseArgs args, InvokeOptions? opts = null)
        public static Output<GetDatabaseResult> Invoke(GetDatabaseInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDatabaseResult> getDatabase(GetDatabaseArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: google-native:biglake/v1:getDatabase
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CatalogId string
    DatabaseId string
    Location string
    Project string
    CatalogId string
    DatabaseId string
    Location string
    Project string
    catalogId String
    databaseId String
    location String
    project String
    catalogId string
    databaseId string
    location string
    project string
    catalogId String
    databaseId String
    location String
    project String

    getDatabase Result

    The following output properties are available:

    CreateTime string
    The creation time of the database.
    DeleteTime string
    The deletion time of the database. Only set after the database is deleted.
    ExpireTime string
    The time when this database is considered expired. Only set after the database is deleted.
    HiveOptions Pulumi.GoogleNative.BigLake.V1.Outputs.HiveDatabaseOptionsResponse
    Options of a Hive database.
    Name string
    The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}
    Type string
    The database type.
    UpdateTime string
    The last modification time of the database.
    CreateTime string
    The creation time of the database.
    DeleteTime string
    The deletion time of the database. Only set after the database is deleted.
    ExpireTime string
    The time when this database is considered expired. Only set after the database is deleted.
    HiveOptions HiveDatabaseOptionsResponse
    Options of a Hive database.
    Name string
    The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}
    Type string
    The database type.
    UpdateTime string
    The last modification time of the database.
    createTime String
    The creation time of the database.
    deleteTime String
    The deletion time of the database. Only set after the database is deleted.
    expireTime String
    The time when this database is considered expired. Only set after the database is deleted.
    hiveOptions HiveDatabaseOptionsResponse
    Options of a Hive database.
    name String
    The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}
    type String
    The database type.
    updateTime String
    The last modification time of the database.
    createTime string
    The creation time of the database.
    deleteTime string
    The deletion time of the database. Only set after the database is deleted.
    expireTime string
    The time when this database is considered expired. Only set after the database is deleted.
    hiveOptions HiveDatabaseOptionsResponse
    Options of a Hive database.
    name string
    The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}
    type string
    The database type.
    updateTime string
    The last modification time of the database.
    create_time str
    The creation time of the database.
    delete_time str
    The deletion time of the database. Only set after the database is deleted.
    expire_time str
    The time when this database is considered expired. Only set after the database is deleted.
    hive_options HiveDatabaseOptionsResponse
    Options of a Hive database.
    name str
    The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}
    type str
    The database type.
    update_time str
    The last modification time of the database.
    createTime String
    The creation time of the database.
    deleteTime String
    The deletion time of the database. Only set after the database is deleted.
    expireTime String
    The time when this database is considered expired. Only set after the database is deleted.
    hiveOptions Property Map
    Options of a Hive database.
    name String
    The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}
    type String
    The database type.
    updateTime String
    The last modification time of the database.

    Supporting Types

    HiveDatabaseOptionsResponse

    LocationUri string
    Cloud Storage folder URI where the database data is stored, starting with "gs://".
    Parameters Dictionary<string, string>
    Stores user supplied Hive database parameters.
    LocationUri string
    Cloud Storage folder URI where the database data is stored, starting with "gs://".
    Parameters map[string]string
    Stores user supplied Hive database parameters.
    locationUri String
    Cloud Storage folder URI where the database data is stored, starting with "gs://".
    parameters Map<String,String>
    Stores user supplied Hive database parameters.
    locationUri string
    Cloud Storage folder URI where the database data is stored, starting with "gs://".
    parameters {[key: string]: string}
    Stores user supplied Hive database parameters.
    location_uri str
    Cloud Storage folder URI where the database data is stored, starting with "gs://".
    parameters Mapping[str, str]
    Stores user supplied Hive database parameters.
    locationUri String
    Cloud Storage folder URI where the database data is stored, starting with "gs://".
    parameters Map<String>
    Stores user supplied Hive database parameters.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi