Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.firestore/v1.getDatabase
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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.
- 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 databases are listed at https://cloud.google.com/firestore/docs/locations.
- Name string
The resource name of the Database. Format:
projects/{project}/databases/{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.
- 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.
- 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 databases are listed at https://cloud.google.com/firestore/docs/locations.
- Name string
The resource name of the Database. Format:
projects/{project}/databases/{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.
- 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.
- 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 databases are listed at https://cloud.google.com/firestore/docs/locations.
- name String
The resource name of the Database. Format:
projects/{project}/databases/{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.
- 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.
- 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 databases are listed at https://cloud.google.com/firestore/docs/locations.
- name string
The resource name of the Database. Format:
projects/{project}/databases/{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.
- 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.
- 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 databases are listed at https://cloud.google.com/firestore/docs/locations.
- name str
The resource name of the Database. Format:
projects/{project}/databases/{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.
- 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.
- 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 databases are listed at https://cloud.google.com/firestore/docs/locations.
- name String
The resource name of the Database. Format:
projects/{project}/databases/{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.
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.