Files
Cedana API for files
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
pathstringRequired
Responses
200
Returns the list of files in the directory
application/json
string[]Optional
500
Failed to list directory contents
application/json
4XX
Client error
application/json
5XX
Server error
application/json
get/v1/files/dir/{path}
GET /v1/files/dir/{path} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
"file1.txt",
"file2.txt",
"subdir/"
]Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
pathstringRequired
Responses
200
Returns the URL to download the file from
text/plain
stringOptional
500
Failed to generate download URL
application/json
4XX
Client error
application/json
5XX
Server error
application/json
get/v1/files/{path}
GET /v1/files/{path} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
https://cedana-checkpoints-storage.s3.amazonaws.com/file.tar.gz?X-Amz-Signature=...Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
pathstringRequired
Responses
200
Returns the URL to upload the file to
text/plain
stringOptional
500
Failed to generate upload URL
application/json
4XX
Client error
application/json
5XX
Server error
application/json
put/v1/files/{path}
PUT /v1/files/{path} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
https://cedana-checkpoints-storage.s3.amazonaws.com/file.tar.gz?X-Amz-Signature=...Last updated
Was this helpful?