mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Updated Filer Server API (markdown)
parent
72d9e69431
commit
8afd6620fa
|
@ -22,6 +22,23 @@ You can append to any HTTP API with &pretty=y to see a formatted json output.
|
|||
// set file mode when creating or overwriting a file
|
||||
POST /path/to/file?mode=0755
|
||||
```
|
||||
|
||||
| POST/PUT Parameter | Description | Default |
|
||||
| ---- | -- | -- |
|
||||
| dataCenter | preferred data center | empty |
|
||||
| rack | preferred rack | empty |
|
||||
| collection | collection | empty |
|
||||
| replication | replication | empty |
|
||||
| ttl | time to live, examples, 3m: 3 minutes, 4h: 4 hours, 5d: 5 days, 6w: 6 weeks, 7M: 7 months, 8y: 8 years | empty |
|
||||
| maxMB | max chunk size | empty |
|
||||
| mode | file mode | 0660 |
|
||||
| header: `Content-Type` | used for auto compression | empty |
|
||||
| header: `X-Amz-Tagging` | example: `X-Amz-Tagging: name1=value1&name2=value2`. Returned as `X-Amz-Tagging-Name1: value1` In GET/HEAD response header.| empty |
|
||||
| prefixed header: `X-Amz-Meta-` | example: `X-Amz-Meta-name1: value1`. Returned as `X-Amz-Meta-Name1: value1` in GET/HEAD response header. | empty |
|
||||
|
||||
|
||||
|
||||
|
||||
Examples:
|
||||
```bash
|
||||
# Basic Usage:
|
||||
|
|
Loading…
Reference in a new issue