import-instance

Description

指定したOVFファイルの情報に基づいて、サーバーインポートを予約します。

1回のリクエストで1台のサーバーが予約可能です。

イメージ(VMDKファイル)は、別途アップロード領域へアップロードしてください(このAPIのレスポンスに含まれるタスクIDを指定します)。

サーバーの作成には、時間がかかることがあります。

API「DescribeInstances」のレスポンス値「instanceState」でサーバーのステータスを確認できます。

インポートしたサーバーは通常ほかのサーバー作成と同様に課金されますが、ニフクラの基本ディスク容量(Linux:30GB、Windows:80GB)を超えるディスクを持つ場合は100GB単位で追加料金が発生します。

インポートしたサーバーは、APIからの削除が可能です。

APIからの削除を禁止したい場合は、インポート完了後にAPI「ModifyInstanceAttribute」を実行してください。

See also: NIFCLOUD API Documentation

Synopsis

  import-instance
[--accounting-type <value>]
[--architecture <value>]
[--description <value>]
[--disk-image <value>]
[--instance-id <value>]
[--instance-initiated-shutdown-behavior <value>]
[--instance-type <value>]
[--ip-type <value>]
[--monitoring <value>]
[--network-interface <value>]
--ovf <value>
[--placement <value>]
[--platform <value>]
[--private-ip-address <value>]
[--public-ip <value>]
[--security-group <value>]
[--subnet-id <value>]
[--user-data <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]

Options

--accounting-type (string)

Possible values:

  • 1

  • 2

--architecture (string)

--description (string)

--disk-image (list) (structure)

Description -> (string)

RequestImage -> (structure)

Bytes -> (integer)

Format -> (string)

ImportManifestUrl -> (string)

RequestVolume -> (structure)

Size -> (integer)

Shorthand Syntax:

Description=string,RequestImage={Bytes=integer,Format=string,ImportManifestUrl=string},RequestVolume={Size=integer} ...

JSON Syntax:

[
  {
    "Description": "string",
    "RequestImage": {
      "Bytes": integer,
      "Format": "string",
      "ImportManifestUrl": "string"
    },
    "RequestVolume": {
      "Size": integer
    }
  }
  ...
]

--instance-id (string)

--instance-initiated-shutdown-behavior (string)

--instance-type (string)

Possible values:

  • e-mini

  • h2-mini

  • mini

  • c-small

  • e-small

  • h2-small

  • small

  • c-small2

  • e-small2

  • h2-small2

  • small2

  • c-small4

  • e-small4

  • h2-small4

  • small4

  • e-small8

  • h2-small8

  • small8

  • e-small16

  • h2-small16

  • small16

  • c-medium

  • e-medium

  • h2-medium

  • medium

  • c-medium4

  • e-medium4

  • h2-medium4

  • medium4

  • c-medium8

  • e-medium8

  • h2-medium8

  • medium8

  • e-medium16

  • h2-medium16

  • medium16

  • e-medium24

  • h2-medium24

  • medium24

  • c-large

  • e-large

  • h2-large

  • large

  • c-large8

  • e-large8

  • h2-large8

  • large8

  • e-large16

  • h2-large16

  • large16

  • e-large24

  • h2-large24

  • large24

  • e-large32

  • h2-large32

  • large32

  • e-extra-large8

  • h2-extra-large8

  • extra-large8

  • e-extra-large16

  • h2-extra-large16

  • extra-large16

  • e-extra-large24

  • h2-extra-large24

  • extra-large24

  • e-extra-large32

  • h2-extra-large32

  • extra-large32

  • e-extra-large48

  • h2-extra-large48

  • extra-large48

  • e-double-large16

  • h2-double-large16

  • double-large16

  • e-double-large24

  • h2-double-large24

  • double-large24

  • e-double-large32

  • h2-double-large32

  • double-large32

  • e-double-large48

  • h2-double-large48

  • double-large48

  • e-double-large64

  • h2-double-large64

  • double-large64

  • e-double-large96

  • h2-double-large96

  • double-large96

  • h2-triple-large32

  • triple-large32

  • h2-triple-large48

  • triple-large48

  • h2-triple-large64

  • triple-large64

  • h2-triple-large96

  • triple-large96

  • h2-triple-large128

  • triple-large128

  • h2-quad-large64

  • quad-large64

  • h2-quad-large96

  • quad-large96

  • h2-quad-large128

  • quad-large128

  • h2-septa-large128

  • septa-large128

--ip-type (string)

Possible values:

  • static

  • elastic

  • none

--monitoring (structure) Enabled -> (string)

Shorthand Syntax:

Enabled=string

JSON Syntax:

{
  "Enabled": "string"
}

--network-interface (list) (structure)

DeviceIndex -> (integer)

IpAddress -> (string)

ListOfRequestSecurityGroupId -> (list)

(string)

NetworkId -> (string)

NetworkName -> (string)

Shorthand Syntax:

DeviceIndex=integer,IpAddress=string,ListOfRequestSecurityGroupId=string,string,NetworkId=string,NetworkName=string ...

JSON Syntax:

[
  {
    "DeviceIndex": integer,
    "IpAddress": "string",
    "ListOfRequestSecurityGroupId": ["string", ...],
    "NetworkId": "string",
    "NetworkName": "string"
  }
  ...
]

--ovf (string)

--placement (structure) AvailabilityZone -> (string)

Shorthand Syntax:

AvailabilityZone=string

JSON Syntax:

{
  "AvailabilityZone": "string"
}

--platform (string)

--private-ip-address (string)

--public-ip (string)

--security-group (list) (string)

Syntax:

"string" "string" ...

--subnet-id (string)

--user-data (structure) Content -> (string)

Shorthand Syntax:

Content=string

JSON Syntax:

{
  "Content": "string"
}

Global Options

--debug (boolean)

Turn on debug logging.

--endpoint-url (string)

Override command’s default URL with the given URL.

--no-verify-ssl (boolean)

By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.

--no-paginate (boolean)

Disable automatic pagination.

--output (string)

The formatting style for command output.

  • json

  • text

  • table

--query (string)

A JMESPath query to use in filtering the response data.

--profile (string)

Use a specific profile from your credential file.

--region (string)

The region to use. Overrides config/env settings.

--version (string)

Display the version of this tool.

--color (string)

Turn on/off color output.

  • on

  • off

  • auto

--no-sign-request (boolean)

Do not sign requests. Credentials will not be loaded if this argument is provided.

--ca-bundle (string)

The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.

--cli-read-timeout (int)

The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.

--cli-connect-timeout (int)

The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.

Output

ConversionTask -> (structure)

ConversionTaskId -> (string)

ExpirationTime -> (string)

ImportInstance -> (structure)

Description -> (string)

InstanceId -> (string)

InstanceUniqueId -> (string)

Volumes -> (list)

(structure)

AvailabilityZone -> (string)

BytesConverted -> (integer)

Image -> (structure)

Format -> (string)

Size -> (integer)

Status -> (string)

NetworkInterfaceSet -> (list)

(structure)

Association -> (structure)

IpOwnerId -> (string)

PublicDnsName -> (string)

Attachment -> (structure)

AttachTime -> (string)

AttachmentID -> (string)

DeleteOnTermination -> (string)

DeviceIndex -> (string)

Status -> (string)

Description -> (string)

GroupSet -> (string)

NetworkInterfaceId -> (string)

NiftyNetworkId -> (string)

NiftyNetworkName -> (string)

OwnerId -> (string)

PrivateDnsName -> (string)

PrivateIpAddressesSet -> (string)

SourceDestCheck -> (string)

Status -> (string)

SubnetId -> (string)

VpcId -> (string)

State -> (string)