changeServerInstanceSpec
- 인쇄
- PDF
changeServerInstanceSpec
- 인쇄
- PDF
기사 요약
이 요약이 도움이 되었나요?
의견을 보내 주셔서 감사합니다.
개요
서버 인스턴스(VM)스펙을 변경합니다.
요청
요청 파라미터
파라미터 명 | 필수 여부 | 타입 | 제약사항 | 설명 |
---|---|---|---|---|
serverInstanceNo | Yes | String | - 스펙을 변경할 서버 인스턴스 번호 운영중 상태인 서버는 변경 불가 serverInstanceNo는 getServerInstanceList 액션을 통해 획득 가능 | |
serverProductCode | Yes | String | Min : 1, Max : 20 | - 서버스펙에 대한 상품코드 serverProductCode는 getServerProductList 액션을 통해 획득 가능 |
serverSpecCode | Conditional | String | - 서버 스펙 코드 변경할 서버의 스펙 결정 서버 상품 중 동일한 상품 유형(productType), 동일한 디스크 상세 유형(diskDetailType[HDD, SSD]) 내에서만 변경 가능 serverSpecCode는 getServerSpecList 액션을 통해 획득 가능 serverProductCode와 serverSpecCode는 둘 중 하나의 값은 필수. |
응답
응답 바디
예시
요청 예시
GET {SERVER_API_URL}/changeServerInstanceSpec
?serverInstanceNo=1088217
&serverProductCode=SPSVRSTAND000005
응답 예시
<changeServerInstanceSpecResponse>
<requestId>b059fc08-fb8d-40a0-b28b-b0093549f96f</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>1</totalRows>
<serverInstanceList>
<serverInstance>
<serverInstanceNo>1088217</serverInstanceNo>
<serverName>s167545541a3</serverName>
<serverDescription></serverDescription>
<cpuCount>2</cpuCount>
<memorySize>4294967296</memorySize>
<baseBlockStorageSize>53687091200</baseBlockStorageSize>
<platformType>
<code>LNX32</code>
<codeName>Linux 32 Bit</codeName>
</platformType>
<loginKeyName>penguin</loginKeyName>
<isFeeChargingMonitoring>false</isFeeChargingMonitoring>
<publicIp></publicIp>
<privateIp>10.41.83.168</privateIp>
<serverImageName>centos-6.3-32</serverImageName>
<serverInstanceStatus>
<code>NSTOP</code>
<codeName>Server normal stopped state</codeName>
</serverInstanceStatus>
<serverInstanceOperation>
<code>CHNG</code>
<codeName>Server SPEC CHANGE OP</codeName>
</serverInstanceOperation>
<serverInstanceStatusName>changingSpec</serverInstanceStatusName>
<createDate>2018-11-27T17:42:13+0900</createDate>
<uptime>2018-11-27T17:46:02+0900</uptime>
<serverImageProductCode>SPSW0LINUX000032</serverImageProductCode>
<serverProductCode>SPSVRSTAND000004</serverProductCode>
<isProtectServerTermination>false</isProtectServerTermination>
<portForwardingPublicIp>106.10.51.90</portForwardingPublicIp>
<zone>
<zoneNo>3</zoneNo>
<zoneName>KR-2</zoneName>
<zoneCode>KR-2</zoneCode>
<zoneDescription>평촌 zone</zoneDescription>
<regionNo>1</regionNo>
</zone>
<region>
<regionNo>1</regionNo>
<regionCode>KR</regionCode>
<regionName>Korea</regionName>
</region>
<baseBlockStorageDiskType>
<code>NET</code>
<codeName>Network Storage</codeName>
</baseBlockStorageDiskType>
<baseBlockStorageDiskDetailType>
<code>HDD</code>
<codeName>HDD</codeName>
</baseBlockStorageDiskDetailType>
<serverInstanceType>
<code>STAND</code>
<codeName>Standard</codeName>
</serverInstanceType>
<userData></userData>
<initScriptNo></initScriptNo>
<accessControlGroupList>
<accessControlGroup>
<accessControlGroupConfigurationNo>39995</accessControlGroupConfigurationNo>
<accessControlGroupName>ncloud-default-acg</accessControlGroupName>
<accessControlGroupDescription>Default AccessControlGroup</accessControlGroupDescription>
<isDefault>true</isDefault>
<createDate>2018-04-09T11:12:54+0900</createDate>
</accessControlGroup>
</accessControlGroupList>
<instanceTagList/>
</serverInstance>
</serverInstanceList>
</changeServerInstanceSpecResponse>
에러 코드
아래 에러 코드는 이 액션(Action)에서 특징적으로 발생하는 에러입니다. 공통적으로 발생하는 에러에 대한 상세한 설명은 NAVER Cloud Platform API를 참고해주세요
HTTP Response Code | 리턴 코드 | 리턴 메시지 |
---|---|---|
400 | 10500 | Unable to use server specification change function. You may freely change server specification on paid servers. |
400 | 10501 | After deleting additional storage, please try again. Additional storage must be deleted by customer. |
400 | 10502 | Selected server does not allow spec change. |
400 | 10503 | You may not change to spec of same level. |
400 | 10504 | You may not change the spec to a different disk type. |
400 | 24109 | The input parameter instance number is invalid. |
400 | 24120 | The input parameter server instance number is invalid. |
400 | 25013 | Unable to change server specification since (other) user is either operating the target server or due to an error in target server. Please check the server status. |
400 | 25014 | Unable to control the server since (other) user is currently operating storage allocated to the server. |
400 | 25018 | Operation is currently unavailable since (other) user is either operating server or creating server image of the server. |
이 문서가 도움이 되었습니까?