Available in VPC
Get the list of server specifications.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | POST | /vserver/v2/getServerSpecList |
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
|
serverImageNo |
String | Optional | Filter by the server image number.
|
serverSpecCodeList.N |
Array | Optional | Server specification code list
|
hypervisorTypeCodeList.N |
Array | Optional | Hypervisor type code list
|
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/getServerSpecList
?regionCode=KR
&serverImageNo=***8473
&serverSpecCodeList.1=c2-g3
&hypervisorTypeCodeList.1=KVM
&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 |
---|---|---|---|
getServerSpecListResponse |
Object | - | Response result
|
getServerSpecListResponse.requestId |
String | - | ID for the request
|
getServerSpecListResponse.returnCode |
String | - | Response code |
getServerSpecListResponse.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:
{
"getServerSpecListResponse": {
"totalRows": 1,
"serverSpecList": [
{
"serverSpecNo": 821,
"serverSpecCode": "c2-g3",
"hypervisorType": {
"code": "KVM",
"codeName": "KVM"
},
"generationCode": "G3",
"cpuArchitectureType": {
"code": "X86_64",
"codeName": "x86 64bit"
},
"cpuCount": 2,
"memorySize": 4294967296,
"blockStorageMaxCount": 20,
"blockStorageMaxIops": 5250,
"blockStorageMaxThroughput": 81,
"networkPerformance": 1000000000,
"networkInterfaceMaxCount": 3,
"serverSpecDescription": "vCPU 2EA, Memory 4GB",
"serverProductCode": "SVR.VSVR.HICPU.C002.M004.G003"
}
],
"requestId": "466216b1-****-****-****-d1001e54a12d",
"returnCode": "0",
"returnMessage": "success"
}
}