pem.createDatabase

This method is supported by Operations starting from version 2.3.

This method creates new database for specified subscription with specific type and default user.

The method has the following input parameters:

Name

Type

Short Description

subscription_id

int

The ID of the Subscription.

name

string

Name for Database to create.

type

string

Which RDBMS use to host a Database. Possible values:

  • MYSQL
  • PGSQL

user

string

Name of Database User.

password

string

Password for Database User.

[database_rt_id]

int

ID of Resource Type, which should be used for Database provisioning. If not specified, first suitable Resource Type is used.

The method has the following output parameters:

Name

Type

Short Description

database_id

int

ID of created Database.

name

string

Name of created Database.

hostname

string

Name of host where Database will be located.