setProtectServerTermination
    • PDF

    setProtectServerTermination

    • PDF

    Article Summary

    Can be used in a VPC environment.

    Overview

    Set the server termination protection status.

    Request

    Request parameter

    Parameter nameRequirement statusTypeRestrictionsDescription
    regionCodeNoString- Region code
    You can decide the region of the server instance to set the termination protection status for.
    You can obtain regionCode through the getRegionList action.
    Default: Selects the first region of the getRegionList search results.
    serverInstanceNoYesString- The server instance number for which the termination protection status will be set
    You can obtain serverInstanceNo through the getServerInstanceList action.
    isProtectServerTerminationYesBoolean- Termination protection status
    Options: true | false
    responseFormatTypeNoString- Format type of the response result
    Options: xml | json
    Default: xml

    Response

    Response body

    Examples

    Request examples

    GET {API_URL}/setProtectServerTermination
    ?regionCode=KR
    &serverInstanceNo=***4299
    &isProtectServerTermination=true
    

    Response examples

    <setProtectServerTerminationResponse>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <serverInstanceList>
        <serverInstance>
          <serverInstanceNo>***4299</serverInstanceNo>
          <serverName>test-***</serverName>
          <serverDescription></serverDescription>
          <cpuCount>2</cpuCount>
          <memorySize>4294967296</memorySize>
          <platformType>
            <code>LNX64</code>
            <codeName>Linux 64 Bit</codeName>
          </platformType>
          <loginKeyName>test-***</loginKeyName>
          <publicIpInstanceNo>***7551</publicIpInstanceNo>
          <publicIp>***.***.111.215</publicIp>
          <serverInstanceStatus>
            <code>RUN</code>
            <codeName>Server run state</codeName>
          </serverInstanceStatus>
          <serverInstanceOperation>
            <code>NULL</code>
            <codeName>Server NULL OP</codeName>
          </serverInstanceOperation>
          <serverInstanceStatusName>running</serverInstanceStatusName>
          <createDate>2020-08-19T15:05:07+0900</createDate>
          <uptime>2020-08-19T15:08:09+0900</uptime>
          <serverImageProductCode>SW.VSVR.OS.LNX64.CNTOS.0703.B050</serverImageProductCode>
          <serverProductCode>SVR.VSVR.STAND.C002.M004.NET.SSD.B050.G001</serverProductCode>
          <isProtectServerTermination>true</isProtectServerTermination>
          <zoneCode>KR-1</zoneCode>
          <regionCode>KR</regionCode>
          <vpcNo>***04</vpcNo>
          <subnetNo>***43</subnetNo>
          <networkInterfaceNoList>
            <networkInterfaceNo>***87</networkInterfaceNo>
          </networkInterfaceNoList>
          <initScriptNo></initScriptNo>
          <serverInstanceType>
            <code>STAND</code>
            <codeName>Standard</codeName>
          </serverInstanceType>
          <baseBlockStorageDiskType>
            <code>NET</code>
            <codeName>Network Storage</codeName>
          </baseBlockStorageDiskType>
          <baseBlockStorageDiskDetailType>
            <code>SSD</code>
            <codeName>SSD</codeName>
          </baseBlockStorageDiskDetailType>
          <placementGroupNo>***61</placementGroupNo>
          <placementGroupName>test-***</placementGroupName>
        </serverInstance>
      </serverInstanceList>
    </setProtectServerTerminationResponse>
    

    Was this article helpful?

    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.