Limitations
- Maximum file size is 100MB
- Files will be automatically deleted after 30 days
Endpoints
See the API Reference for detailed information on the available endpoints.Authorization
Requests to the S4 service must include either:- A
Salad-Api-Key
header with a valid SaladCloud API key. - An
Authorization
header with a valid SaladCloud JWT (issued by the Instance Metadata Service) as a bearer token.
Upload a File
PUT /organizations/:organization_name/files/:filename+
Uploads a file to the specified organization.
Request Parameters:
organization_name
(string): The name of the organization.filename
(string): The name of the file to upload. This can be a path, and the file will be stored in a directory structure based on the path. e.g.path/to/my/file.tar.gz
will be stored aspath/to/my/file.tar.gz
.
Salad-Api-Key
header.
Download a File
GET /organizations/:organization_name/files/:filename+
Downloads a file from the specified organization.
Request Parameters:
organization_name
(string): The name of the organization.filename
(string): The name of the file to download.
Last Updated: October 30, 2024
Delete a File
DELETE /organizations/:organization_name/files/:filename+
Deletes a file from the specified organization.
Request Parameters:
organization_name
(string): The name of the organization.filename
(string): The name of the file to delete.
List Files
GET /organizations/:organization_name/files
Lists all files within the specified organization.
Request Parameters:
organization_name
(string): The name of the organization.
Get A Signed Url for a File
POST /organizations/:organization_name/file_tokens/:filename+
Creates a signed URL for a file in the specified organization.
Request Parameters:
organization_name
(string): The name of the organization.filename
(string): The name of the file to create a signed URL for.