CreateTransitVirtualInterface#

Description#

Создаёт виртуальный интерфейс.

Request Parameters#

  • connectionId — Идентификатор соединения.

    • Тип: String

    • Необходимо: Да

  • newTransitVirtualInterface — Информация о виртуальном интерфейсе.

Response Elements#

  • VirtualInterface — Информация о виртуальном интерфейсе.

Examples#

Запрос

https://directconnect.k2.cloud/?Action=CreateTransitVirtualInterface
&connectionId=dxconn-F96A4C20
&newTransitVirtualInterface.virtualInterfaceName=test-vif
&newTransitVirtualInterface.asn=64590
&newTransitVirtualInterface.addressFamily=ipv4
&newTransitVirtualInterface.amazonAddress=169.254.252.1/30
&newTransitVirtualInterface.customerAddress=169.254.252.2/30
&newTransitVirtualInterface.directConnectGatewayId=dxgw-A1BF7297
&newTransitVirtualInterface.vlan=1024

Ответ

{
    "virtualInterface": {
        "addressFamily": "ipv4",
        "amazonAddress": "169.254.252.1/30",
        "amazonSideAsn": 64513,
        "asn": 64590,
        "authKey": "1478b4e8c6c3c9d78d225a40b8a76503",
        "awsDeviceV2": "dxdev-820E82A1",
        "connectionId": "dxconn-F96A4C20",
        "customerAddress": "169.254.252.2/30",
        "directConnectGatewayId": "dxgw-A1BF7297",
        "location": "location-1",
        "ownerAccount": "user-1@c2dev",
        "virtualInterfaceId": "dxvif-BCD785E0",
        "virtualInterfaceName": "test-vif",
        "virtualInterfaceState": "available",
        "virtualInterfaceType": "transit",
        "vlan": 1024
    }
}
c2-dc CreateTransitVirtualInterface connectionId dxconn-F96A4C20 newTransitVirtualInterface.virtualInterfaceName test-vif newTransitVirtualInterface.asn 64590 newTransitVirtualInterface.directConnectGatewayId dxgw-A1BF7297 newTransitVirtualInterface.vlan 1024

c2-dc CreateTransitVirtualInterface connectionId dxconn-F96A4C20 newTransitVirtualInterface.virtualInterfaceName test-vif newTransitVirtualInterface.asn 64590 newTransitVirtualInterface.directConnectGatewayId dxgw-A1BF7297 newTransitVirtualInterface.vlan 1024 newTransitVirtualInterface.amazonAddress=169.254.252.1/30 newTransitVirtualInterface.customerAddress=169.254.252.2/30