getServerTypeList
    • PDF

    getServerTypeList

    • PDF

    記事の要約

    VPC環境で利用できます。

    ノートブック作成時に作成可能なサーバタイプを確認します。

    リクエスト

    リクエストパラメータ

    パラメータ名要否タイプ制約事項説明
    typeCodeYESString- typeCodeは Notebooksの getTypeList APIを通じて取得可能

    リクエストヘッダ

    共通ガイド参照

    リクエストボディ

    • JSON
        {
        "typeCode": "string"
        }
      
    • XML
        <?xml version="1.0" encoding="UTF-8"?>
        <GetServerTypeListRequest>
            <typeCode>string</typeCode>
        </GetServerTypeListRequest>
      

    エラーコード

    HTTP StatusDescription
    400invalid request parameters
    403not allowed to access
    404no such element
    500unexpected error

    リクエスト例

    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\"}"
    

    レスポンス例

    • HTTP

      HTTP StatusDescription
      200OK
    • 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"
              }
          ]
      }
      

    この記事は役に立ちましたか?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.