Skip to content

Commit 40a8c7e

Browse files
molivierfeorlen
andauthored
Add documentation for mc put `--storage-class (#1482)
Adding documentation for additional parameter of `mc put` subcommand. fix #1481 --------- Co-authored-by: Andrea Longo <[email protected]>
1 parent 779f594 commit 40a8c7e

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

source/reference/minio-mc/mc-put.rst

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,17 @@ The :mc:`mc put` uploads an object from the local file system to a bucket on a t
4444
.. code-block:: shell
4545
:class: copyable
4646
47-
mc [GLOBALFLAGS] put \
48-
TARGET \
49-
[--checksum value] \
50-
[--disable-multipart] \
51-
[--enc-kms value] \
52-
[--enc-s3 value] \
53-
[--enc-c value] \
54-
[--if-not-exists] \
55-
[--parallel, -P integer] \
56-
[--part-size, -s string]
47+
mc [GLOBALFLAGS] put \
48+
TARGET \
49+
[--checksum value] \
50+
[--disable-multipart] \
51+
[--enc-kms value] \
52+
[--enc-s3 value] \
53+
[--enc-c value] \
54+
[--if-not-exists] \
55+
[--parallel, -P integer] \
56+
[--part-size, -s string] \
57+
[--storage-class, -sc string]
5758
5859
.. include:: /includes/common-minio-mc.rst
5960
:start-after: start-minio-syntax
@@ -122,6 +123,13 @@ Parameters
122123

123124
If not defined, defaults to a value of ``16MiB``.
124125

126+
.. mc-cmd:: --storage-class, -sc
127+
:optional:
128+
129+
Set the storage class for the uploaded object.
130+
131+
See :ref:`Standard Storage Class <minio-ec-storage-class-standard>` for more about storage classes.
132+
125133

126134
Global Flags
127135
~~~~~~~~~~~~

source/reference/minio-server/settings/storage-class.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ This impacts how MinIO uses the space on the drive(s) and how MinIO can recover
2222
:start-after: start-minio-settings-test-before-prod
2323
:end-before: end-minio-settings-test-before-prod
2424

25+
.. _minio-ec-storage-class-standard:
26+
2527
Standard Storage Class
2628
----------------------
2729

0 commit comments

Comments
 (0)