setBlockStorageReturnProtection
    • PDF

    setBlockStorageReturnProtection

    • PDF

    Article summary

    Can be used in a VPC environment.

    Overview

    Sets block storage termination protection status.

    Request

    Request parameter

    Parameter nameRequirement statusTypeRestrictionsDescription
    regionCodeNoString- Region code
    Determines the region of the block storage instance to set the termination protection status for.
    regionCode can be obtained through the getRegionList action.
    Default: Selects the first region of the getRegionList search results.
    blockStorageInstanceNoYesString- Instance number of block storage for which the termination protection status will be set
    blockStorageInstanceNo can be obtained through the getBlockStorageInstanceList action.
    isReturnProtectionYesBoolean- Termination protection status
    Options : true | false

    Response

    Response data type

    • BlockStorageInstanceList type
    BlockStorageInstanceList extends CommonResponse
    private Integer totalRows;
    private List<BlockStorageInstance> blockStorageInstanceList = new ArrayList<>();
    BlockStorageInstance
    private String blockStorageInstanceNo;
    private String serverInstanceNo;
    private String blockStorageName;
    private CommonCode blockStorageType;
    private Long blockStorageSize;
    private String deviceName;
    private String blockStorageProductCode;
    private CommonCode blockStorageInstanceStatus;
    private CommonCode blockStorageInstanceOperation;
    private String blockStorageInstanceStatusName;
    private Date createDate;
    private String blockStorageDescription;
    private CommonCode blockStorageDiskType;
    private CommonCode blockStorageDiskDetailType;
    private Integer maxIopsThroughput;
    private Boolean isEncryptedVolume;
    private String zoneCode;
    private String regionCode;
    private Boolean isReturnProtection;

    Examples

    Request examples

    ncloud vserver setBlockStorageReturnProtection --regionCode KR --blockStorageInstanceNo ***7746 --isReturnProtection true
    

    Response examples

    <setBlockStorageReturnProtectionResponse>
      <requestId>17b3bcf6-8e52-47e5-b822-1352ec765a97</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <blockStorageInstanceList>
        <blockStorageInstance>
          <blockStorageInstanceNo>***7746</blockStorageInstanceNo>
          <serverInstanceNo>***4299</serverInstanceNo>
          <blockStorageName>test-***</blockStorageName>
          <blockStorageType>
            <code>SVRBS</code>
            <codeName>Server BS</codeName>
          </blockStorageType>
          <blockStorageSize>64424509440</blockStorageSize>
          <deviceName>/dev/xvdb</deviceName>
          <blockStorageProductCode>SPBSTBSTAD000006</blockStorageProductCode>
          <blockStorageInstanceStatus>
            <code>ATTAC</code>
            <codeName>Block storage ATTACHED state</codeName>
          </blockStorageInstanceStatus>
          <blockStorageInstanceOperation>
            <code>NULL</code>
            <codeName>Block Storage NULL OP</codeName>
          </blockStorageInstanceOperation>
          <blockStorageInstanceStatusName>attached</blockStorageInstanceStatusName>
          <createDate>2020-08-25T09:38:49+0900</createDate>
          <blockStorageDescription></blockStorageDescription>
          <blockStorageDiskType>
            <code>NET</code>
            <codeName>Network Storage</codeName>
          </blockStorageDiskType>
          <blockStorageDiskDetailType>
            <code>SSD</code>
            <codeName>SSD</codeName>
          </blockStorageDiskDetailType>
          <maxIopsThroughput>4000</maxIopsThroughput>
          <isEncryptedVolume>false</isEncryptedVolume>
          <zoneCode>KR-1</zoneCode>
          <regionCode>KR</regionCode>
          <isReturnProtection>true</isReturnProtection>
        </blockStorageInstance>
      </blockStorageInstanceList>
    </setBlockStorageReturnProtectionResponse>
    

    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.