1. Packages
  2. Turso Provider
  3. API Docs
  4. getDatabase
turso 0.2.3 published on Friday, Mar 7, 2025 by celest-dev

turso.getDatabase

Explore with Pulumi AI

turso 0.2.3 published on Friday, Mar 7, 2025 by celest-dev

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>
Copy
def get_database(id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetDatabaseResult
def get_database_output(id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseResult]
Copy
func LookupDatabase(ctx *Context, args *LookupDatabaseArgs, opts ...InvokeOption) (*LookupDatabaseResult, error)
func LookupDatabaseOutput(ctx *Context, args *LookupDatabaseOutputArgs, opts ...InvokeOption) LookupDatabaseResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetDatabaseResult> getDatabase(GetDatabaseArgs args, InvokeOptions options)
public static Output<GetDatabaseResult> getDatabase(GetDatabaseArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: turso:index/getDatabase:getDatabase
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
The name of the database.
Id This property is required. string
The name of the database.
id This property is required. String
The name of the database.
id This property is required. string
The name of the database.
id This property is required. str
The name of the database.
id This property is required. String
The name of the database.

getDatabase Result

The following output properties are available:

Database GetDatabaseDatabase
Id string
The name of the database.
Database GetDatabaseDatabase
Id string
The name of the database.
database GetDatabaseDatabase
id String
The name of the database.
database GetDatabaseDatabase
id string
The name of the database.
database GetDatabaseDatabase
id str
The name of the database.
database Property Map
id String
The name of the database.

Supporting Types

GetDatabaseDatabase

AllowAttach This property is required. bool
The current status for allowing the database to be attached to another.
Archived This property is required. bool
The current status of the database. If true, the database is archived and requires a manual unarchive step.
BlockReads This property is required. bool
The current status for blocked reads.
BlockWrites This property is required. bool
The current status for blocked writes.
DbId This property is required. string
The database universal unique identifier (UUID).
Group This property is required. string
The name of the group the database belongs to.
Hostname This property is required. string
The DNS hostname used for client libSQL and HTTP connections.
IsSchema This property is required. bool
If this database controls other child databases then this will be true. See Multi-DB Schemas.
Name This property is required. string
The database name, unique across your organization.
PrimaryRegion This property is required. string
The primary region location code the group the database belongs to.
Regions This property is required. List<string>
A list of regions for the group the database belongs to.
Schema This property is required. string
The name of the parent database that owns the schema for this database. See Multi-DB Schemas.
Type This property is required. string
The string representing the object type.
Version This property is required. string
The current libSQL version the database is running.
AllowAttach This property is required. bool
The current status for allowing the database to be attached to another.
Archived This property is required. bool
The current status of the database. If true, the database is archived and requires a manual unarchive step.
BlockReads This property is required. bool
The current status for blocked reads.
BlockWrites This property is required. bool
The current status for blocked writes.
DbId This property is required. string
The database universal unique identifier (UUID).
Group This property is required. string
The name of the group the database belongs to.
Hostname This property is required. string
The DNS hostname used for client libSQL and HTTP connections.
IsSchema This property is required. bool
If this database controls other child databases then this will be true. See Multi-DB Schemas.
Name This property is required. string
The database name, unique across your organization.
PrimaryRegion This property is required. string
The primary region location code the group the database belongs to.
Regions This property is required. []string
A list of regions for the group the database belongs to.
Schema This property is required. string
The name of the parent database that owns the schema for this database. See Multi-DB Schemas.
Type This property is required. string
The string representing the object type.
Version This property is required. string
The current libSQL version the database is running.
allowAttach This property is required. Boolean
The current status for allowing the database to be attached to another.
archived This property is required. Boolean
The current status of the database. If true, the database is archived and requires a manual unarchive step.
blockReads This property is required. Boolean
The current status for blocked reads.
blockWrites This property is required. Boolean
The current status for blocked writes.
dbId This property is required. String
The database universal unique identifier (UUID).
group This property is required. String
The name of the group the database belongs to.
hostname This property is required. String
The DNS hostname used for client libSQL and HTTP connections.
isSchema This property is required. Boolean
If this database controls other child databases then this will be true. See Multi-DB Schemas.
name This property is required. String
The database name, unique across your organization.
primaryRegion This property is required. String
The primary region location code the group the database belongs to.
regions This property is required. List<String>
A list of regions for the group the database belongs to.
schema This property is required. String
The name of the parent database that owns the schema for this database. See Multi-DB Schemas.
type This property is required. String
The string representing the object type.
version This property is required. String
The current libSQL version the database is running.
allowAttach This property is required. boolean
The current status for allowing the database to be attached to another.
archived This property is required. boolean
The current status of the database. If true, the database is archived and requires a manual unarchive step.
blockReads This property is required. boolean
The current status for blocked reads.
blockWrites This property is required. boolean
The current status for blocked writes.
dbId This property is required. string
The database universal unique identifier (UUID).
group This property is required. string
The name of the group the database belongs to.
hostname This property is required. string
The DNS hostname used for client libSQL and HTTP connections.
isSchema This property is required. boolean
If this database controls other child databases then this will be true. See Multi-DB Schemas.
name This property is required. string
The database name, unique across your organization.
primaryRegion This property is required. string
The primary region location code the group the database belongs to.
regions This property is required. string[]
A list of regions for the group the database belongs to.
schema This property is required. string
The name of the parent database that owns the schema for this database. See Multi-DB Schemas.
type This property is required. string
The string representing the object type.
version This property is required. string
The current libSQL version the database is running.
allow_attach This property is required. bool
The current status for allowing the database to be attached to another.
archived This property is required. bool
The current status of the database. If true, the database is archived and requires a manual unarchive step.
block_reads This property is required. bool
The current status for blocked reads.
block_writes This property is required. bool
The current status for blocked writes.
db_id This property is required. str
The database universal unique identifier (UUID).
group This property is required. str
The name of the group the database belongs to.
hostname This property is required. str
The DNS hostname used for client libSQL and HTTP connections.
is_schema This property is required. bool
If this database controls other child databases then this will be true. See Multi-DB Schemas.
name This property is required. str
The database name, unique across your organization.
primary_region This property is required. str
The primary region location code the group the database belongs to.
regions This property is required. Sequence[str]
A list of regions for the group the database belongs to.
schema This property is required. str
The name of the parent database that owns the schema for this database. See Multi-DB Schemas.
type This property is required. str
The string representing the object type.
version This property is required. str
The current libSQL version the database is running.
allowAttach This property is required. Boolean
The current status for allowing the database to be attached to another.
archived This property is required. Boolean
The current status of the database. If true, the database is archived and requires a manual unarchive step.
blockReads This property is required. Boolean
The current status for blocked reads.
blockWrites This property is required. Boolean
The current status for blocked writes.
dbId This property is required. String
The database universal unique identifier (UUID).
group This property is required. String
The name of the group the database belongs to.
hostname This property is required. String
The DNS hostname used for client libSQL and HTTP connections.
isSchema This property is required. Boolean
If this database controls other child databases then this will be true. See Multi-DB Schemas.
name This property is required. String
The database name, unique across your organization.
primaryRegion This property is required. String
The primary region location code the group the database belongs to.
regions This property is required. List<String>
A list of regions for the group the database belongs to.
schema This property is required. String
The name of the parent database that owns the schema for this database. See Multi-DB Schemas.
type This property is required. String
The string representing the object type.
version This property is required. String
The current libSQL version the database is running.

Package Details

Repository
turso celest-dev/terraform-provider-turso
License
Notes
This Pulumi package is based on the turso Terraform Provider.
turso 0.2.3 published on Friday, Mar 7, 2025 by celest-dev