getServerTypeList
- Print
- PDF
getServerTypeList
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in VPC
Views the server types that can be generated when creating Notebooks.
Requests
Request Parameters
Parameter name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
typeCode | YES | String | - typeCode can be obtained through Notebooks’ getTypeList API |
Request headers
Request bodies
- JSON
{ "typeCode": "string" }
- XML
<?xml version="1.0" encoding="UTF-8"?> <GetServerTypeListRequest> <typeCode>string</typeCode> </GetServerTypeListRequest>
Errors
HTTP Status | Description |
---|---|
400 | invalid request parameters |
403 | not allowed to access |
404 | no such element |
500 | unexpected error |
Examples
Request Examples
POST https://df.apigw.ntruss.com/api/v2/notebooks/getServerTypeList
HOST: df.apigw.ntruss.com
Content-Type: application/json
x-ncp-apigw-signature-v2: Azm1WBMWDgEONUCUbsVkB4tRIpc053uOHU8bitbQRtU=
x-ncp-apigw-timestamp: 1658898041497
x-ncp-iam-access-key: F5O55GOTR4CqYJqPDnCu
{
"typeCode": "SW.DFRNT.OS.LNX64.CNTOS.0708.B050"
}
curl -X POST "https://df.apigw.ntruss.com/api/v2/notebooks/getServerTypeList" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-H "x-ncp-iam-access-key: F5O55GOTR4CqYJqPDnCu" \
-H "x-ncp-apigw-timestamp: 1684750476552" \
-H "x-ncp-apigw-signature-v2: sxy9VxUP3suDHqPadWpwk9NeQiaD1vGRvSV7MfXBXZQ=" \
-d "{ \"typeCode\": \"SW.DFRNT.OS.LNX64.CNTOS.0708.B050\"}"
Response examples
HTTP
HTTP Status Description 200 OK BASH
{ "success": true, "contents": [ { "serverTypeCode": "SVR.DFRNT.STAND.C004.M016.HDD.B050.G002", "serverDesc": "vCPU 4EA, Memory 16GB, [HDD]Disk 50GB" }, { "serverTypeCode": "SVR.DFRNT.HIMEM.C004.M032.HDD.B050.G002", "serverDesc": "vCPU 4EA, Memory 32GB, [HDD]Disk 50GB" }, { "serverTypeCode": "SVR.DFRNT.HICPU.C008.M016.HDD.B050.G002", "serverDesc": "vCPU 8EA, Memory 16GB, [HDD]Disk 50GB" }, { "serverTypeCode": "SVR.DFRNT.STAND.C008.M032.HDD.B050.G002", "serverDesc": "vCPU 8EA, Memory 32GB, [HDD]Disk 50GB" }, { "serverTypeCode": "SVR.DFRNT.HIMEM.C008.M064.HDD.B050.G002", "serverDesc": "vCPU 8EA, Memory 64GB, [HDD]Disk 50GB" } ] }
Was this article helpful?