computing / Client / attach_network_interface

attach_network_interface

computing.Client.attach_network_interface(**kwargs)

指定したサーバーに追加NICを接続します。

追加NICを指定するためには、追加NICのネットワークインターフェースIDが必要です。

また追加NICの接続の反映には、サーバーの再起動が必要になります。再起動オプションをfalseで指定する場合はサーバー停止時のみ選択可能です。

See also: NIFCLOUD API Documentation

Request Syntax

response = client.attach_network_interface(
    InstanceId='string',
    InstanceUniqueId='string',
    NetworkInterfaceId='string',
    NiftyReboot='force'|'true'|'false'
)
Parameters:
  • InstanceId (string) –

  • InstanceUniqueId (string) –

  • NetworkInterfaceId (string) – [REQUIRED]

  • NiftyReboot (string) –

Return type:

dict

Returns:

Response Syntax

{
    'AttachmentId': 'string',
    'RequestId': 'string',
    'Return': True|False
}

Response Structure

  • (dict) –

    • AttachmentId (string) –

    • RequestId (string) –

    • Return (boolean) –