You can review your Data Container by using the
You can change the output format when getting data containers to return more information.
-o json will print the data container information out as JSON, including connection details (hostname, port, username, password). This makes it easier to consume Spawn as part of a startup script for an application as you can dynamically configure database connection details.
If you are an admin of your organisation, you can use the
--org command to check all data-containers created within your organisation.
Get all data-containers you own:
Get specific data-containers you own:
Get all data-containers within your organisation:
Get specific data-container within your organisation:
In this tutorial we will create a Data Image, then create a Data Container from that image. We will then review the Data Container information.
As a prerequisite you should've followed the instructions to install spawnctl
Create a file
development.yamlwith your Data Image specifications.sourceType: emptyname: devengine: postgresqlversion: 11.0
In this case we want to create a PostgreSQL Data Image that is completely empty and is named
Run the following command to create a Data Image.$ spawnctl create data-image -f ./development.yamlData image 'dev' created!
Create a Data Container from the newly created Data Image.$ spawnctl create data-container --image devData container 'dev-rambbomj' created!-> Host=instances.spawn.cc;Port=53223;User ID=<some_user_id>;Password=<some_password>;
You can verify your Data Container was properly created by running the following command.$ spawnctl get data-containersID Name Revision Status Engine CreatedAt ExpiresAt10001 dev-rambbomj rev.0 Completed PostgreSQL:11.0 1 minute ago Never
You can also get only that specific container.$ spawnctl get data-container dev-rambbomjID Name Revision Status Engine CreatedAt ExpiresAt10001 dev-rambbomj rev.0 Completed PostgreSQL:11.0 1 minute ago Never