applyConfigurationsToDevice


SoftLayer_Network_Tunnel_Module_Context::applyConfigurationsToDevice

Apply current configuration settings to the network device

Description

An asynchronous task will be created to apply the IPSec network tunnel’s configuration to network devices. During this time, an IPSec network tunnel cannot be modified in anyway. Only one network tunnel configuration task can be created at a time. If a task has already been created and has not completed, a new task cannot be created.

Parameters

None

Required Headers

Optional Headers

  • None

Return Values

  • boolean

Error Handling

  • Throw the error “Configurations cannot be updated at this time. Try again later.” if the request cannot be completed and should be tried again later, most likely because another task to apply configurations is ongoing.
  • Throw the error “Cannot apply configurations. Please associate at least one customer subnet to this tunnel.” if this context lacks sufficient data to be configured. Refer to documentation for addCustomerSubnetToNetworkTunnel.
  • Throw the error “Cannot apply configurations. Please associate at least one private subnet to this tunnel.” if this context lacks sufficient data to be configured. Refer to documentation for addPrivateSubnetToNetworkTunnel.

Associated Methods

curl -g -u $SL_USER:$SL_APIKEY -X GET \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Network_Tunnel_Module_Context/{SoftLayer_Network_Tunnel_Module_ContextID}/applyConfigurationsToDevice'