CreateNetworkInterface#

Description#

Creates a new network interface.

Request Parameters#

  • Description — The description of the network interface.

    • Type: String

    • Required: No

  • PrivateIpAddress — The private IP-address.

    • Type: String

    • Required: No

  • SecurityGroupId.N — The IDs of security groups.

    • Type: Array of strings

    • Required: No

  • SubnetId — The ID of the subnet.

    • Type: String

    • Required: No

  • SwitchId — The ID of the virtual switch.

    • Type: String

    • Required: No

  • TagSpecification.N — The tags assigned to the resource when it is created.

Response Elements#

  • networkInterface — The network interface.

  • requestId — The request ID.

    • Type: String

Examples#

c2-ec2 CreateNetworkInterface SwitchId sw-12345678

c2-ec2 CreateNetworkInterface SubnetId subnet-12345678 PrivateIpAddress 192.0.2.10

c2-ec2 CreateNetworkInterface SwitchId sw-12345678 TagSpecification.0.ResourceType network-interface \
                              TagSpecification.0.Tag.0.Key "tag_key" TagSpecification.0.Tag.0.Value "tag_value"