restoreFile


SoftLayer_Network_Storage::restoreFile

Restore access to an individual file in a Storage account.

Description

{{CloudLayerOnlyMethod}} Restore an individual file so that it may be used as it was before it was deleted.

If a file is deleted from a Virtual Server Storage account, the file is placed into the account’s recycle bin and not permanently deleted. Therefore, restoreFile can be used to place the file back into your Virtual Server account’s root directory.


Parameters

Name Type Description
fileId string The id or guid of the file you wish to restore.

Required Headers

Optional Headers

  • None

Return Values

Error Handling

  • Throw the exception “Not yet implemented for this Storage type.” if the Storage type is not supported.

Associated Methods

curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [string]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Network_Storage/{SoftLayer_Network_StorageID}/restoreFile'