From 8afd6620faa74d57980e18147aeef86b47f4d2b9 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 2 Nov 2020 23:48:58 -0800 Subject: [PATCH] Updated Filer Server API (markdown) --- Filer-Server-API.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Filer-Server-API.md b/Filer-Server-API.md index db39cbc..caa15d6 100644 --- a/Filer-Server-API.md +++ b/Filer-Server-API.md @@ -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: