Deleting a DirectLink Interface
You can delete a DirectLink interface from a DirectLink connection.
This actions removes access to the corresponding Net through the DirectLink connection.
Deleting a DirectLink Interface Using Cockpit v2
-
In the DirectLink Interfaces dashboard, check the box of the DirectLink interface you want to delete.
The DirectLink interface is selected. -
Click Delete.
A confirmation dialog box appears. -
Click Delete.
The DirectLink interface is deleted.
Deleting a DirectLink Interface Using OSC CLI
The DeleteDirectLinkInterface command deletes a specified DirectLink interface.
$ osc-cli api DeleteDirectLinkInterface --profile "default" \
--DirectLinkInterfaceId "dxvif-12345678"
This command contains the following attributes that you need to specify:
-
DirectLinkInterfaceId
: The ID of the DirectLink interface you want to delete. -
DryRun
: (optional) If true, checks whether you have the required permissions to perform the action.
The DeleteDirectLinkInterface command returns the following elements:
-
ResponseContext
: Information about the context of the response.-
RequestId
: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
}
}
Deleting a DirectLink Interface Using oapi-cli
The DeleteDirectLinkInterface command deletes a specified DirectLink interface.
$ oapi-cli --profile "default" DeleteDirectLinkInterface \
--DirectLinkInterfaceId "dxvif-12345678"
This command contains the following attributes that you need to specify:
-
DirectLinkInterfaceId
: The ID of the DirectLink interface you want to delete. -
DryRun
: (optional) If true, checks whether you have the required permissions to perform the action.
The DeleteDirectLinkInterface command returns the following elements:
-
ResponseContext
: Information about the context of the response.-
RequestId
: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
}
}
Deleting a Private Virtual Interface Using AWS CLI
Before you begin: Install and configure AWS CLI. For more information, see Installing and Configuring AWS CLI. |
To delete a private virtual interface, use the delete-virtual-interface command following this syntax:
$ aws directconnect delete-virtual-interface \
--profile YOUR_PROFILE \
--virtual-interface-id dxvif-12345678 \
--endpoint https://directlink.eu-west-2.outscale.com
This command contains the following attributes that you need to specify:
-
(optional)
profile
: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI. -
virtual-interface-id
: The ID of the private virtual interface. -
endpoint
: The endpoint corresponding to the Region you want to send the request to. For more information, see Installing and Configuring AWS CLI.
The delete-virtual-interface command returns the following element:
-
virtualInterfaceState
: The updated state of the private virtual interface. For more information, see About DirectLink > DirectLink Connections and Private Virtual Interfaces.
{
"virtualInterfaceState": "deleting"
}
The private virtual interface is deleted.
Related Pages
Corresponding API Methods
AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.