Available in VPC
Get the list of server specification products provided by NAVER Cloud Platform.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | POST | /vserver/v2/getServerProductList |
Note
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
|
zoneCode |
String | Optional | Zone code
|
serverImageProductCode |
String | Conditional | Server image product code
|
exclusionProductCode |
String | Optional | Product code to exclude
|
productCode |
String | Optional | Product code to query
|
generationCode |
String | Optional | Generation code.
|
memberServerImageInstanceNo |
String | Conditional | My server image instance number
|
responseFormatType |
String | Optional | Format of the response data
|
Request example
The request example is as follows:
curl --location --request GET 'https://ncloud.apigw.ntruss.com/vserver/v2/getServerProductList
?regionCode=KR
&zoneCode=KR-1
&serverImageProductCode=SW.VSVR.OS.LNX64.UBNTU.SVR2004.B050
&exclusionProductCode=SVR.VSVR.STAND.C002.M008.NET.HDD.B050.G002
&productCode=SVR.VSVR.STAND.C002.M008.NET.SSD.B050.G002
&generationCode=G2
&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 |
---|---|---|---|
getServerProductListResponse |
Object | - | Response result
|
getServerProductListResponse.requestId |
String | - | ID for the request
|
getServerProductListResponse.returnCode |
String | - | Response code |
getServerProductListResponse.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:
{
"getServerProductListResponse": {
"totalRows": 1,
"productList": [
{
"productCode": "SVR.VSVR.STAND.C002.M008.NET.SSD.B050.G002",
"productName": "vCPU 2EA, Memory 8GB, [SSD]Disk 50GB",
"productType": {
"code": "STAND",
"codeName": "Standard"
},
"productDescription": "vCPU 2EA, Memory 8GB, [SSD]Disk 50GB",
"infraResourceType": {
"code": "VSVR",
"codeName": "Server (VPC)"
},
"cpuCount": 2,
"memorySize": 8589934592,
"baseBlockStorageSize": 53687091200,
"osInformation": "",
"diskType": {
"code": "NET",
"codeName": "Network storage"
},
"dbKindCode": "",
"addBlockStorageSize": 0,
"generationCode": "G2"
}
],
"requestId": "dc99df0b-****-****-****-4491d7d03fb8",
"returnCode": "0",
"returnMessage": "success"
}
}