本文へジャンプします。

【重要なお知らせ】サービス統合に基づくサービス名称の読み替えのお願い(2024年4月1日)

2024年4月1日をもって、「ニフクラ」は、「FJcloud-V」に統合し、名称を変更しました。
「ニフクラ」「NIFCLOUD」「nifcloud」は、「FJcloud-V」に読み替えていただきますようお願いいたします。

ニフクラ ユーザーガイド

クラウド トップ>NAS> API> CreateNASInstance

CreateNASInstance

処理概要

NASを新規作成します。

指定するパラメーター

パラメーター 説明 必須
AllocatedStorage integer ディスク容量
単位: GB
値:
NASInstanceType=0 の場合
  • 100
  • 200
  • 300
  • 400
  • 500
  • 600
  • 700
  • 800
  • 900
  • 1000
NASInstanceType=1 の場合
  • 1000
  • 2000
  • 3000
  • 4000
  • 5000
  • 6000
  • 7000
  • 8000
  • 9000
  • 10000
AvailabilityZone string

NASが作成されるゾーン
指定可能なゾーンについては、ニフクラ ゾーン別機能対応表をご参照ください。


Default: 自動割り当て
NASInstanceIdentifier string

NAS名

  • ※最初の文字はアルファベットである必要があります
  • ※末尾にハイフンをつけたりハイフンを2個連続させたりすることはできません

使用可能文字: 1〜63字のアルファベット(小文字)・数字・ハイフン('-')
NASInstanceDescription string

NASの説明

  • ※4バイト文字(絵文字や一部の漢字など)は使用できません

使用可能文字: 1〜255文字の印字可能なASCII文字
NASSecurityGroups.member.N string NASファイアウォールグループのリスト
Default: プロトコルのDefaultSecurityGroup
Protocol string プロトコル
値:
  • nfs
  • cifs
MasterUserPassword string マスターユーザーのパスワード
使用可能文字: 「/」、「@」、「"」、「 」、「'」を除く、1〜128文字の印字可能なASCII文
○ (Protocolにcifsを指定している場合)
MasterUsername string

マスターユーザー名

  • ※最初の文字はアルファベットである必要があります
  • ※cifs / Linux の予約語は使用できません

使用可能文字: 1〜32文字のアルファベット・数字・アンダースコア('\_')
○ (Protocolにcifsを指定している場合)
NetworkId string プライベートLANのネットワークユニークID
MasterPrivateAddress string NAS用のプライベートIPアドレス
○ (プライベートLANを利用している場合)
NASInstanceType integer NASタイプ
値:
  • 0 (標準タイプ)
  • 1 (高速タイプ)
Default: 1

応答フィールド

フィールド (項目) 説明
CreateNASInstanceResponse structure ルート
CreateNASInstanceResult structure 結果
NASInstance structure NAS
備考: NASInstanceの子要素はDescribeNASInstancesで返却される要素をすべて記載しているためAPIによっては返却されない要素もあります。実際のレスポンスはレスポンスサンプルを参照してください。
AllocatedStorage integer 割り当てるディスク容量
単位: GB
AvailabilityZone string NASのゾーン
NASInstanceClass string NASのタイプ
NASInstanceIdentifier string NAS名
NASInstanceDescription string NASの説明
NASInstanceStatus string NASのステータス
NASInstanceErrorInfo string NASのエラー情報
NASInstanceErrorCode string 発生中のエラーコード
NASInstanceErrorMessage string 発生中のエラーメッセージ
NASSecurityGroups list NASファイアウォールグループ情報リスト
NASSecurityGroup structure NASファイアウォールグループ
NASSecurityGroupName string NASファイアウォールグループ名
Status string

NASファイアウォールグループのステータス

  • 値:active(有効) | adding(適用中) | removing(取り外し中) | failed(変更失敗)

Endpoint structure エンドポイント
Address string グローバルIPアドレス
PrivateAddress string プライベートIPアドレス
Protocol string プロトコル
MasterUsername string NASのマスターユーザ名
StorageType integer ディスクタイプ
NetworkId string プライベートLANのネットワークユニークID
AuthenticationType integer 認証タイプ
備考: CIFS(ローカル認証) or NFS : 0
NASInstanceType integer NASタイプ
備考: 標準タイプ : 0 | 高速タイプ : 1
NoRootSquash boolean root権限許可
備考: false(root権限使用禁止)固定
UpgradeRequired boolean NAS領域の基盤アップグレード要否
備考: 基盤アップグレードが必要 : true | 基盤アップグレードは不要 : false
ResponseMetadata structure 共通メタ情報
RequestId string リクエスト識別子

エラー

コード メッセージ タイプ HTTPステータスコード 説明
Client.InvalidParameter.Duplicate.NASInstanceIdentifier

NASInstance already exists

Sender 400 すでに存在するNASInstanceIdentifierを指定した場合
Client.InvalidParameter.NotFound.NASSecurityGroupName

NASSecurityGroup aaaa not found.

Sender 404 存在しないNASSecurityGroupを指定した場合
Client.InvalidParameter.LimitExceeded.NASInstance

Request would result in user exceeding the allowed number of NASInstance.

Sender 400 作成可能なNASの個数に達している場合
Client.InvalidParameter.ZoneMisMatch.NASSecurityGroupName

NASSecurityGroup aaa cannot be used in east-11 zone. The availability zone of aaa is east12.

Sender 400 指定されたゾーンと異なるゾーンに所属するNASファイアウォールグループを指定した場合
Client.InvalidParameter.NotAllowed.MasterUserPassword

The parameter MasterUserPassword is not a valid password. Only printable ASCII characters besides ‘/’, ‘@’, ‘"’, ’ ‘,’'’ may be used.

Sender 400 Protocol= cifs のときにMasterUserPasswordに無効な値(@など)を使用した値を指定した場合
Client.InvalidParameter.Missing.MasterUserPassword

The parameter MasterUserPassword must be provided and must not be blank.

Sender 400 Protocol= cifs のときにMasterUserPasswordを空で値を指定した場合
Client.InvalidParameter.TooLong.MasterUserPassword

The parameter MasterUserPassword is not a valid password because it is longer than 128characters.

Sender 400 Protocol= cifs のときにMasterUserPasswordに128文字以上値を指定した場合
Client.InvalidParameter.Format.MasterUsername

Invalid master user name

Sender 400 Protocol= cifs のときにMasterUsernameに数字から始まる値を指定した場合
Client.InvalidParameter.TooLong.MasterUsername

The parameter MasterUsername is not a valid name because it is longer than 32characters.

Sender 400 Protocol= cifs のときにMasterUsernameに最大文字数以上(32文字) 指定した場合
Client.InvalidParameter.CannotSpecify.MasterUsername

MasterUsername ADD cannot be used as it is a reserved word used by the protocol

Sender 400 Protocol= cifs のときにMasterUsernameに予約語を指定した場合
Client.InvalidParameter.Missing.AvailabilityZone

AvailabilityZone is required when using Private LAN.

Sender 400 プライベートLAN対象のNASでAvailabilityZoneを指定していない場合
Client.InvalidParameter.Missing.MasterPrivateAddress

The parameter MasterPrivateAddress must be provided and must not be blank for PrivateLAN instance.

Sender 400 プライベートLAN対象のNASでMasterPrivateAddressを指定していない場合
Client.InvalidParameter.Required.AllocatedStorage

The parameter AllocatedStorage must be provided and must not be null.

Sender 400 必須のAllocatedStorageを指定しなかった場合
Client.InvalidParameter.Required.NASInstanceIdentifier

The parameter NASInstanceIdentifier must be provided and must not be blank.

Sender 400 必須のNASInstanceIdentifierを指定しなかった場合
Client.InvalidParameter.Required.Protocol

The parameter Protocol must be provided and must not be blank.

Sender 400 必須のProtocolを指定しなかった場合
Client.InvalidParameter.Missing.MasterUsername

The parameter MasterUsername must be provided and must not be blank.

Sender 400 Protocol= cifs のときにMasterUsernameを空で値を指定した場合
Client.InvalidParameter.NotFound.AvailabilityZone

aaa is not a valid availability zone.

Sender 400 存在しないAvailabilityZoneを指定した場合
Client.InvalidParameter.Format.NASInstanceIdentifier

The parameter NASInstanceIdentifier is not a valid identifier. Identifiers must begin with a letter; must contain only lowercase ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.

Sender 400 NASInstanceIdentifierに無効な値(数字から始まる、@を使用した値など)を指定した場合
Client.InvalidParameter.TooLong.NASInstanceIdentifier

The parameter NASInstanceIdentifier is not a valid identifier because it is longer than 63 characters.

Sender 400 NASInstanceIdentifierに63文字以上指定した場合
Client.InvalidParameter.IllegalInput.NASInstanceDescription

NASInstanceDescription (4バイト文字) is not a valid parameter.

Sender 400 NASInstanceDescriptionに4バイト文字を含む値を指定した場合
Client.InvalidParameter.TooLong.NASInstanceDescription

The parameter NASInstanceDescription is not a valid identifier because it is longer than 255 characters.

Sender 400 NASInstanceDescriptionに255文字以上指定した場合
Client.InvalidParameter.OutOfRange.AllocatedStorage

Invalid storage size: 11000. The storage size must be between 1000 and 10000 GB.

Sender 400 ・NASInstanceType=0指定時、AllocatedStorageに100〜指定された最大値(デフォルトは1000)でない値を指定した場合
・NASInstanceType=1指定時、AllocatedStorageに1000〜指定された最大値(デフォルトは10000)でない値を指定した場合
Client.InvalidParameter.Format.AllocatedStorage

AllocatedStorage should specify the multiple of 1000.

Sender 400 ・NASInstanceType=0指定時、AllocatedStorageに100の倍数でない値を指定した場合
・NASInstanceType=1指定時、AllocatedStorageに1000の倍数でない値を指定した場合
Client.InvalidParameter.CannotSpecify.Protocol

Invalid Protocol: nnfs.

Sender 400 Protocolに不正な値を指定した場合
Client.InvalidParameter.Format.MasterPrivateAddress

Invalid MasterPrivateAddress aaa.bbb.ccc.ddd.

Sender 400 MasterlPrivateAddressにIPアドレスとして無効な値を指定したとき
Client.InvalidParameter.Duplicate.MasterPrivateAddress

Private address is already in use: 192.168.98.160.

Sender 400 MasterPrivateAddressに重複しているIPアドレスを指定したとき
Client.InvalidParameter.PrivateAddressMismacth.CIDRprefix

Invalid MasterPrivateAddress: 192.168.128.1/27. Valid CIDR prefix is /20.

Sender 400 MasterPrivateAddressのプレフィックスにプライベートLAN作成時のプレフィックスと異なる値を指定したとき
Client.InvalidParameter.OutOfRange.MasterPrivateAddress

Invalid MasterPrivateAddress: 192.168.128.31. Valid range is 192.168.128.1-192.168.128.30.

Sender 400 MasterPrivateAddressにサブネットの範囲外のIPアドレスを指定したとき
Client.InvalidParameter.LimitExceeded.AllocatedStorage

The total storage capacity max limit of east-21 is 10,000GB.

Sender 400 AvailavilityZoneに指定されたゾーンに存在している全てのNASのストレージサイズ合計が、設定された上限値を超えてしまう場合
Client.InvalidParameter.NotAllowed.AllocatedStorage

Sender 404 AllocatedStorageに数値でない値を指定した場合
Client.InvalidParameter.NotFound.NetworkId

Private LAN net-1234abcd does not exist.

Sender 404 存在しないNetWorkIdを指定した場合
Client.InvalidParameter.ZoneMismacth.NetworkId

Private LAN net-1234abcd does not belong to availability zone east-11.

Sender 400 指定されたゾーンと異なるゾーンに所属するNetworkIdを指定した場合
Client.Resource.IncorrectState.ApplyNASSecurityGroup

NASSecurityGroup is not in available state.

Sender 400 設定しようとしたNASファイアウォールグループのルールのうち、ステータスが、「authorizing」または「revoking」のルールが存在する場合
Client.InvalidParameter.Format.NASInstanceType
Sender 400 NASInstanceTypeに有効でない値を指定した場合
Client.InvalidParameter.CannotSpecify.NASInstanceType

Specified NASInstanceType is not available in the specified Availability Zone.

Sender 400 指定されたNASInstanceTypeが適用できないゾーンが指定された場合

リクエストサンプル

    https://jp-east-1.nas.api.nifcloud.com/
  ?Action=CreateNASInstance
  &AllocatedStorage=1000
  &AvailabilityZone=east-11
  &NASInstanceIdentifier=example-nas-server
  &Protocol=nfs
  &SignatureVersion=2
  &SignatureMethod=HmacSHA256
  &Timestamp=2016-02-24T00:00:00.000Z
  &AWSAccessKeyId=<NIFCLOUD Access Key ID>
  &Signature=<Signature>

  

応答サンプル

    <CreateNASInstanceResponse>
  <CreateNASInstanceResult>
    <NASInstance>
      <AllocatedStorage>1000</AllocatedStorage>
      <AvailabilityZone>east-21</AvailabilityZone>
      <NASInstanceClass>small</NASInstanceClass>
      <NASInstanceIdentifier>example-nas-server</NASInstanceIdentifier>
      <NASInstanceStatus>creating</NASInstanceStatus>
      <NASInstanceErrorInfo/>
      <NASSecurityGroups>
        <NASSecurityGroup>
          <NASSecurityGroupName>default.east-21</NASSecurityGroupName>
          <Status>active</Status>
        </NASSecurityGroup>
      </NASSecurityGroups>
      <Endpoint/>
      <Protocol>nfs</Protocol>
      <StorageType>0</StorageType>
    </NASInstance>
  </CreateNASInstanceResult>
  <ResponseMetadata>
    <RequestId>1dabaebf-472d-4fe5-9f64-4486ca79abde</RequestId>
  </ResponseMetadata>
</CreateNASInstanceResponse>

  
  • ※本ページ記載の金額は、すべて税抜表示です。
  • ※本ページ記載の他社製品名および会社名などは、各社の商標または登録商標です。
  • ※本ページの内容は、2024年4月24日時点の情報です。

推奨画面サイズ 1024×768 以上