attachBlockStorageInstance
    • PDF

    attachBlockStorageInstance

    • PDF

    기사 요약

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

    개요

    블록 스토리지 인스턴스를 서버 인스턴스에 할당합니다.

    요청

    요청 파라미터

    파라미터명필수 여부타입제약 사항설명
    regionCodeNoString- 리전 코드
    서버 인스턴스에 할당할 블록 스토리지 인스턴스의 리전(Region) 결정 가능
    regionCode는 getRegionList 액션을 통해 획득 가능
    Default : getRegionList 조회 결과의 첫 번째 리전을 선택
    blockStorageInstanceNoYesString- 블록 스토리지 인스턴스 번호
    서버 인스턴스에 할당할 블록 스토리지 인스턴스 번호를 결정함
    blockStorageInstanceNo는 getBlockStorageInstanceList 액션을 통해 획득 가능
    serverInstanceNoYesString- 서버 인스턴스 번호
    블록 스토리지 인스턴스가 할당될 서버 인스턴스를 결정함
    serverInstanceNo는 getServerInstanceList 액션을 통해 획득 가능
    responseFormatTypeNoString- 응답 결과의 포맷 타입
    Options : xml | json
    Default : xml

    응답

    응답 데이터 타입

    • BlockStorageInstanceList 타입
    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;

    예시

    요청 예시

    ncloud vserver attachBlockStorageInstance --regionCode KR --blockStorageInstanceNo ***7746 --serverInstanceNo ***4299
    

    응답 예시

    <attachBlockStorageInstanceResponse>
      <requestId></requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <blockStorageInstanceList>
        <blockStorageInstance>
          <blockStorageInstanceNo>***7746</blockStorageInstanceNo>
          <serverInstanceNo></serverInstanceNo>
          <blockStorageName>test-***</blockStorageName>
          <blockStorageType>
            <code>SVRBS</code>
            <codeName>Server BS</codeName>
          </blockStorageType>
          <blockStorageSize>53687091200</blockStorageSize>
          <deviceName></deviceName>
          <blockStorageProductCode>SPBSTBSTAD000006</blockStorageProductCode>
          <blockStorageInstanceStatus>
            <code>CREAT</code>
            <codeName>Block storage CREATED state</codeName>
          </blockStorageInstanceStatus>
          <blockStorageInstanceOperation>
            <code>ATTAC</code>
            <codeName>Block Storage  STOP OP</codeName>
          </blockStorageInstanceOperation>
          <blockStorageInstanceStatusName>attaching</blockStorageInstanceStatusName>
          <createDate>2020-08-25T09:18:34+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>false</isReturnProtection>
        </blockStorageInstance>
      </blockStorageInstanceList>
    </attachBlockStorageInstanceResponse>
    

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

    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.