createCloudMssqlSlaveInstance
- Print
- PDF
createCloudMssqlSlaveInstance
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in VPC
Add Slave server instance to Cloud DB for MSSQL instance.
Commands
The text of the command is as follows:
ncloud vmssql createCloudMssqlSlaveInstance [regionCode] [cloudMssqlInstanceNo] [privateDomainPostfix] [subnetNo] [output]
Parameter
The following is a description on parameters.
Parameter | Type | Requirement status | Description | Restrictions |
---|---|---|---|---|
regionCode | String | N | Region code - regionCode can be obtained via the getRegionList action - Default: selects the first region of the getRegionList search results | - |
cloudMssqlInstanceNo | String | Y | Instance number of Cloud DB for MSSQL to which slave server is to be added - cloudMssqlInstanceNo can be obtained via the getCloudMssqlInstanceList action | - |
privateDomainPostfix | String | Y | private domain postfix - Postfix to be attached on the private domain for the slave server to be added | - Only 3-digit numbers within the range of 001 to 999 can be entered |
subnetNo | String | N | Subnet number - Determine the subnet of the Cloud DB for MSSQL instance to be created - subnetNo can be obtained via the getCloudMssqlTargetSubnetList action - When Cloud DB for MSSQL instance's isMultiZone is true, you must enter subnetNo - When Cloud DB for MSSQL instance's isMultiZone is false, subnetNo entry is not accepted, and existing subnetNo is used - Public domain can only be subscribed on a DB server generated on Public Subnet - Subnet transfer is not possible after a Cloud DB for MSSQL instance has been created | - |
output | String | N | Format type of the response result - options: xml | json - default: json | - |
Responses
Response data type
CloudMssqlInstanceList type
CloudMssqlInstanceList extends CommonResponse Description private Integer totalRows; Total number of items viewed private List<CloudMssqlInstance> cloudMssqlInstanceList = new ArrayList<>(); Cloud DB for MSSQL instance list CloudMssqlInstance type
CloudMssqlInstance Description private String cloudMssqlInstanceNo; Cloud DB for MSSQL instance number private String cloudMssqlServiceName; Cloud DB for MSSQL service name private String cloudMssqlInstanceStatusName; Cloud DB for MSSQL instance status name
-creating
-deleted
-deleting
-downgrading
-pending
-recovering
-reinstalling
-restarting
-running
-settingup
-shuttingdown
-stopped
-upgrading
private CommonCode cloudMssqlInstanceStatus; Cloud DB for MSSQL instance status code
-INIT (initiate)
-CREAT (created)
-DEL (deleted)
private CommonCode cloudMssqlInstanceOperation; Cloud DB for MSSQL instance operation code
-CREAT (create)
-DEL (delete)
-FO (failover)
-NULL (no operation)
-SETUP (setup)
-UPGD (upgrade)
-DWGD (downgrade)
-BKP (backup)
private String cloudMssqlImageProductCode; Cloud DB for MSSQL image product code private Boolean isHa; High availability status private Boolean isMultiZone; Multi-zone (True/False) private CommonCode license; Cloud DB for MSSQL license private Integer cloudMssqlPort; Cloud DB for MSSQL port private Integer backupFileRetentionPeriod; Backup file storage period private String backupTime; Backup time private String configGroupNo; Cloud DB for MSSQL config group Number private String configGroupName; Cloud DB for MSSQL config group name private String engineVersion; Cloud DB for MSSQL engine version private Date createDate; Creation date private String dbCollation; Cloud DB for MSSQL character set private List<CloudMssqlServerInstance> cloudMssqlServerInstanceList; Cloud DB for MSSQL server instance list private AccessControlGroupNoList accessControlGroupNoList; List of ACG numbers CloudMssqlServerInstance type
CloudMssqlServerInstance Description private String cloudMssqlServerInstanceNo; Cloud DB for MSSQL server instance number private String cloudMssqlServerName; Cloud DB for MSSQL server name private CommonCode cloudMssqlServerRole; Cloud DB for MSSQL server role private String cloudMssqlServerInstanceStatusName; Cloud DB for MSSQL server instance status name
-creating
-deleted
-deleting
-downgrading
-pending
-recovering
-reinstalling
-restarting
-running
-settingup
-shuttingdown
-stopped
-upgrading
-downgrading
private CommonCode cloudMssqlServerInstanceStatus; Cloud DB for MSSQL server instance status code
-DEL (deleted)
-PEND (pending)
-RUN (running)
-STOP (stopped)
-FSTOP (failure stopped)
private CommonCode cloudMssqlServerInstanceOperation; Cloud DB for MSSQL server instance operation code
-NOOP (no operation)
-CREAT (create)
-START (start)
-RSTRT (restart)
-SETUP (setup)
-STOP (stop)
-FO (failover)
-DEL (delete)
-UPGD (upgrade)
-DWGD (downgrade)
-RISTL (reinstall)
private String regionCode; Region code private String zoneCode; Zone code private String vpcNo; VPC number private String subnetNo; Subnet number private Long dataStorageSize; Data storage size private Integer cpuCount; Number of CPUs private Long memorySize; Memory size private Boolean isPublicSubnet; Public Subnet status private String cloudMssqlProductCode; Cloud DB for MSSQL product code private String privateDomain; Name of private domain private String publicDomain; Name of public domain private Date createDate; Creation date private Date uptime; VM booting completion time private CommonCode dataStorageType; Data storage type private Long usedDataStorageSize; Size of data storage in use AccessControlGroupNoList type
AccessControlGroupNoList Description private List<String> accessControlGroupNoList = new ArrayList<>(); List of ACG numbers
Examples
Describes examples of recalls and responses.
Recall examples
The following are examples of recalls.
ncloud vmssql createCloudMssqlSlaveInstance --regionCode KR --cloudMssqlInstanceNo ****890 --privateDomainPostfix 777 --subnetNo ****92
Response examples
The following are examples of responses.
If the response shows that format type (output) is json
The following is when the response shows that format type (output) is json.
{
"createCloudMssqlSlaveInstanceResponse": {
"requestId": "858c2941-2402-4686-9f4d-36a7a906a39d",
"returnCode": 0,
"returnMessage": "success",
"totalRows": 1,
"cloudMssqlInstanceList": [
{
"cloudMssqlInstanceNo": "****890",
"cloudMssqlServiceName": "test-****",
"cloudMssqlInstanceStatusName": "running",
"cloudMssqlInstanceStatus": {
"code": "CREAT",
"codeName": "CLOUD DATABASE(VPC) Created State"
},
"cloudMssqlInstanceOperation": {
"code": "NULL",
"codeName": "CLOUD DATABASE(VPC) Null OP"
},
"cloudMssqlImageProductCode": "SW.VMSSL.OS.WND64.WINNT.SVR2016.MSSQL.15020005.SE.B100",
"isHa": true,
"isMultiZone": true,
"license": {
"code": "SPLA",
"codeName": "Service Provider License Agreement"
},
"cloudMssqlPort": 1433,
"backupFileRetentionPeriod": 3,
"backupTime": "17:00",
"configGroupNo": 0,
"configGroupName": "test-****-config",
"engineVersion": "MSSQL 15.0.2000.5 Standard Edition",
"createDate": "2021-04-30T14:03:20+0900",
"dbCollation": "Korean_Wansung_CI_AS",
"cloudMssqlServerInstanceList": [
{
"cloudMssqlServerInstanceNo": "****891",
"cloudMssqlServerName": "m-****890-001",
"cloudMssqlServerRole": {
"code": "M",
"codeName": "Principal"
},
"cloudMssqlServerInstanceStatusName": "running",
"cloudMssqlServerInstanceStatus": {
"code": "RUN",
"codeName": "CLOUD DATABASE(VPC) Server Running State"
},
"cloudMssqlServerInstanceOperation": {
"code": "NOOP",
"codeName": "CLOUD DATABASE(VPC) Server Restart OP"
},
"regionCode": "KR",
"zoneCode": "KR-1",
"vpcNo": "****83",
"subnetNo": "****91",
"dataStorageSize": 107374182400,
"cpuCount": 2,
"memorySize": 8589934592,
"isPublicSubnet": true,
"cloudMssqlProductCode": "SVR.VMSSL.STAND.C002.M008.NET.HDD.B100.G002",
"privateDomain": "mssql-***.beta-vpc-cdb.ntruss.com",
"createDate": "2021-04-30T14:03:20+0900",
"uptime": "2021-04-30T14:14:39+0900",
"dataStorageType": {
"code": "SSD",
"codeName": "SSD"
},
"usedDataStorageSize": 1073741824
},
{
"cloudMssqlServerInstanceNo": "****897",
"cloudMssqlServerName": "m-****890-002",
"cloudMssqlServerRole": {
"code": "H",
"codeName": "Mirror"
},
"cloudMssqlServerInstanceStatusName": "running",
"cloudMssqlServerInstanceStatus": {
"code": "RUN",
"codeName": "CLOUD DATABASE(VPC) Server Running State"
},
"cloudMssqlServerInstanceOperation": {
"code": "NOOP",
"codeName": "CLOUD DATABASE(VPC) Server Null OP"
},
"regionCode": "KR",
"zoneCode": "KR-1",
"vpcNo": "****83",
"subnetNo": "****91",
"dataStorageSize": 107374182400,
"cpuCount": 2,
"memorySize": 8589934592,
"isPublicSubnet": true,
"cloudMssqlProductCode": "SVR.VMSSL.STAND.C002.M008.NET.HDD.B100.G002",
"privateDomain": "mssql-***.beta-vpc-cdb.ntruss.com",
"createDate": "2021-05-27T19:00:00+0900",
"uptime": "2021-05-27T19:01:00+0900",
"dataStorageType": {
"code": "SSD",
"codeName": "SSD"
},
"usedDataStorageSize": 1073741824
},
{
"cloudMssqlServerInstanceNo": "****123",
"cloudMssqlServerName": "m-****890-003",
"cloudMssqlServerRole": {
"code": "S",
"codeName": "Slave"
},
"cloudMssqlServerInstanceStatusName": "PEND",
"cloudMssqlServerInstanceStatus": {
"code": "PEND",
"codeName": "CLOUD DATABASE(VPC) Server Pending State"
},
"cloudMssqlServerInstanceOperation": {
"code": "NOOP",
"codeName": "CLOUD DATABASE(VPC) Server Null OP"
},
"regionCode": "KR",
"zoneCode": "KR-2",
"vpcNo": "****83",
"subnetNo": "****92",
"dataStorageSize": 107374182400,
"cpuCount": 2,
"memorySize": 8589934592,
"isPublicSubnet": true,
"cloudMssqlProductCode": "SVR.VMSSL.STAND.C002.M008.NET.HDD.B100.G002",
"privateDomain": "mssql-***.beta-vpc-cdb.ntruss.com",
"createDate": "2021-05-27T19:00:00+0900",
"uptime": "2021-05-27T19:01:00+0900",
"dataStorageType": {
"code": "SSD",
"codeName": "SSD"
},
"usedDataStorageSize": 1073741824
}
],
"accessControlGroupNoList": [
"****58"
]
}
]
}
}
If the response shows that format type (responseFormatType) is xml
The following is when the response shows that format type (responseFormatType) is xml:
<createCloudMssqlSlaveInstanceResponse>
<requestId>858c2941-2402-4686-9f4d-36a7a906a39d</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>1</totalRows>
<cloudMssqlInstanceList>
<CloudMssqlInstance>
<cloudMssqlInstanceNo>****890</cloudMssqlInstanceNo>
<cloudMssqlServiceName>test-****</cloudMssqlServiceName>
<cloudMssqlInstanceStatusName>running</cloudMssqlInstanceStatusName>
<cloudMssqlInstanceStatus>
<code>CREAT</code>
<codeName>CLOUD DATABASE(VPC) Created State</codeName>
</cloudMssqlInstanceStatus>
<cloudMssqlInstanceOperation>
<code>NULL</code>
<codeName>CLOUD DATABASE(VPC) Null OP</codeName>
</cloudMssqlInstanceOperation>
<cloudMssqlImageProductCode>SW.VMSSL.OS.WND64.WINNT.SVR2016.MSSQL.15020005.SE.B100</cloudMssqlImageProductCode>
<isHa>true</isHa>
<isMultiZone>true</isMultiZone>
<license>
<code>SPLA</code>
<codeName>Service Provider License Agreement</codeName>
</license>
<cloudMssqlPort>1433</cloudMssqlPort>
<backupFileRetentionPeriod>3</backupFileRetentionPeriod>
<backupTime>17:00</backupTime>
<configGroupNo>0</configGroupNo>
<configGroupName>test-****-config</configGroupName>
<engineVersion>MSSQL 15.0.2000.5 Standard Edition</engineVersion>
<createDate>2021-04-30T14:03:20+0900</createDate>
<dbCollation>Korean_Wansung_CI_AS</dbCollation>
<cloudMssqlServerInstanceList>
<cloudMssqlServerInstanceList>
<cloudMssqlServerInstanceNo>****891</cloudMssqlServerInstanceNo>
<cloudMssqlServerName>m-****890-001</cloudMssqlServerName>
<cloudMssqlServerRole>
<code>M</code>
<codeName>Principal</codeName>
</cloudMssqlServerRole>
<cloudMssqlServerInstanceStatusName>running</cloudMssqlServerInstanceStatusName>
<cloudMssqlServerInstanceStatus>
<code>RUN</code>
<codeName>CLOUD DATABASE(VPC) Server Running State</codeName>
</cloudMssqlServerInstanceStatus>
<cloudMssqlServerInstanceOperation>
<code>NOOP</code>
<codeName>CLOUD DATABASE(VPC) Server Restart OP</codeName>
</cloudMssqlServerInstanceOperation>
<regionCode>KR</regionCode>
<zoneCode>KR-1</zoneCode>
<vpcNo>****83</vpcNo>
<subnetNo>****91</subnetNo>
<dataStorageSize>107374182400</dataStorageSize>
<cpuCount>2</cpuCount>
<memorySize>8589934592</memorySize>
<isPublicSubnet>true</isPublicSubnet>
<cloudMssqlProductCode>SVR.VMSSL.STAND.C002.M008.NET.HDD.B100.G002</cloudMssqlProductCode>
<privateDomain>mssql-***.beta-vpc-cdb.ntruss.com</privateDomain>
<createDate>2021-04-30T14:03:20+0900</createDate>
<uptime>2021-04-30T14:14:39+0900</uptime>
<dataStorageType>
<code>SSD</code>
<codeName>SSD</codeName>
</dataStorageType>
<usedDataStorageSize>1073741824</usedDataStorageSize>
</cloudMssqlServerInstanceList>
<cloudMssqlServerInstanceList>
<cloudMssqlServerInstanceNo>****897</cloudMssqlServerInstanceNo>
<cloudMssqlServerName>m-****890-002</cloudMssqlServerName>
<cloudMssqlServerRole>
<code>H</code>
<codeName>Mirror</codeName>
</cloudMssqlServerRole>
<cloudMssqlServerInstanceStatusName>running</cloudMssqlServerInstanceStatusName>
<cloudMssqlServerInstanceStatus>
<code>RUN</code>
<codeName>CLOUD DATABASE(VPC) Server Running State</codeName>
</cloudMssqlServerInstanceStatus>
<cloudMssqlServerInstanceOperation>
<code>NOOP</code>
<codeName>CLOUD DATABASE(VPC) Server Null OP</codeName>
</cloudMssqlServerInstanceOperation>
<regionCode>KR</regionCode>
<zoneCode>KR-1</zoneCode>
<vpcNo>****83</vpcNo>
<subnetNo>****91</subnetNo>
<dataStorageSize>107374182400</dataStorageSize>
<cpuCount>2</cpuCount>
<memorySize>8589934592</memorySize>
<isPublicSubnet>true</isPublicSubnet>
<cloudMssqlProductCode>SVR.VMSSL.STAND.C002.M008.NET.HDD.B100.G002</cloudMssqlProductCode>
<privateDomain>mssql-***.beta-vpc-cdb.ntruss.com</privateDomain>
<createDate>2021-05-27T19:00:00+0900</createDate>
<uptime>2021-05-27T19:01:00+0900</uptime>
<dataStorageType>
<code>SSD</code>
<codeName>SSD</codeName>
</dataStorageType>
<usedDataStorageSize>1073741824</usedDataStorageSize>
</cloudMssqlServerInstanceList>
<cloudMssqlServerInstanceList>
<cloudMssqlServerInstanceNo>****123</cloudMssqlServerInstanceNo>
<cloudMssqlServerName>m-****890-003</cloudMssqlServerName>
<cloudMssqlServerRole>
<code>S</code>
<codeName>Slave</codeName>
</cloudMssqlServerRole>
<cloudMssqlServerInstanceStatusName>PEND</cloudMssqlServerInstanceStatusName>
<cloudMssqlServerInstanceStatus>
<code>PEND</code>
<codeName>CLOUD DATABASE(VPC) Server Pending State</codeName>
</cloudMssqlServerInstanceStatus>
<cloudMssqlServerInstanceOperation>
<code>NOOP</code>
<codeName>CLOUD DATABASE(VPC) Server Null OP</codeName>
</cloudMssqlServerInstanceOperation>
<regionCode>KR</regionCode>
<zoneCode>KR-2</zoneCode>
<vpcNo>****83</vpcNo>
<subnetNo>****92</subnetNo>
<dataStorageSize>107374182400</dataStorageSize>
<cpuCount>2</cpuCount>
<memorySize>8589934592</memorySize>
<isPublicSubnet>true</isPublicSubnet>
<cloudMssqlProductCode>SVR.VMSSL.STAND.C002.M008.NET.HDD.B100.G002</cloudMssqlProductCode>
<privateDomain>mssql-***.beta-vpc-cdb.ntruss.com</privateDomain>
<createDate>2021-05-27T19:00:00+0900</createDate>
<uptime>2021-05-27T19:01:00+0900</uptime>
<dataStorageType>
<code>SSD</code>
<codeName>SSD</codeName>
</dataStorageType>
<usedDataStorageSize>1073741824</usedDataStorageSize>
</cloudMssqlServerInstanceList>
</cloudMssqlServerInstanceList>
<accessControlGroupNoList>
<accessControlGroupNo>****58</accessControlGroupNo>
</accessControlGroupNoList>
</CloudMssqlInstance>
</cloudMssqlInstanceList>
</createCloudMssqlSlaveInstanceResponse>
Was this article helpful?