attachNetworkInterface
    • PDF

    attachNetworkInterface

    • PDF

    Article Summary

    VPC環境で利用できます。

    概要

    サーバインスタンスにネットワークインターフェースを割り当てます。サーバインスタンスの基本ネットワークインターフェースを含め、最大3個のネットワークインターフェースを割り当てられます。

    リクエスト

    リクエストパラメータ

    パラメータ名必須の有無タイプ制約事項説明
    regionCodeNoStringリージョンコード
    割り当てるネットワークインターフェースのリージョン(Region)を決定できます。
    regionCodeはgetRegionListアクションを通じて取得できます。
    Default:getRegionList照会結果の最初のリージョンを選択
    subnetNoYesStringSubnet番号
    割り当てるネットワークインターフェースのSubnetを決定します。
    subnetNoはgetSubnetListアクションを通じて取得できます。
    networkInterfaceNoYesString割り当てるネットワークインターフェース番号
    networkInterfaceNoはgetNetworkInterfaceListアクションを通じて取得できます。
    serverInstanceNoYesStringサーバインスタンス番号
    ネットワークインターフェースが割り当てられるサーバインスタンスを決定します。
    serverInstanceNoはgetServerInstanceListアクションを通じて取得できます。
    responseFormatTypeNoStringレスポンス結果のフォーマットタイプ
    Options : xml | json
    Default : xml

    レスポンス

    レスポンスボディ

    リクエスト例

    GET {API_URL}/attachNetworkInterface
    ?regionCode=KR
    &subnetNo=***43
    &networkInterfaceNo=***87
    &serverInstanceNo=***4299
    

    レスポンス例

    <attachNetworkInterfaceResponse>
      <requestId>1a73c4ba-2a34-4849-bf2a-4d55fd5a7814</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <networkInterfaceList>
        <networkInterface>
          <networkInterfaceNo>***87</networkInterfaceNo>
          <networkInterfaceName>test-***</networkInterfaceName>
          <subnetNo>***43</subnetNo>
          <deleteOnTermination>false</deleteOnTermination>
          <isDefault>false</isDefault>
          <deviceName>eth1</deviceName>
          <networkInterfaceStatus>
            <code>SET</code>
            <codeName>set</codeName>
          </networkInterfaceStatus>
          <instanceType>
            <code>VSVR</code>
            <codeName>Server (VPC)</codeName>
          </instanceType>
          <instanceNo>***4299</instanceNo>
          <ip>***.***.1.7</ip>
          <macAddress>F2:20:***:***:8A:F5</macAddress>
          <accessControlGroupNoList/>
          <networkInterfaceDescription></networkInterfaceDescription>
          <secondaryIpList></secondaryIpList>
        </networkInterface>
      </networkInterfaceList>
    </attachNetworkInterfaceResponse>
    

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

    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.