createBlockStorageInstance
    • PDF

    createBlockStorageInstance

    • PDF

    Article Summary

    概要

    ブロックストレージのインスタンスを作成します。

    リクエスト

    リクエストパラメータ

    パラメータ名必須タイプ制約事項説明
    blockStorageNameNoStringMin : 3, Max : 30作成するブロックストレージ名
    Default : NAVER クラウドプラットフォームで基本値に設定します。
    blockStorageSizeYesLongMin : 10, Max : 2000作成するブロックストレージサイズ
    必須項目であり、10GB単位で入力可能、最大2000GBまでに入力できます。
    blockStorageDescriptionNoStringMin : 10, Max : 1000作成するブロックストレージに対する説明
    serverInstanceNoYesStringAttachするサーバインスタンス番号
    getServerInstanceListアクションを通じてサーバインスタンス番号を取得できます。
    diskDetailTypeCodeYesStringディスクタイプ詳細コード
    Options : HDD | SSD
    Default : HDD

    レスポンス

    レスポンスボディ

    例示

    リクエスト例示

    GET {SERVER_API_URL}/createBlockStorageInstance
    ?blockStorageSize=10
    &serverInstanceNo=1021003
    &diskDetailTypeCode=HDD
    

    レスポンス例示

    <createBlockStorageInstanceResponse>
      <requestId>1c844a3f-6149-4223-bcfc-b2fc6294dd17</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <blockStorageInstanceList>
        <blockStorageInstance>
          <blockStorageInstanceNo>1089090</blockStorageInstanceNo>
          <serverInstanceNo>1021003</serverInstanceNo>
          <serverName>s1669aa4e78c</serverName>
          <blockStorageType>
            <code>SVRBS</code>
            <codeName>Server BS</codeName>
          </blockStorageType>
          <blockStorageName>bst167588711f2</blockStorageName>
          <blockStorageSize>10737418240</blockStorageSize>
          <deviceName></deviceName>
          <blockStorageProductCode>SPBSTBSTAD000002</blockStorageProductCode>
          <blockStorageInstanceStatus>
            <code>INIT</code>
            <codeName>Block storage INIT state</codeName>
          </blockStorageInstanceStatus>
          <blockStorageInstanceOperation>
            <code>NULL</code>
            <codeName>Block Storage NULLOP</codeName>
          </blockStorageInstanceOperation>
          <blockStorageInstanceStatusName>initialized</blockStorageInstanceStatusName>
          <createDate>2018-11-28T13:15:06+0900</createDate>
          <blockStorageInstanceDescription></blockStorageInstanceDescription>
          <diskType>
            <code>NET</code>
            <codeName>Network Storage</codeName>
          </diskType>
          <diskDetailType>
            <code>HDD</code>
            <codeName>HDD</codeName>
          </diskDetailType>
          <zone>
            <zoneNo>3</zoneNo>
            <zoneName>KR-2</zoneName>
            <zoneCode>KR-2</zoneCode>
            <zoneDescription>平村zone</zoneDescription>
            <regionNo>1</regionNo>
          </zone>
        </blockStorageInstance>
      </blockStorageInstanceList>
    </createBlockStorageInstanceResponse>
    

    エラーコード

    以下のエラーコードは、このアクション(Action)で特徴的に発生するエラーです。共通的に発生するエラーに対する詳細な説明は NAVER Cloud Platform APIをご参考ください。

    HTTP Response Codeリターンコードリターンメッセージ
    40010300Instance name is already in use. please use other name.
    40010708Server shall not be beyond {0}G2.
    40010713Not found contract information. Please check your input parameter.
    40010723Additional storage is not available for Micro Server.
    40023001Unable to allocate more than {0} storages (included default storage) to the corresponding Linux server.
    40023002Unable to allocate more than {0} storages (included default storage) to the corresponding Windows server.
    40024100Input parameter value is invalid. The value of the storage size must be a integer greater than zero.
    40024101Input parameter value is invalid. The minimum value of the storage size is 10 GB and the maximum, 1 T2.
    40024102Input parameter value is invalid. The value of storage size must be a multiple of 10 G2.
    40024103Input parameter value is invalid. The minimum length of the name is 3 bytes and the maximum, 30 bytes.
    40024105Input parameter value is invalid. The name must contain only lower case letters, digits, and hyphen('-'); it must start with a letter and end with a letter or digit.
    40024109The input parameter instance number is invalid.
    40024120The input parameter server instance number is invalid.
    40024300The length constraints of the parameter description (memo) were violated. The minimum length is 0 byte, the maximum, 1,000 bytes.
    40025005Unable to perform allocation command since (other) user is either operating the target server which is to be allocated with storage or an error in target server.

    この記事は役に立ちましたか?

    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.