Modifier une connexion VPN
Vous pouvez modifier les attributs d’une connexion VPN.
Modifier une connexion VPN avec OSC CLI
À ce jour, cette section est disponible en anglais uniquement. |
Pour en savoir plus sur la configuration d’un VPN, voir Référence pour la configuration des VPN. |
The UpdateVpnConnection command modifies the specified attributes of a VPN connection.
$ osc-cli api UpdateVpnConnection --profile "default" \
--VpnConnectionId "vpn-12345678" \
--VpnOptions '{
"TunnelInsideIpRange": "169.254.254.22/30"
}'
This command contains the following attributes that you need to specify:
-
ClientGatewayId
: (optional) The ID of the client gateway. -
DryRun
: (optional) If true, checks whether you have the required permissions to perform the action. -
VirtualGatewayId
: (optional) The ID of the virtual gateway. -
VpnConnectionId
: The ID of the VPN connection you want to modify. -
VpnOptions
: (optional) Information about the VPN options.-
Phase1Options
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS.-
DpdTimeoutAction
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
DpdTimeoutSeconds
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
IkeVersions
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase1DhGroupNumbers
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase1EncryptionAlgorithms
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase1IntegrityAlgorithms
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase1LifetimeSeconds
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
ReplayWindowSize
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
StartupAction
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS.
-
-
Phase2Options
: (optional) Information about Phase 2 of the Internet Key Exchange (IKE) negotiation.-
Phase2DhGroupNumbers
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase2EncryptionAlgorithms
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase2IntegrityAlgorithms
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase2LifetimeSeconds
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
PreSharedKey
: (optional) The pre-shared key to establish the initial authentication between the client gateway and the virtual gateway. This key can contain any character except line breaks and double quotes (").
-
-
TunnelInsideIpRange
: (optional) The range of inside IPs for the tunnel. This must be a /30 CIDR block from the 169.254.254.0/24 range.
-
The UpdateVpnConnection command returns the following elements:
-
ResponseContext
: Information about the context of the response.-
RequestId
: The ID of the request.
-
-
VpnConnection
: Information about a VPN connection.-
ClientGatewayConfiguration
: Example configuration for the client gateway. -
ClientGatewayId
: The ID of the client gateway used on the client end of the connection. -
ConnectionType
: The type of VPN connection (alwaysipsec.1
). -
Routes
: Information about one or more static routes associated with the VPN connection, if any.-
DestinationIpRange
: The IP range used for the destination match, in CIDR notation (for example,10.0.0.0/24
). -
RouteType
: The type of route (alwaysstatic
). -
State
: The current state of the static route (pending
|available
|deleting
|deleted
).
-
-
State
: The state of the VPN connection (pending
|available
|deleting
|deleted
). -
StaticRoutesOnly
: If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see CreateVpnConnectionRoute and DeleteVpnConnectionRoute. -
Tags
: One or more tags associated with the VPN connection.-
Key
: The key of the tag, with a minimum of 1 character. -
Value
: The value of the tag, between 0 and 255 characters.
-
-
VgwTelemetries
: Information about the current state of one or more of the VPN tunnels.-
AcceptedRouteCount
: The number of routes accepted through BGP (Border Gateway Protocol) route exchanges. -
LastStateChangeDate
: The date and time (UTC) of the latest state update. -
OutsideIpAddress
: The IP on the OUTSCALE side of the tunnel. -
State
: The state of the IPSEC tunnel (UP
|DOWN
). -
StateDescription
: A description of the current state of the tunnel.
-
-
VirtualGatewayId
: The ID of the virtual gateway used on the OUTSCALE end of the connection. -
VpnConnectionId
: The ID of the VPN connection. -
VpnOptions
: Information about the VPN options.-
Phase1Options
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS.-
DpdTimeoutAction
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
DpdTimeoutSeconds
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
IkeVersions
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase1DhGroupNumbers
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase1EncryptionAlgorithms
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase1IntegrityAlgorithms
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase1LifetimeSeconds
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
ReplayWindowSize
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
StartupAction
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS.
-
-
Phase2Options
: Information about Phase 2 of the Internet Key Exchange (IKE) negotiation.-
Phase2DhGroupNumbers
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase2EncryptionAlgorithms
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase2IntegrityAlgorithms
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase2LifetimeSeconds
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
PreSharedKey
: The pre-shared key to establish the initial authentication between the client gateway and the virtual gateway. This key can contain any character except line breaks and double quotes (").
-
-
TunnelInsideIpRange
: The range of inside IPs for the tunnel. This must be a /30 CIDR block from the 169.254.254.0/24 range.
-
-
{
"VpnConnection": {
"VpnOptions": {
"TunnelInsideIpRange": "169.254.254.22/30"
},
"Routes": [],
"Tags": [],
"ClientGatewayConfiguration": "...",
"StaticRoutesOnly": true,
"VirtualGatewayId": "vgw-12345678",
"ConnectionType": "ipsec.1",
"ClientGatewayId": "cgw-12345678",
"State": "pending",
"VgwTelemetries": [
{
"StateDescription": "IPSEC IS DOWN",
"AcceptedRouteCount": 0,
"LastStateChangeDate": "2017-05-10T12:34:56.789Z",
"OutsideIpAddress": "192.0.2.0"
}
],
"VpnConnectionId": "vpn-12345678"
},
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
}
}
Modifier une connexion VPN avec oapi-cli
À ce jour, cette section est disponible en anglais uniquement. |
Pour en savoir plus sur la configuration d’un VPN, voir Référence pour la configuration des VPN. |
The UpdateVpnConnection command modifies the specified attributes of a VPN connection.
$ oapi-cli --profile "default" UpdateVpnConnection \
--VpnConnectionId "vpn-12345678" \
--VpnOptions '{
"TunnelInsideIpRange": "169.254.254.22/30"
}'
This command contains the following attributes that you need to specify:
-
ClientGatewayId
: (optional) The ID of the client gateway. -
DryRun
: (optional) If true, checks whether you have the required permissions to perform the action. -
VirtualGatewayId
: (optional) The ID of the virtual gateway. -
VpnConnectionId
: The ID of the VPN connection you want to modify. -
VpnOptions
: (optional) Information about the VPN options.-
Phase1Options
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS.-
DpdTimeoutAction
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
DpdTimeoutSeconds
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
IkeVersions
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase1DhGroupNumbers
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase1EncryptionAlgorithms
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase1IntegrityAlgorithms
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase1LifetimeSeconds
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
ReplayWindowSize
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
StartupAction
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS.
-
-
Phase2Options
: (optional) Information about Phase 2 of the Internet Key Exchange (IKE) negotiation.-
Phase2DhGroupNumbers
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase2EncryptionAlgorithms
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase2IntegrityAlgorithms
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase2LifetimeSeconds
: (optional) This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
PreSharedKey
: (optional) The pre-shared key to establish the initial authentication between the client gateway and the virtual gateway. This key can contain any character except line breaks and double quotes (").
-
-
TunnelInsideIpRange
: (optional) The range of inside IPs for the tunnel. This must be a /30 CIDR block from the 169.254.254.0/24 range.
-
The UpdateVpnConnection command returns the following elements:
-
ResponseContext
: Information about the context of the response.-
RequestId
: The ID of the request.
-
-
VpnConnection
: Information about a VPN connection.-
ClientGatewayConfiguration
: Example configuration for the client gateway. -
ClientGatewayId
: The ID of the client gateway used on the client end of the connection. -
ConnectionType
: The type of VPN connection (alwaysipsec.1
). -
Routes
: Information about one or more static routes associated with the VPN connection, if any.-
DestinationIpRange
: The IP range used for the destination match, in CIDR notation (for example,10.0.0.0/24
). -
RouteType
: The type of route (alwaysstatic
). -
State
: The current state of the static route (pending
|available
|deleting
|deleted
).
-
-
State
: The state of the VPN connection (pending
|available
|deleting
|deleted
). -
StaticRoutesOnly
: If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see CreateVpnConnectionRoute and DeleteVpnConnectionRoute. -
Tags
: One or more tags associated with the VPN connection.-
Key
: The key of the tag, with a minimum of 1 character. -
Value
: The value of the tag, between 0 and 255 characters.
-
-
VgwTelemetries
: Information about the current state of one or more of the VPN tunnels.-
AcceptedRouteCount
: The number of routes accepted through BGP (Border Gateway Protocol) route exchanges. -
LastStateChangeDate
: The date and time (UTC) of the latest state update. -
OutsideIpAddress
: The IP on the OUTSCALE side of the tunnel. -
State
: The state of the IPSEC tunnel (UP
|DOWN
). -
StateDescription
: A description of the current state of the tunnel.
-
-
VirtualGatewayId
: The ID of the virtual gateway used on the OUTSCALE end of the connection. -
VpnConnectionId
: The ID of the VPN connection. -
VpnOptions
: Information about the VPN options.-
Phase1Options
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS.-
DpdTimeoutAction
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
DpdTimeoutSeconds
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
IkeVersions
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase1DhGroupNumbers
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase1EncryptionAlgorithms
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase1IntegrityAlgorithms
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase1LifetimeSeconds
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
ReplayWindowSize
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
StartupAction
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS.
-
-
Phase2Options
: Information about Phase 2 of the Internet Key Exchange (IKE) negotiation.-
Phase2DhGroupNumbers
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase2EncryptionAlgorithms
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase2IntegrityAlgorithms
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
Phase2LifetimeSeconds
: This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. -
PreSharedKey
: The pre-shared key to establish the initial authentication between the client gateway and the virtual gateway. This key can contain any character except line breaks and double quotes (").
-
-
TunnelInsideIpRange
: The range of inside IPs for the tunnel. This must be a /30 CIDR block from the 169.254.254.0/24 range.
-
-
{
"VpnConnection": {
"VpnOptions": {
"TunnelInsideIpRange": "169.254.254.22/30"
},
"Routes": [],
"Tags": [],
"ClientGatewayConfiguration": "...",
"StaticRoutesOnly": true,
"VirtualGatewayId": "vgw-12345678",
"ConnectionType": "ipsec.1",
"ClientGatewayId": "cgw-12345678",
"State": "pending",
"VgwTelemetries": [
{
"StateDescription": "IPSEC IS DOWN",
"AcceptedRouteCount": 0,
"LastStateChangeDate": "2017-05-10T12:34:56.789Z",
"OutsideIpAddress": "192.0.2.0"
}
],
"VpnConnectionId": "vpn-12345678"
},
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
}
}
Pages connexes
Méthode API correspondante
AWS™ et Amazon Web Services™ sont des marques de commerce d'Amazon Technologies, Inc. ou de ses affiliées aux États-Unis et/ou dans les autres pays.