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.firestore/v1.getDatabase
Explore with Pulumi AI
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 information about a database.
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(database_id: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDatabaseResult
def get_database_output(database_id: 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:firestore/v1:getDatabase
arguments:
# arguments dictionary
The following arguments are supported:
- Database
Id string - Project string
- Database
Id string - Project string
- database
Id String - project String
- database
Id string - project string
- database_
id str - project str
- database
Id String - project String
getDatabase Result
The following output properties are available:
- App
Engine stringIntegration Mode - The App Engine integration mode to use for this database.
- Concurrency
Mode string - The concurrency control mode to use for this database.
- Create
Time string - The timestamp at which this database was created. Databases created before 2016 do not populate create_time.
- Delete
Protection stringState - State of delete protection for the database.
- Earliest
Version stringTime - The earliest timestamp at which older versions of the data can be read from the database. See [version_retention_period] above; this field is populated with
now - version_retention_period
. This value is continuously updated, and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery. - Etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Key
Prefix string - The key_prefix for this database. This key_prefix is used, in combination with the project id ("~") to construct the application id that is returned from the Cloud Datastore APIs in Google App Engine first generation runtimes. This value may be empty in which case the appid to use for URL-encoded keys is the project_id (eg: foo instead of v~foo).
- Location string
- The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
- Name string
- The resource name of the Database. Format:
projects/{project}/databases/{database}
- Point
In stringTime Recovery Enablement - Whether to enable the PITR feature on this database.
- Type string
- The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.
- Uid string
- The system-generated UUID4 for this Database.
- Update
Time string - The timestamp at which this database was most recently updated. Note this only includes updates to the database resource and not data contained by the database.
- Version
Retention stringPeriod - The period during which past versions of data are retained in the database. Any read or query can specify a
read_time
within this window, and will read the state of the database at that time. If the PITR feature is enabled, the retention period is 7 days. Otherwise, the retention period is 1 hour.
- App
Engine stringIntegration Mode - The App Engine integration mode to use for this database.
- Concurrency
Mode string - The concurrency control mode to use for this database.
- Create
Time string - The timestamp at which this database was created. Databases created before 2016 do not populate create_time.
- Delete
Protection stringState - State of delete protection for the database.
- Earliest
Version stringTime - The earliest timestamp at which older versions of the data can be read from the database. See [version_retention_period] above; this field is populated with
now - version_retention_period
. This value is continuously updated, and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery. - Etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Key
Prefix string - The key_prefix for this database. This key_prefix is used, in combination with the project id ("~") to construct the application id that is returned from the Cloud Datastore APIs in Google App Engine first generation runtimes. This value may be empty in which case the appid to use for URL-encoded keys is the project_id (eg: foo instead of v~foo).
- Location string
- The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
- Name string
- The resource name of the Database. Format:
projects/{project}/databases/{database}
- Point
In stringTime Recovery Enablement - Whether to enable the PITR feature on this database.
- Type string
- The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.
- Uid string
- The system-generated UUID4 for this Database.
- Update
Time string - The timestamp at which this database was most recently updated. Note this only includes updates to the database resource and not data contained by the database.
- Version
Retention stringPeriod - The period during which past versions of data are retained in the database. Any read or query can specify a
read_time
within this window, and will read the state of the database at that time. If the PITR feature is enabled, the retention period is 7 days. Otherwise, the retention period is 1 hour.
- app
Engine StringIntegration Mode - The App Engine integration mode to use for this database.
- concurrency
Mode String - The concurrency control mode to use for this database.
- create
Time String - The timestamp at which this database was created. Databases created before 2016 do not populate create_time.
- delete
Protection StringState - State of delete protection for the database.
- earliest
Version StringTime - The earliest timestamp at which older versions of the data can be read from the database. See [version_retention_period] above; this field is populated with
now - version_retention_period
. This value is continuously updated, and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery. - etag String
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- key
Prefix String - The key_prefix for this database. This key_prefix is used, in combination with the project id ("~") to construct the application id that is returned from the Cloud Datastore APIs in Google App Engine first generation runtimes. This value may be empty in which case the appid to use for URL-encoded keys is the project_id (eg: foo instead of v~foo).
- location String
- The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
- name String
- The resource name of the Database. Format:
projects/{project}/databases/{database}
- point
In StringTime Recovery Enablement - Whether to enable the PITR feature on this database.
- type String
- The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.
- uid String
- The system-generated UUID4 for this Database.
- update
Time String - The timestamp at which this database was most recently updated. Note this only includes updates to the database resource and not data contained by the database.
- version
Retention StringPeriod - The period during which past versions of data are retained in the database. Any read or query can specify a
read_time
within this window, and will read the state of the database at that time. If the PITR feature is enabled, the retention period is 7 days. Otherwise, the retention period is 1 hour.
- app
Engine stringIntegration Mode - The App Engine integration mode to use for this database.
- concurrency
Mode string - The concurrency control mode to use for this database.
- create
Time string - The timestamp at which this database was created. Databases created before 2016 do not populate create_time.
- delete
Protection stringState - State of delete protection for the database.
- earliest
Version stringTime - The earliest timestamp at which older versions of the data can be read from the database. See [version_retention_period] above; this field is populated with
now - version_retention_period
. This value is continuously updated, and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery. - etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- key
Prefix string - The key_prefix for this database. This key_prefix is used, in combination with the project id ("~") to construct the application id that is returned from the Cloud Datastore APIs in Google App Engine first generation runtimes. This value may be empty in which case the appid to use for URL-encoded keys is the project_id (eg: foo instead of v~foo).
- location string
- The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
- name string
- The resource name of the Database. Format:
projects/{project}/databases/{database}
- point
In stringTime Recovery Enablement - Whether to enable the PITR feature on this database.
- type string
- The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.
- uid string
- The system-generated UUID4 for this Database.
- update
Time string - The timestamp at which this database was most recently updated. Note this only includes updates to the database resource and not data contained by the database.
- version
Retention stringPeriod - The period during which past versions of data are retained in the database. Any read or query can specify a
read_time
within this window, and will read the state of the database at that time. If the PITR feature is enabled, the retention period is 7 days. Otherwise, the retention period is 1 hour.
- app_
engine_ strintegration_ mode - The App Engine integration mode to use for this database.
- concurrency_
mode str - The concurrency control mode to use for this database.
- create_
time str - The timestamp at which this database was created. Databases created before 2016 do not populate create_time.
- delete_
protection_ strstate - State of delete protection for the database.
- earliest_
version_ strtime - The earliest timestamp at which older versions of the data can be read from the database. See [version_retention_period] above; this field is populated with
now - version_retention_period
. This value is continuously updated, and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery. - etag str
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- key_
prefix str - The key_prefix for this database. This key_prefix is used, in combination with the project id ("~") to construct the application id that is returned from the Cloud Datastore APIs in Google App Engine first generation runtimes. This value may be empty in which case the appid to use for URL-encoded keys is the project_id (eg: foo instead of v~foo).
- location str
- The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
- name str
- The resource name of the Database. Format:
projects/{project}/databases/{database}
- point_
in_ strtime_ recovery_ enablement - Whether to enable the PITR feature on this database.
- type str
- The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.
- uid str
- The system-generated UUID4 for this Database.
- update_
time str - The timestamp at which this database was most recently updated. Note this only includes updates to the database resource and not data contained by the database.
- version_
retention_ strperiod - The period during which past versions of data are retained in the database. Any read or query can specify a
read_time
within this window, and will read the state of the database at that time. If the PITR feature is enabled, the retention period is 7 days. Otherwise, the retention period is 1 hour.
- app
Engine StringIntegration Mode - The App Engine integration mode to use for this database.
- concurrency
Mode String - The concurrency control mode to use for this database.
- create
Time String - The timestamp at which this database was created. Databases created before 2016 do not populate create_time.
- delete
Protection StringState - State of delete protection for the database.
- earliest
Version StringTime - The earliest timestamp at which older versions of the data can be read from the database. See [version_retention_period] above; this field is populated with
now - version_retention_period
. This value is continuously updated, and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery. - etag String
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- key
Prefix String - The key_prefix for this database. This key_prefix is used, in combination with the project id ("~") to construct the application id that is returned from the Cloud Datastore APIs in Google App Engine first generation runtimes. This value may be empty in which case the appid to use for URL-encoded keys is the project_id (eg: foo instead of v~foo).
- location String
- The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
- name String
- The resource name of the Database. Format:
projects/{project}/databases/{database}
- point
In StringTime Recovery Enablement - Whether to enable the PITR feature on this database.
- type String
- The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.
- uid String
- The system-generated UUID4 for this Database.
- update
Time String - The timestamp at which this database was most recently updated. Note this only includes updates to the database resource and not data contained by the database.
- version
Retention StringPeriod - The period during which past versions of data are retained in the database. Any read or query can specify a
read_time
within this window, and will read the state of the database at that time. If the PITR feature is enabled, the retention period is 7 days. Otherwise, the retention period is 1 hour.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
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