**To list the definitions of some or all of the databases in the AWS Glue Data Catalog** The following ``get-databases`` example returns information about the databases in the Data Catalog. :: aws glue get-databases Output:: { "DatabaseList": [ { "Name": "default", "Description": "Default Hive database", "LocationUri": "file:/spark-warehouse", "CreateTime": 1602084052.0, "CreateTableDefaultPermissions": [ { "Principal": { "DataLakePrincipalIdentifier": "IAM_ALLOWED_PRINCIPALS" }, "Permissions": [ "ALL" ] } ], "CatalogId": "111122223333" }, { "Name": "flights-db", "CreateTime": 1587072847.0, "CreateTableDefaultPermissions": [ { "Principal": { "DataLakePrincipalIdentifier": "IAM_ALLOWED_PRINCIPALS" }, "Permissions": [ "ALL" ] } ], "CatalogId": "111122223333" }, { "Name": "legislators", "CreateTime": 1601415625.0, "CreateTableDefaultPermissions": [ { "Principal": { "DataLakePrincipalIdentifier": "IAM_ALLOWED_PRINCIPALS" }, "Permissions": [ "ALL" ] } ], "CatalogId": "111122223333" }, { "Name": "tempdb", "CreateTime": 1601498566.0, "CreateTableDefaultPermissions": [ { "Principal": { "DataLakePrincipalIdentifier": "IAM_ALLOWED_PRINCIPALS" }, "Permissions": [ "ALL" ] } ], "CatalogId": "111122223333" } ] } For more information, see `Defining a Database in Your Data Catalog <https://docs.aws.amazon.com/glue/latest/dg/define-database.html>`__ in the *AWS Glue Developer Guide*.
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
batch-stop-job-run.rst | File | 1.16 KB | 0644 |
|
create-connection.rst | File | 1.21 KB | 0644 |
|
create-database.rst | File | 509 B | 0644 |
|
create-job.rst | File | 4.07 KB | 0644 |
|
create-table.rst | File | 3.9 KB | 0644 |
|
delete-job.rst | File | 406 B | 0644 |
|
get-databases.rst | File | 2.65 KB | 0644 |
|
get-job-run.rst | File | 1.5 KB | 0644 |
|
get-job-runs.rst | File | 3.96 KB | 0644 |
|
get-job.rst | File | 1.09 KB | 0644 |
|
get-plan.rst | File | 4.6 KB | 0644 |
|
get-tables.rst | File | 4.88 KB | 0644 |
|
start-crawler.rst | File | 297 B | 0644 |
|
start-job-run.rst | File | 396 B | 0644 |
|