changeServerInstanceName

Prev Next
This content is currently unavailable in Ja - 日本語. You are viewing the default (Korean) version.

VPC 환경에서 이용 가능합니다.

개요

서버 인스턴스의 이름을 변경합니다. 호스트 이름은 변경되지 않습니다.

요청

요청 파라미터

파라미터명 필수 여부 타입 제약 사항 설명
regionCode No String - 리전 코드
regionCode는 getRegionList 액션을 통해 획득 가능
Default : getRegionList 조회 결과의 첫 번째 리전을 선택
serverInstanceNo Yes String - 서버 인스턴스 번호
serverInstanceNo는 getServerInstanceList 액션을 통해 획득 가능
serverName Yes String - 변경할 서버 이름
영문 소문자, 숫자, 특수 문자 '-'를 조합하여 3~30자 이내로 입력
문자열의 시작은 영문 소문자, 마지막은 영문 소문자 또는 숫자로 구성
output No String 응답 결과의 포맷 타입
  • Options : xml | json
  • Default : json

응답

응답 데이터 타입

  • ServerInstanceList 타입
ServerInstanceList extends CommonResponse
private Integer totalRows;
private List<ServerInstance> serverInstanceList = new ArrayList<>();
ServerInstance
private String serverInstanceNo;
private String serverName;
private String serverDescription;
private Integer cpuCount;
private Long memorySize;
private CommonCode platformType;
private String loginKeyName;
private String publicIpInstanceNo;
private String publicIp;
private CommonCode serverInstanceStatus;
private CommonCode serverInstanceOperation;
private String serverInstanceStatusName;
private Date createDate;
private Date uptime;
private String serverImageProductCode;
private String serverProductCode;
private Boolean isProtectServerTermination;
private String zoneCode;
private String regionCode;
private String vpcNo;
private String subnetNo;
private NetworkInterfaceNoList networkInterfaceNoList;
private String initScriptNo;
private CommonCode serverInstanceType;
private CommonCode baseBlockStorageDiskType;
private CommonCode baseBlockStorageDiskDetailType;
private String placementGroupNo;
private String placementGroupName;
private String memberServerImageInstanceNo;

예시

요청 예시

ncloud vserver changeServerInstanceName --regionCode KR --serverInstanceNo ***4299 --serverName ncp-test-****

응답 예시

{
  "changeServerInstanceNameResponse": {
    "totalRows": 1,
    "serverInstanceList": [
      {
        "serverInstanceNo": "*****8773",
        "serverName": "test-***",
        "cpuCount": 2,
        "memorySize": 4294967296,
        "platformType": {
          "code": "UBD64",
          "codeName": "Ubuntu Desktop 64 Bit"
        },
        "loginKeyName": "test-***",
        "publicIpInstanceNo": "*****8824",
        "publicIp": "211.188.***.***",
        "serverInstanceStatus": {
          "code": "RUN",
          "codeName": "서버 RUN 상태"
        },
        "serverInstanceOperation": {
          "code": "NULL",
          "codeName": "서버 NULL OP"
        },
        "serverInstanceStatusName": "running",
        "createDate": "2025-06-11T17:00:14+0900",
        "uptime": "2025-06-19T16:49:07+0900",
        "serverImageProductCode": "SW.VSVR.OS.LNX64.UBNTU.SVR24.G003",
        "serverProductCode": "SVR.VSVR.CPU.C002.M004.G003",
        "isProtectServerTermination": true,
        "zoneCode": "KR-1",
        "regionCode": "KR",
        "vpcNo": "***75",
        "subnetNo": "****36",
        "networkInterfaceNoList": [
          "*****30"
        ],
        "serverInstanceType": {
          "code": "CPU",
          "codeName": "CPU-Intensive"
        },
        "baseBlockStorageDiskType": {
          "code": "NET",
          "codeName": "네트웍 스토리지"
        },
        "baseBlockStorageDiskDetailType": {
          "code": "SSD",
          "codeName": "SSD"
        },
        "hypervisorType": {
          "code": "KVM",
          "codeName": "KVM"
        },
        "serverImageNo": "104630229",
        "serverSpecCode": "ci2-g3"
      }
    ],
    "requestId": "5efaee89-c118-4797-b759-b99bb117f245",
    "returnCode": "0",
    "returnMessage": "success"
  }
}