AttachExtNetwork#

Description#

Attaches an external network to a subnet or a virtual switch.

Request Parameters#

  • ExtNetName — The name of the external network.

    • Type: String

    • Required: Yes

  • SubnetId — The ID of the subnet, to which you wish to attach the external network.

    • Type: String

    • Required: No

  • SwitchId — The ID of the virtual switch, to which you wish to attach the external netwokю

    • Type: String

    • Required: No

  • SwitchName — The name of the virtual switch, to which you wish to attach the external network.

    • Type: String

    • Required: No

Note

It is nesessary to supply one of: SubnetId, SwitchId or SwitchName parameters.

Response Elements#

  • requestId — The request ID

    • Type: String

Examples#

c2-ec2 AttachExtNetwork ExtNetName <ext-net-name> SubnetId <subnet_id>

c2-ec2 AttachExtNetwork ExtNetName <ext-net-name> SwitchId <switch_id>

c2-ec2 AttachExtNetwork ExtNetName <ext-net-name> SwitchName <switch_name>

c2-ec2 AttachExtNetwork ExtNetName <ext-net-name> SubnetId subnet-01234567

c2-ec2 AttachExtNetwork ExtNetName <ext-net-name> SwitchId sw-01234567

c2-ec2 AttachExtNetwork ExtNetName <ext-net-name> SwitchName myswitch