setProtectServerTermination
    • PDF

    setProtectServerTermination

    • PDF

    기사 요약

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

    개요

    서버 반납 보호 여부를 설정합니다.

    요청

    요청 파라미터

    파라미터명필수 여부타입제약 사항설명
    serverInstanceNoYesString- 반납 보호 여부를 설정할 서버 인스턴스 번호
    - serverInstanceNo: getServerInstanceList 액션을 통해 획득 가능
    isProtectServerTerminationYesBoolean- 반납 보호 여부
    - Options: true | false

    응답

    응답 데이터 타입

    • ServerInstanceList 타입
    ServerInstanceList extends CommonResponse
    private Integer totalRows;
    private List serverInstanceList = new ArrayList();
    ServerInstance
    private String serverInstanceNo;
    private String serverName;
    private String serverDescription;
    private Integer cpuCount;
    private Long memorySize;
    private Long baseBlockStorageSize;
    private CommonCode platformType;
    private String loginKeyName;
    private Boolean isFeeChargingMonitoring;
    private String publicIp;
    private String privateIp;
    private String serverImageName;
    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 portForwardingPublicIp;
    private Integer portForwardingExternalPort;
    private Integer portForwardingInternalPort;
    private Zone zone;
    private Region region;
    private CommonCode baseBlockStorageDiskType;
    private CommonCode baseBlockStorageDiskDetailType;
    private CommonCode serverInstanceType
    private String userData;
    private List accessControlGroupList;
    private List instanceTagList;
    private List blockDevicePartitionList;

    예시

    요청 예시

    ncloud server setProtectServerTermination --serverInstanceNo ***1368 --isProtectServerTermination true
    

    응답 예시

    <setProtectServerTerminationResponse>
      <requestId>0cf1cb98-6fdb-4064-804d-c1a14f903d9b</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <serverInstanceList>
        <serverInstance>
          <serverInstanceNo>***1368</serverInstanceNo>
          <serverName>test-***</serverName>
          <serverDescription></serverDescription>
          <cpuCount>1</cpuCount>
          <memorySize>1073741824</memorySize>
          <baseBlockStorageSize>53687091200</baseBlockStorageSize>
          <platformType>
            <code>LNX32</code>
            <codeName>Linux 32 Bit</codeName>
          </platformType>
          <loginKeyName>juhoon-kim</loginKeyName>
          <isFeeChargingMonitoring>false</isFeeChargingMonitoring>
          <publicIp></publicIp>
          <privateIp>***.***.19.248</privateIp>
          <serverImageName>centos-6.3-32</serverImageName>
          <serverInstanceStatus>
            <code>NSTOP</code>
            <codeName>Server normal stopped state</codeName>
          </serverInstanceStatus>
          <serverInstanceOperation>
            <code>NULL</code>
            <codeName>Server NULL OP</codeName>
          </serverInstanceOperation>
          <serverInstanceStatusName>stopped</serverInstanceStatusName>
          <createDate>2018-11-23T17:21:05+0900</createDate>
          <uptime>2018-11-23T17:36:40+0900</uptime>
          <serverImageProductCode>SPSW0LINUX000032</serverImageProductCode>
          <serverProductCode>SPSVRSTAND000056</serverProductCode>
          <isProtectServerTermination>true</isProtectServerTermination>
          <portForwardingPublicIp>***.***.51.90</portForwardingPublicIp>
          <zone>
            <zoneNo>2</zoneNo>
            <zoneName>KR-1</zoneName>
            <zoneCode>KR-1</zoneCode>
            <zoneDescription>KR-1 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>MICRO</code>
            <codeName>Micro Server</codeName>
          </serverInstanceType>
          <userData></userData>
          <initScriptNo></initScriptNo>
          <accessControlGroupList>
            <accessControlGroup>
              <accessControlGroupConfigurationNo>***9995</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>
    </setProtectServerTerminationResponse>
    

    이 문서가 도움이 되었습니까?

    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.