Modifier la MTU d’une DirectLink interface
Vous pouvez modifier la maximum transmission unit (MTU) d’une DirectLink interface.
Pour en savoir plus sur les DirectLink interfaces, voir À propos de DirectLink > Connexions DirectLink et DirectLink interfaces.
Modifier la MTU d’une DirectLink interface avec OSC CLI
À ce jour, cette section est disponible en anglais uniquement. |
The UpdateDirectLinkInterface command modifies the maximum transmission unit (MTU) of a DirectLink interface.
$ osc-cli api UpdateDirectLinkInterface --profile "default" \
--DirectLinkInterfaceId "dxvif-12345678" \
--Mtu 1500
This command contains the following attributes that you need to specify:
-
DirectLinkInterfaceId
: The ID of the DirectLink interface you want to update. -
DryRun
: (optional) If true, checks whether you have the required permissions to perform the action. -
Mtu
: The maximum transmission unit (MTU) of the DirectLink interface, in bytes (always1500
).
The UpdateDirectLinkInterface command returns the following elements:
-
DirectLinkInterface
: Information about the DirectLink interfaces. -
ResponseContext
: Information about the context of the response.
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
},
"DirectLinkInterface": {
"Vlan": 101,
"OutscalePrivateIp": "172.16.0.4/30",
"DirectLinkInterfaceId": "dxvif-12345678",
"BgpAsn": 65000,
"AccountId": "123456789012",
"ClientPrivateIp": "172.16.0.5/30",
"VirtualGatewayId": "vgw-12345678",
"DirectLinkInterfaceName": "MyDirectLinkInterface",
"DirectLinkId": "dxcon-12345678",
"Mtu": 1500,
"State": "available",
"InterfaceType": "private",
"Location": "PAR1"
}
}
Pages connexes
Méthode API correspondante