ncloud_create_mysql_instance
Create a Cloud DB for MySQL instance on Naver Cloud Platform. Supports preview with dryRun, high availability, multi-zone, and configurable backup options.
Instructions
Create a new Cloud DB for MySQL instance. Use dryRun=true to preview without creating.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isHa | No | High availability (default: true). If true, creates Standby Master (2 servers). If false, isMultiZone/standbyMasterSubnetNo are ignored. | |
| vpcNo | Yes | VPC number (getCloudMysqlTargetVpcList) | |
| dryRun | No | If true, returns a preview without actually creating the instance | |
| hostIp | Yes | Host IP for MySQL access (e.g. '%' for all, '1.1.1.1', '1.1.1.%', '1.1.1.0/24'). Use '%25' for '%' in GET requests. | |
| isBackup | No | Backup enabled (default: true). Fixed to true when isHa=true. | |
| subnetNo | Yes | Subnet number for primary NIC (getCloudMysqlTargetSubnetList) | |
| backupTime | No | Backup time in HH:mm format (e.g. '02:00'). Required when isBackup=true and isAutomaticBackup=false. | |
| regionCode | No | Region code (e.g. KR, SGN, JPN). Defaults to first region. | |
| isMultiZone | No | Multi-zone HA (default: false). Required when isHa=true. Places Master and Standby in different zones. | |
| cloudMysqlPort | No | MySQL TCP port (default: 3306, range: 10000-20000). Cannot change after creation. | |
| engineVersionCode | No | DB engine version code (getCloudMysqlImageProductList). Defaults to latest version. | |
| isAutomaticBackup | No | Automatic backup time scheduling (default: true). If true, backupTime cannot be specified. | |
| cloudMysqlUserName | Yes | DB user account ID (3-16 chars, starts with letter, allows letters/numbers/'-'/'_') | |
| isDeleteProtection | No | Cluster deletion protection (default: false). If true, cluster cannot be deleted. | |
| isPrivateSubDomain | No | Use private sub-domain (true/false) | |
| dataStorageTypeCode | No | Data storage type. G2 default: SSD, G3 default: CB2. Cannot change after creation. | |
| isStorageEncryption | No | Storage encryption (default: false). Only available when isHa=true. Cannot change after creation. | |
| cloudMysqlProductCode | No | MySQL server product (spec) code (getCloudMysqlProductList). Defaults to minimum spec. | |
| cloudMysqlServiceName | Yes | MySQL service name (3-30 chars, letters, numbers, Korean, '-') | |
| standbyMasterSubnetNo | No | Subnet for Standby Master server. Required when isMultiZone=true. Must be different zone from primary subnet. | |
| cloudMysqlDatabaseName | Yes | Initial database name (1-30 chars, starts with letter) | |
| cloudMysqlUserPassword | Yes | DB user password (8-20 chars, must include letter+number+special char) | |
| privateSubDomainPrefix | No | Private sub-domain prefix (3-15 chars). Required when isPrivateSubDomain=true. | |
| backupFileRetentionPeriod | No | Backup retention period in days (default: 1). Only InnoDB tables supported. | |
| cloudMysqlImageProductCode | No | MySQL image product code (getCloudMysqlImageProductList) | |
| cloudMysqlServerNamePrefix | Yes | Server name prefix (3-20 chars, starts with letter, ends with letter/number, allows '-') |