terminateServerInstances
    • PDF

    terminateServerInstances

    • PDF

    기사 요약

    개요

    서버 인스턴스 반납

    설명

    서버 인스턴스(VM)를 반납(Terminate) 합니다.

    요청 파라미터

    파라미터 명필수 여부타입제약사항설명
    serverInstanceNoListYesList<String>중복 불가반납할 서버 인스턴스 번호 리스트

    응답 데이터 타입

    • 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 String initScriptNo;
    private List accessControlGroupList;
    private List instanceTagList;
    private List blockDevicePartitionList;

    예시

    호출

    ncloud server terminateServerInstances --serverInstanceNoList 397325
    

    응답

    {
      "terminateServerInstancesResponse": {
        "requestId": "bfb3d716-253a-4fbb-9e7d-cc8da51e6c9f",
        "returnCode": "0",
        "returnMessage": "success",
        "totalRows": 1,
        "serverInstanceList": [
          {
            "serverInstanceNo": "397325",
            "serverName": "test-mk001",
            "serverDescription": "test",
            "cpuCount": 2,
            "memorySize": 4294967296,
            "baseBlockStorageSize": 53687091200,
            "platformType": {
              "code": "LNX64",
              "codeName": "Linux 64 Bit"
            },
            "loginKeyName": "ysw",
            "isFeeChargingMonitoring": false,
            "publicIp": "",
            "privateIp": "10.113.245.174",
            "serverImageName": "centos-7.3-64",
            "serverInstanceStatus": {
              "code": "NSTOP",
              "codeName": "Server normal stopped state"
            },
            "serverInstanceOperation": {
              "code": "TERMT",
              "codeName": "Server TERMINATE OP"
            },
            "serverInstanceStatusName": "terminating",
            "createDate": "2018-02-23T14:37:31+0900",
            "uptime": "2018-02-23T14:40:34+0900",
            "serverImageProductCode": "SPSW0LINUX000046",
            "serverProductCode": "SPSVRSSD00000003",
            "isProtectServerTermination": false,
            "portForwardingPublicIp": "192.168.120.111",
            "zone": {
              "zoneNo": "2",
              "zoneName": "KR-1",
              "zoneCode": "KR-1",
              "zoneDescription": "KR-1 zone",
              "regionNo": "1"
            },
            "region": {
              "regionNo": "1",
              "regionCode": "KR",
              "regionName": "Korea"
            },
            "baseBlockStorageDiskType": {
              "code": "NET",
              "codeName": "Network Storage"
            },
            "baseBlockStroageDiskDetailType": {
              "code": "SSD",
              "codeName": "SSD"
            },
            "serverInstanceType": {
              "code": "STAND",
              "codeName": "Standard"
            },
            "userData": "",
            "initScriptNo": "",
            "accessControlGroupList": [
              {
                "accessControlGroupConfigurationNo": "1038",
                "accessControlGroupName": "ncloud-default-acg",
                "accessControlGroupDescription": "Default AccessControlGroup",
                "isDefault": true,
                "createDate": "2013-12-03T10:37:39+0900"
              }
            ],
            "instanceTagList": []
          }
        ]
      }
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <terminateServerInstancesResponse>
      <requestId>bfb3d716-253a-4fbb-9e7d-cc8da51e6c9f</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <serverInstanceList>
        <serverInstanceNo>397325</serverInstanceNo>
        <serverName>test-mk001</serverName>
        <serverDescription>test</serverDescription>
        <cpuCount>2</cpuCount>
        <memorySize>4294967296</memorySize>
        <baseBlockStorageSize>53687091200</baseBlockStorageSize>
        <platformType>
          <code>LNX64</code>
          <codeName>Linux 64 Bit</codeName>
        </platformType>
        <loginKeyName>ysw</loginKeyName>
        <isFeeChargingMonitoring>false</isFeeChargingMonitoring>
        <publicIp></publicIp>
        <privateIp>10.113.245.174</privateIp>
        <serverImageName>centos-7.3-64</serverImageName>
        <serverInstanceStatus>
          <code>NSTOP</code>
          <codeName>Server normal stopped state</codeName>
        </serverInstanceStatus>
        <serverInstanceOperation>
          <code>TERMT</code>
          <codeName>Server TERMINATE OP</codeName>
        </serverInstanceOperation>
        <serverInstanceStatusName>terminating</serverInstanceStatusName>
        <createDate>2018-02-23T14:37:31+0900</createDate>
        <uptime>2018-02-23T14:40:34+0900</uptime>
        <serverImageProductCode>SPSW0LINUX000046</serverImageProductCode>
        <serverProductCode>SPSVRSSD00000003</serverProductCode>
        <isProtectServerTermination>false</isProtectServerTermination>
        <portForwardingPublicIp>192.168.120.111</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>
        <baseBlockStroageDiskDetailType>
          <code>SSD</code>
          <codeName>SSD</codeName>
        </baseBlockStroageDiskDetailType>
        <serverInstanceType>
          <code>STAND</code>
          <codeName>Standard</codeName>
        </serverInstanceType>
        <userData></userData>
        <initScriptNo></initScriptNo>
        <accessControlGroupList>
          <accessControlGroupConfigurationNo>1038</accessControlGroupConfigurationNo>
          <accessControlGroupName>ncloud-default-acg</accessControlGroupName>
          <accessControlGroupDescription>Default AccessControlGroup</accessControlGroupDescription>
          <isDefault>true</isDefault>
          <createDate>2013-12-03T10:37:39+0900</createDate>
        </accessControlGroupList>
        <instanceTagList/>
      </serverInstanceList>
    </terminateServerInstancesResponse>
    

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

    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.