PostgreSQL environment-related operations via CLI
There are many operations related to a Delphix Continuous Data Engine environment:
Create/Discover
Update
Refresh
Disable
Enable
Delete
CLI operations for each will appear below:
To create/discover an environment via CLI, login to the Delphix Continuous Data Engine using the admin user account.
ssh admin@<CONTINUOUS-DATA-FQDN-or-IP>
Creating/ Discovering the environment
Run the following commands to discover the environment.
environment
create
set hostEnvironment.name=rh86-pg15-s1
set hostParameters.host.address=rh86-pg15-s1.dlpxdc.co
set hostParameters.host.toolkitPath=/tmp
set primaryUser.name=postgres
set primaryUser.credential.password=postgres
commit
Updating the environment
Run the following commands to update the environment.
The name of the environment can be updated from rh86-pg15-s to rh86-pg15-s1.dlpxdc.co using the following command.
environment
select rh86-pg15-s1
update
set name=rh86-pg15-s1.dlpxdc.co
commit
Refreshing the environment
Run the following commands to refresh the environment.
environment
select rh86-pg15-s1.dlpxdc.co
refresh
commit
Disabling the environment
Run the following commands to disable the environment.
environment
select rh86-pg15-s1.dlpxdc.co
disable
commit
Enabling the environment
Run the following commands to enable the environment.
environment
select rh86-pg15-s1.dlpxdc.co
enable
commit
Deleting the environment
Run the following commands to delete the environment.
environment
select rh86-pg15-s1.dlpxdc.co
delete
commit