database

Manage your Database

Note

The functionality is available as part of the Early adopters program. Operation and interface may be changed in a non-backward compatibility manner.

Examples

Create MySQL database

h1 database create --name my-database --type mysql:5.7 --password my-password

database create

Create Database

Syntax

h1 database create | --name NAME --type TYPE [--tag TAG [--tag TAG ...]]

Examples

Create MySQL database

h1 database create --name my-database --type mysql:5.7 --password my-password

Required arguments

Name Default Description
--name NAME Database name
--type TYPE Database type name or ID

Optional arguments

Name Default Description
--tag TAG [--tag TAG ...] Key=value of tag. The parameter may occur repeatedly

database list

List Database

Syntax

h1 database list |

Example

h1 database list

database show

Show Database

Syntax

h1 database show | --database DATABASE

Example

h1 database show --database my-database

Required arguments

Name Default Description
--database DATABASE Database ID or name

database delete

Delete Database

Syntax

h1 database delete | --database DATABASE

Example

h1 database delete --database my-database

Required arguments

Name Default Description
--database DATABASE Database ID or name

database history

History of Database

Syntax

h1 database history | --database DATABASE

Example

h1 database history --database my-database

Required arguments

Name Default Description
--database DATABASE Database ID or name

database rename

Rename Database

Syntax

h1 database rename | --database DATABASE --new-name NEW-NAME

Example

h1 database rename --database my-database --new-name my-renamed-database

Required arguments

Name Default Description
--database DATABASE Database ID or name
--new-name NEW-NAME New name

database service

Manage your services of Database

database service list

List Service for Database

Syntax

h1 database service list | --database DATABASE

Example

h1 database service list --database test-database

Required arguments

Name Default Description
--database DATABASE Database ID or name

database service show

Show Service for Database

Syntax

h1 database service show | --database DATABASE --service SERVICE

Example

h1 database service show --service my-service --database my-database

Required arguments

Name Default Description
--database DATABASE Database ID or name
--service SERVICE Service for Database ID or name

database start

Start Database

Syntax

h1 database start | --database DATABASE

Example

h1 database start --database my-database

Required arguments

Name Default Description
--database DATABASE Database ID or name

database stop

Stop Database

Syntax

h1 database stop | --database DATABASE

Example

h1 database stop --database my-database

Required arguments

Name Default Description
--database DATABASE Database ID or name

database transfer

Transfer Database to other project

Syntax

h1 database transfer | --database DATABASE --new-project NEW-PROJECT

Example

h1 database transfer --database test-database --new-project OtherProject

Required arguments

Name Default Description
--database DATABASE Database ID or name
--new-project NEW-PROJECT New name

database shell

Connect to Database using standard client

Syntax

h1 database shell | --database DATABASE --password PASSWORD

Example

h1 database shell --database my-database --password access-password

Note: You need valid credentials to access Database any way.

Required arguments

Name Default Description
--database DATABASE Database ID or name
--password PASSWORD Password to access database. Can be set also via environment variable HYPERONE_DATABASE_PASSWORD.

database credential

Manage your credentials of Database

database credential list

List credential of Database

Syntax

h1 database credential list | --database DATABASE

Example

h1 database credential list --database my-database

Required arguments

Name Default Description
--database DATABASE Database ID or name

database credential show

Show credential of Database

Syntax

h1 database credential show | --database DATABASE --credential CREDENTIAL

Example

h1 database credential show --credential my-credential

Required arguments

Name Default Description
--database DATABASE Database ID or name
--credential CREDENTIAL Credential of Database ID or name

database credential delete

Delete credential of Database

Syntax

h1 database credential delete | --database DATABASE --credential CREDENTIAL

Example

h1 database credential delete --credential my-credential --database my-database

Required arguments

Name Default Description
--database DATABASE Database ID or name
--credential CREDENTIAL Credential of Database ID or name

database credential password

Manage your password Database

database credential password list

List password credential of Database

Syntax

h1 database credential password list | --database DATABASE

Example

h1 database credential password list --database my-database

Required arguments

Name Default Description
--database DATABASE Database ID or name

database credential password show

Show password credential of Database

Syntax

h1 database credential password show | --database DATABASE --password PASSWORD

Example

h1 database credential password show --password my-password

Required arguments

Name Default Description
--database DATABASE Database ID or name
--password PASSWORD Password credential of Database ID or name

database credential password rename

Rename password credential of Database

Syntax

h1 database credential password rename | --database DATABASE --password PASSWORD --new-name NEW-NAME

Example

h1 database credential password rename --password my-password --new-name my-renamed-password --database my-database

Required arguments

Name Default Description
--database DATABASE Database ID or name
--password PASSWORD Password credential of Database ID or name
--new-name NEW-NAME New name

database credential password delete

Delete password credential of Database

Syntax

h1 database credential password delete | --database DATABASE --password PASSWORD

Example

h1 database credential password delete --password my-password --database my-database

Required arguments

Name Default Description
--database DATABASE Database ID or name
--password PASSWORD Password credential of Database ID or name

database credential password add

Add password credential of Database

Syntax

h1 database credential password add | --database DATABASE --name NAME [--password PASSWORD]

Example

h1 database credential password add --name my-pass --password secret-password --database my-database

Required arguments

Name Default Description
--database DATABASE Database ID or name
--name NAME Name

Optional arguments

Name Default Description
--password PASSWORD Password. It will be generated and shown if it is not specified.

database credential password list

List password credential of Database

Syntax

h1 database credential password list | --database DATABASE

Example

h1 database credential password list --database my-database

Required arguments

Name Default Description
--database DATABASE Database ID or name

database tag

Manage your tag

database tag list

List tag

Syntax

h1 database tag list | --database DATABASE

Example

h1 database tag list --database my-database

Required arguments

Name Default Description
--database DATABASE Database ID or name

database tag add

Add a tag to Database

Syntax

h1 database tag add | --tag TAG [--tag TAG ...] --database DATABASE

Example

h1 database tag add --database test-database --tag prod=true

Required arguments

Name Default Description
--tag TAG [--tag TAG ...] Key=value of tag. The parameter may occur repeatedly
--database DATABASE Database ID or name

database tag delete

Delete a tag of Database

Syntax

h1 database tag delete | --tag TAG --database DATABASE

Example

h1 database tag delete --database test-database --tag prod

Required arguments

Name Default Description
--tag TAG Tag
--database DATABASE Database ID or name
Czy uważasz ten artykuł za przydatny? Tak Nie