List stored files
GET/file
List all files stored in the Object Store.
Responses
- 200
- 401
- 403
- 500
List of stored files.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
files
object[]
required
List of stored files.
name stringrequired
The name of the file.
sha256 stringrequired
SHA-256 hash of the file content.
size integerrequired
File size in bytes.
content_type stringrequired
How the file should be treated during deploy (raw or template).
total integerrequired
Total number of files.
{
"files": [
{
"name": "nginx.conf",
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"size": 1024,
"content_type": "raw"
}
],
"total": 5
}
Unauthorized - API key required
- application/json
- Schema
- Example (from schema)
Schema
error string
A description of the error that occurred.
details string
Additional details about the error.
code integer
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Forbidden - Insufficient permissions
- application/json
- Schema
- Example (from schema)
Schema
error string
A description of the error that occurred.
details string
Additional details about the error.
code integer
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Error listing files.
- application/json
- Schema
- Example (from schema)
Schema
error string
A description of the error that occurred.
details string
Additional details about the error.
code integer
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Loading...