Databases

Get databases

Retrieves a list of databases.

SecurityApiKeyAuth
Request
query Parameters
require_permissions
stringtrue
Responses
200

OK

get/database/list
Request samples
Response samples
application/json
{
  • "databases": [
    ]
}

Get database

Retrieves a specified database.

SecurityApiKeyAuth
Request
path Parameters
database_name
required
string

database name

Example: Alpha
query Parameters
require_permissions
stringtrue
Responses
200

OK

get/database/show/{database_name}
Request samples
Response samples
application/json
{
  • "count": 5,
  • "created_at": "2020-12-31 11:22:33 UTC",
  • "delete_protected": true,
  • "datatank": true,
  • "id": "7",
  • "name": "Alpha",
  • "organization": "Treasure Data",
  • "permission": "string",
  • "database_permissions": {
    },
  • "updated_at": "2020-12-31 11:22:33 UTC"
}

Create database

Creates a database.

SecurityApiKeyAuth
Request
path Parameters
database_name
required
string

database name

Example: Alpha
Responses
200

OK

post/database/create/{database_name}
Request samples
Response samples
application/json
{
  • "database": "Alpha"
}

Delete database

Deletes a specified database.

SecurityApiKeyAuth
Request
path Parameters
database_name
required
string

database name

Example: Alpha
Responses
200

OK

post/database/delete/{database_name}
Request samples
Response samples
application/json
{
  • "database": "Alpha"
}