uploadFile


SoftLayer_Network_Storage_Backup_Evault::uploadFile

Upload a file to a Storage account’s root directory.

Description

{{CloudLayerOnlyMethod}} Upload a file to a Storage account’s root directory. Once uploaded, this method returns new file entity identifier for the upload file.

The following properties are required in the ‘‘file’’ parameter. *‘‘’name’’’: The name of the file you wish to upload *‘‘‘content’’’: The raw contents of the file you wish to upload. *‘‘‘contentType’’’: The MIME-type of content that you wish to upload.


Parameters

Name Type Description
file SoftLayer_Container_Utility_File_Entity The file you wish to upload.

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": [SoftLayer_Container_Utility_File_Entity]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Network_Storage_Backup_Evault/{SoftLayer_Network_Storage_Backup_EvaultID}/uploadFile'