Available in VPC
Create a server instance (VM).
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | POST | /vserver/v2/createServerInstances |
This guide is based on the GET method. POST method call tests can be performed through Swagger in the API Gateway service of the NAVER Cloud Platform console.
Request headers
For information about the headers common to all Server APIs, see Server request headers.
Request query parameters
You can use the following query parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
regionCode |
String | Optional | Region code
|
memberServerImageInstanceNo |
String | Conditional | Server image instance number
|
serverImageNo |
String | Conditional | Server image number
|
serverImageProductCode |
String | Conditional | Server image product code
|
serverSpecCode |
String | Conditional | Server specification code
|
serverProductCode |
String | Optional | Server product code
|
vpcNo |
String | Required | VPC number
|
subnetNo |
String | Required | Subnet number
|
isEncryptedBaseBlockStorageVolume |
Boolean | Optional | Whether to encrypt the default block storage volume
|
feeSystemTypeCode |
String | Optional | Pricing plan type code
|
serverCreateCount |
Integer | Optional | Number of created servers
|
serverCreateStartNo |
Integer | Optional | Server creation start number
|
serverName |
String | Optional | Server name
|
networkInterfaceList.N.networkInterfaceOrder |
Integer | Required | Network interface order
|
networkInterfaceList.N.networkInterfaceNo |
String | Conditional | Network interface number
|
networkInterfaceList.N.subnetNo |
String | Conditional | Subnet number of the network interface
|
networkInterfaceList.N.ip |
String | Optional | Network interface's IP address
|
networkInterfaceList.N.accessControlGroupNoList.N |
Array | Conditional | Network interface's ACG number list
|
placementGroupNo |
String | Optional | Physical placement group number
|
isProtectServerTermination |
Boolean | Optional | Termination protection status
|
serverDescription |
String | Optional | Server description (byte)
|
initScriptNo |
String | Optional | Init script number
|
loginKeyName |
String | Optional | Authentication key name
|
associateWithPublicIp |
Boolean | Optional | Whether to create and assign a new public IP
|
raidTypeName |
String | Conditional | RAID type name
|
blockDevicePartitionList.N.mountPoint |
String | Optional | Mount point
|
blockDevicePartitionList.N.partitionSize |
String | Optional | Partition capacity
|
blockStorageMappingList.N.order |
Integer | Optional | Created storage order
|
blockStorageMappingList.N.snapshotInstanceNo |
String | Optional | Created storage snapshot number
|
blockStorageMappingList.N.blockStorageSize |
String | Optional | Created storage size
|
blockStorageMappingList.N.blockStorageName |
String | Optional | Created storage name
|
blockStorageMappingList.N.blockStorageVolumeTypeCode |
String | Optional | Created storage volume type code
|
blockStorageMappingList.N.encrypted |
String | Optional | Created storage encryption status
|
fabricClusterPoolNo |
String | Optional | Specify the GPU Fabric cluster pool.
|
responseFormatType |
String | Optional | Format of the response data
|
When entering a request query parameter, see the following:
- When you create a server from a new server image, the available fields vary depending on the hypervisor type of the server image, as follows:
- KVM:
serverImageNo
andserverSpecCode
are used. - XEN:
serverImageNo
andserverSpecCode
orserverImageProductCode
andserverProductCode
are used. - RHV:
serverImageNo
andserverSpecCode
orserverImageProductCode
andserverProductCode
are used.
- KVM:
associateWithPublicIp
: You will be charged after you are assigned a public IP, so terminate it if you are not using it.blockDevicePartitionList.N.mountPoint
: Depending on the server specifications you're creating, partitions might not be supported.
Request example
The request example is as follows:
curl --location --request GET 'https://ncloud.apigw.ntruss.com/vserver/v2/createServerInstances
?regionCode=KR
&serverImageProductCode=SW.VSVR.OS.LNX64.UBNTU.SVR2004.B050
&vpcNo=***75
&subnetNo=***36
&serverProductCode=SVR.VSVR.STAND.C002.M008.NET.SSD.B050.G002
&feeSystemTypeCode=MTRAT
&serverCreateCount=1
&serverName=test-***
&networkInterfaceList.1.networkInterfaceOrder=0
&networkInterfaceList.1.accessControlGroupNoList.1=***43
&isProtectServerTermination=false
&loginKeyName=test-***
&associateWithPublicIp=true
&responseFormatType=json' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
createServerInstancesResponse |
Object | - | Response result
|
createServerInstancesResponse.requestId |
String | - | ID for the request
|
createServerInstancesResponse.returnCode |
String | - | Response code |
createServerInstancesResponse.returnMessage |
String | - | Response message |
Response status codes
For information about the response status codes common to all Server APIs, see Server response status codes.
Response example
The response example is as follows:
{
"createServerInstancesResponse": {
"totalRows": 1,
"serverInstanceList": [
{
"serverInstanceNo": "*****9212",
"serverName": "test-***",
"serverDescription": "",
"cpuCount": 2,
"memorySize": 8589934592,
"platformType": {
"code": "UBS64",
"codeName": "Ubuntu Server 64 Bit"
},
"loginKeyName": "test-***",
"publicIpInstanceNo": "",
"publicIp": "",
"serverInstanceStatus": {
"code": "INIT",
"codeName": "Server INIT status"
},
"serverInstanceOperation": {
"code": "NULL",
"codeName": "Server NULL OP"
},
"serverInstanceStatusName": "init",
"createDate": "2025-06-13T17:01:34+0900",
"uptime": "2025-06-13T17:01:33+0900",
"serverImageProductCode": "SW.VSVR.OS.LNX64.UBNTU.SVR2004.B050",
"serverProductCode": "SVR.VSVR.STAND.C002.M008.NET.SSD.B050.G002",
"isProtectServerTermination": false,
"zoneCode": "KR-1",
"regionCode": "KR",
"vpcNo": "",
"subnetNo": "",
"networkInterfaceNoList": [],
"initScriptNo": "",
"serverInstanceType": {
"code": "STAND",
"codeName": "Standard"
},
"baseBlockStorageDiskType": {
"code": "NET",
"codeName": "Network storage"
},
"baseBlockStorageDiskDetailType": {
"code": "SSD",
"codeName": "SSD"
},
"placementGroupNo": "",
"placementGroupName": "",
"memberServerImageInstanceNo": "",
"hypervisorType": {
"code": "XEN",
"codeName": "XEN"
},
"serverImageNo": "16187005",
"serverSpecCode": "s2-g2-s50",
"eventList": []
}
],
"requestId": "e4a3ca5e-9b81-4b3b-8011-ad0f0e2bf71a",
"returnCode": "0",
"returnMessage": "success",
}
}