mirror of
https://github.com/minio/docs.git
synced 2025-07-30 07:03:26 +03:00
rename 'mc policy' -> 'mc anonymous' deprecated command (#597)
Co-authored-by: Ravind Kumar <ravind@min.io>
This commit is contained in:
@ -254,14 +254,14 @@ The following table lists :mc-cmd:`mc` commands:
|
||||
:start-after: start-mc-pipe-desc
|
||||
:end-before: end-mc-pipe-desc
|
||||
|
||||
* - | :mc:`mc policy set`
|
||||
| :mc:`mc policy set-json`
|
||||
| :mc:`mc policy get`
|
||||
| :mc:`mc policy get-json`
|
||||
| :mc:`mc policy list`
|
||||
| :mc:`mc policy links`
|
||||
* - | :mc:`mc anonymous set`
|
||||
| :mc:`mc anonymous set-json`
|
||||
| :mc:`mc anonymous get`
|
||||
| :mc:`mc anonymous get-json`
|
||||
| :mc:`mc anonymous list`
|
||||
| :mc:`mc anonymous links`
|
||||
|
||||
- The :mc:`mc policy` command supports setting or removing anonymous
|
||||
- The :mc:`mc anonymous` command supports setting or removing anonymous
|
||||
:ref:`policies <minio-policy>` to a bucket and its contents. Buckets with
|
||||
anonymous policies allow public access where clients can perform any
|
||||
action granted by the policy without :ref:`authentication
|
||||
@ -459,6 +459,12 @@ All :ref:`commands <minio-mc-commands>` support the following global options:
|
||||
/reference/minio-mc/mc-alias-set
|
||||
/reference/minio-mc/mc-alias-list
|
||||
/reference/minio-mc/mc-alias-remove
|
||||
/reference/minio-mc/mc-anonymous-set
|
||||
/reference/minio-mc/mc-anonymous-get
|
||||
/reference/minio-mc/mc-anonymous-list
|
||||
/reference/minio-mc/mc-anonymous-links
|
||||
/reference/minio-mc/mc-anonymous-get-json
|
||||
/reference/minio-mc/mc-anonymous-set-json
|
||||
/reference/minio-mc/mc-cat
|
||||
/reference/minio-mc/mc-cp
|
||||
/reference/minio-mc/mc-diff
|
||||
@ -488,12 +494,6 @@ All :ref:`commands <minio-mc-commands>` support the following global options:
|
||||
/reference/minio-mc/mc-mirror
|
||||
/reference/minio-mc/mc-mv
|
||||
/reference/minio-mc/mc-pipe
|
||||
/reference/minio-mc/mc-policy-set
|
||||
/reference/minio-mc/mc-policy-get
|
||||
/reference/minio-mc/mc-policy-list
|
||||
/reference/minio-mc/mc-policy-links
|
||||
/reference/minio-mc/mc-policy-get-json
|
||||
/reference/minio-mc/mc-policy-set-json
|
||||
/reference/minio-mc/mc-rb
|
||||
/reference/minio-mc/mc-replicate-add
|
||||
/reference/minio-mc/mc-replicate-edit
|
||||
|
@ -1,8 +1,8 @@
|
||||
.. _minio-mc-policy-get-json:
|
||||
|
||||
======================
|
||||
``mc policy get-json``
|
||||
======================
|
||||
=========================
|
||||
``mc anonymous get-json``
|
||||
=========================
|
||||
|
||||
.. default-domain:: minio
|
||||
|
||||
@ -10,14 +10,14 @@
|
||||
:local:
|
||||
:depth: 2
|
||||
|
||||
.. mc:: mc policy get-json
|
||||
.. mc:: mc anonymous get-json
|
||||
|
||||
Syntax
|
||||
------
|
||||
|
||||
.. start-mc-policy-get-json-desc
|
||||
|
||||
The :mc:`mc policy get-json` command gets anonymous (i.e. unauthenticated or
|
||||
The :mc:`mc anonymous get-json` command gets anonymous (i.e. unauthenticated or
|
||||
public) access :ref:`policies <minio-policy>` for a bucket.
|
||||
|
||||
.. end-mc-policy-get-json-desc
|
||||
@ -36,7 +36,7 @@ and perform actions consistent with the specified policy without
|
||||
.. code-block:: shell
|
||||
:class: copyable
|
||||
|
||||
mc policy get-json myminio/mydata
|
||||
mc anonymous get-json myminio/mydata
|
||||
|
||||
.. tab-item:: SYNTAX
|
||||
|
||||
@ -80,18 +80,18 @@ Examples
|
||||
Get Anonymous Policy for Bucket
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Use :mc-cmd:`mc policy get-json` to get the anonymous policy for a
|
||||
Use :mc-cmd:`mc anonymous get-json` to get the anonymous policy for a
|
||||
bucket:
|
||||
|
||||
.. code-block:: shell
|
||||
:class: copyable
|
||||
|
||||
mc policy get-json ALIAS/PATH
|
||||
mc anonymous get-json ALIAS/PATH
|
||||
|
||||
- Replace :mc-cmd:`ALIAS <mc policy get-json ALIAS>` with the
|
||||
- Replace :mc-cmd:`ALIAS <mc anonymous get-json ALIAS>` with the
|
||||
:mc-cmd:`alias <mc alias>` of a configured S3-compatible host.
|
||||
|
||||
- Replace :mc-cmd:`PATH <mc policy get-json ALIAS>` with the destination bucket.
|
||||
- Replace :mc-cmd:`PATH <mc anonymous get-json ALIAS>` with the destination bucket.
|
||||
|
||||
Behavior
|
||||
--------
|
@ -1,8 +1,8 @@
|
||||
.. _minio-mc-policy-get:
|
||||
|
||||
=================
|
||||
``mc policy get``
|
||||
=================
|
||||
====================
|
||||
``mc anonymous get``
|
||||
====================
|
||||
|
||||
.. default-domain:: minio
|
||||
|
||||
@ -10,14 +10,14 @@
|
||||
:local:
|
||||
:depth: 2
|
||||
|
||||
.. mc:: mc policy get
|
||||
.. mc:: mc anonymous get
|
||||
|
||||
Syntax
|
||||
------
|
||||
|
||||
.. start-mc-policy-get-desc
|
||||
|
||||
The :mc:`mc policy get` command gets the anonymous (i.e. unauthenticated or
|
||||
The :mc:`mc anonymous get` command gets the anonymous (i.e. unauthenticated or
|
||||
public) access :ref:`policies <minio-policy>` for a bucket.
|
||||
|
||||
.. end-mc-policy-get-desc
|
||||
@ -27,7 +27,7 @@ and perform actions consistent with the specified policy without
|
||||
:ref:`authentication <minio-authentication-and-identity-management>`.
|
||||
|
||||
To get the :s3-docs:`JSON policy <using-iam-policies>` assigned to the bucket,
|
||||
use the :mc-cmd:`mc policy get-json` command.
|
||||
use the :mc-cmd:`mc anonymous get-json` command.
|
||||
|
||||
.. tab-set::
|
||||
|
||||
@ -39,7 +39,7 @@ use the :mc-cmd:`mc policy get-json` command.
|
||||
.. code-block:: shell
|
||||
:class: copyable
|
||||
|
||||
mc policy get myminio/mydata
|
||||
mc anonymous get myminio/mydata
|
||||
|
||||
.. tab-item:: SYNTAX
|
||||
|
||||
@ -84,18 +84,18 @@ Examples
|
||||
Get Anonymous Policy for Bucket
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Use :mc:`mc policy get` to get the anonymous policy for a
|
||||
Use :mc:`mc anonymous get` to get the anonymous policy for a
|
||||
bucket:
|
||||
|
||||
.. code-block:: shell
|
||||
:class: copyable
|
||||
|
||||
mc policy get ALIAS/PATH
|
||||
mc anonymous get ALIAS/PATH
|
||||
|
||||
- Replace :mc-cmd:`ALIAS <mc policy get ALIAS>` with the
|
||||
- Replace :mc-cmd:`ALIAS <mc anonymous get ALIAS>` with the
|
||||
:mc-cmd:`alias <mc alias>` of a configured S3-compatible host.
|
||||
|
||||
- Replace :mc-cmd:`PATH <mc policy get ALIAS>` with the destination bucket.
|
||||
- Replace :mc-cmd:`PATH <mc anonymous get ALIAS>` with the destination bucket.
|
||||
|
||||
Behavior
|
||||
--------
|
@ -1,8 +1,8 @@
|
||||
.. _minio-mc-policy-links:
|
||||
|
||||
===================
|
||||
``mc policy links``
|
||||
===================
|
||||
======================
|
||||
``mc anonymous links``
|
||||
======================
|
||||
|
||||
.. default-domain:: minio
|
||||
|
||||
@ -10,14 +10,14 @@
|
||||
:local:
|
||||
:depth: 2
|
||||
|
||||
.. mc:: mc policy links
|
||||
.. mc:: mc anonymous links
|
||||
|
||||
Syntax
|
||||
------
|
||||
|
||||
.. start-mc-policy-links-desc
|
||||
|
||||
The :mc:`mc policy links` retrieves the HTTP URL for anonymous (i.e.
|
||||
The :mc:`mc anonymous links` retrieves the HTTP URL for anonymous (i.e.
|
||||
unauthenticated or public) access to a bucket.
|
||||
|
||||
.. end-mc-policy-links-desc
|
||||
@ -36,7 +36,7 @@ and perform actions consistent with the specified policy without
|
||||
.. code-block:: shell
|
||||
:class: copyable
|
||||
|
||||
mc policy links --recursive myminio/mydata
|
||||
mc anonymous links --recursive myminio/mydata
|
||||
|
||||
.. tab-item:: SYNTAX
|
||||
|
||||
@ -87,18 +87,18 @@ Examples
|
||||
List Anonymous Policies for Bucket
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Use :mc:`mc policy links` to links the anonymous policies for a
|
||||
Use :mc:`mc anonymous links` to links the anonymous policies for a
|
||||
bucket:
|
||||
|
||||
.. code-block:: shell
|
||||
:class: copyable
|
||||
|
||||
mc policy links ALIAS/PATH
|
||||
mc anonymous links ALIAS/PATH
|
||||
|
||||
- Replace :mc-cmd:`ALIAS <mc policy get ALIAS>` with the
|
||||
- Replace :mc-cmd:`ALIAS <mc anonymous get ALIAS>` with the
|
||||
:mc-cmd:`alias <mc alias>` of a configured S3-compatible host.
|
||||
|
||||
- Replace :mc-cmd:`PATH <mc policy get ALIAS>` with the destination bucket.
|
||||
- Replace :mc-cmd:`PATH <mc anonymous get ALIAS>` with the destination bucket.
|
||||
|
||||
Behavior
|
||||
--------
|
@ -1,8 +1,8 @@
|
||||
.. _minio-mc-policy-list:
|
||||
|
||||
==================
|
||||
``mc policy list``
|
||||
==================
|
||||
=====================
|
||||
``mc anonymous list``
|
||||
=====================
|
||||
|
||||
.. default-domain:: minio
|
||||
|
||||
@ -10,14 +10,14 @@
|
||||
:local:
|
||||
:depth: 2
|
||||
|
||||
.. mc:: mc policy list
|
||||
.. mc:: mc anonymous list
|
||||
|
||||
Syntax
|
||||
------
|
||||
|
||||
.. start-mc-policy-list-desc
|
||||
|
||||
The :mc:`mc policy list` retrieves all anonymous (i.e. unauthenticated or
|
||||
The :mc:`mc anonymous list` retrieves all anonymous (i.e. unauthenticated or
|
||||
public) access policies for a bucket.
|
||||
|
||||
.. end-mc-policy-list-desc
|
||||
@ -36,7 +36,7 @@ and perform actions consistent with the specified policy without
|
||||
.. code-block:: shell
|
||||
:class: copyable
|
||||
|
||||
mc policy list myminio/mydata
|
||||
mc anonymous list myminio/mydata
|
||||
|
||||
.. tab-item:: SYNTAX
|
||||
|
||||
@ -81,18 +81,18 @@ Examples
|
||||
List Anonymous Policies for Bucket
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Use :mc:`mc policy list` to list the anonymous policies for a
|
||||
Use :mc:`mc anonymous list` to list the anonymous policies for a
|
||||
bucket:
|
||||
|
||||
.. code-block:: shell
|
||||
:class: copyable
|
||||
|
||||
mc policy list ALIAS/PATH
|
||||
mc anonymous list ALIAS/PATH
|
||||
|
||||
- Replace :mc-cmd:`ALIAS <mc policy get ALIAS>` with the
|
||||
- Replace :mc-cmd:`ALIAS <mc anonymous get ALIAS>` with the
|
||||
:mc-cmd:`alias <mc alias>` of a configured S3-compatible host.
|
||||
|
||||
- Replace :mc-cmd:`PATH <mc policy get ALIAS>` with the destination bucket.
|
||||
- Replace :mc-cmd:`PATH <mc anonymous get ALIAS>` with the destination bucket.
|
||||
|
||||
Behavior
|
||||
--------
|
@ -1,8 +1,8 @@
|
||||
.. _minio-mc-policy-set-json:
|
||||
|
||||
======================
|
||||
``mc policy set-json``
|
||||
======================
|
||||
=========================
|
||||
``mc anonymous set-json``
|
||||
=========================
|
||||
|
||||
.. default-domain:: minio
|
||||
|
||||
@ -10,14 +10,14 @@
|
||||
:local:
|
||||
:depth: 2
|
||||
|
||||
.. mc:: mc policy set-json
|
||||
.. mc:: mc anonymous set-json
|
||||
|
||||
Syntax
|
||||
------
|
||||
|
||||
.. start-mc-policy-set-json-desc
|
||||
|
||||
The :mc:`mc policy set-json` command sets anonymous (i.e. unauthenticated or
|
||||
The :mc:`mc anonymous set-json` command sets anonymous (i.e. unauthenticated or
|
||||
public) access :ref:`policies <minio-policy>` for a bucket using using an IAM
|
||||
:s3-docs:`JSON policy document <using-iam-policies>`.
|
||||
|
||||
@ -37,7 +37,7 @@ and perform actions consistent with the specified policy without
|
||||
.. code-block:: shell
|
||||
:class: copyable
|
||||
|
||||
mc policy set-json ~/mydata-anonymous.json myminio/mydata
|
||||
mc anonymous set-json ~/mydata-anonymous.json myminio/mydata
|
||||
|
||||
.. tab-item:: SYNTAX
|
||||
|
||||
@ -64,7 +64,7 @@ Parameters
|
||||
.. mc-cmd:: ALIAS
|
||||
|
||||
*Required* The full path to the bucket or bucket prefix to which the
|
||||
command applies the specified :mc-cmd:`~mc policy set-json POLICY`.
|
||||
command applies the specified :mc-cmd:`~mc anonymous set-json POLICY`.
|
||||
|
||||
Specify the :ref:`alias <alias>` of the MinIO or other
|
||||
S3-compatible service *and* the full path to the bucket or bucket
|
||||
@ -87,37 +87,37 @@ Examples
|
||||
Set Anonymous Policy for Bucket
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Use :mc-cmd:`mc policy set-json` to set the anonymous policy for a
|
||||
Use :mc-cmd:`mc anonymous set-json` to set the anonymous policy for a
|
||||
bucket:
|
||||
|
||||
.. code-block:: shell
|
||||
:class: copyable
|
||||
|
||||
mc policy set-json POLICY ALIAS/PATH
|
||||
mc anonymous set-json POLICY ALIAS/PATH
|
||||
|
||||
- Replace :mc-cmd:`POLICY <mc policy set-json POLICY>` with a supported
|
||||
:mc-cmd:`POLICY <mc policy set-json POLICY>`.
|
||||
- Replace :mc-cmd:`POLICY <mc anonymous set-json POLICY>` with a supported
|
||||
:mc-cmd:`POLICY <mc anonymous set-json POLICY>`.
|
||||
|
||||
- Replace :mc-cmd:`ALIAS <mc policy set-json ALIAS>` with the
|
||||
- Replace :mc-cmd:`ALIAS <mc anonymous set-json ALIAS>` with the
|
||||
:mc-cmd:`alias <mc alias>` of a configured S3-compatible host.
|
||||
|
||||
- Replace :mc-cmd:`PATH <mc policy set-json ALIAS>` with the destination bucket.
|
||||
- Replace :mc-cmd:`PATH <mc anonymous set-json ALIAS>` with the destination bucket.
|
||||
|
||||
Remove Anonymous Policy for Bucket
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Use :mc:`mc policy set` to clear the anonymous policy for a
|
||||
Use :mc:`mc anonymous set` to clear the anonymous policy for a
|
||||
bucket:
|
||||
|
||||
.. code-block:: shell
|
||||
:class: copyable
|
||||
|
||||
mc policy set none ALIAS/PATH
|
||||
mc anonymous set none ALIAS/PATH
|
||||
|
||||
- Replace :mc-cmd:`ALIAS <mc policy set ALIAS>` with the
|
||||
- Replace :mc-cmd:`ALIAS <mc anonymous set ALIAS>` with the
|
||||
:mc-cmd:`alias <mc alias>` of a configured S3-compatible host.
|
||||
|
||||
- Replace :mc-cmd:`PATH <mc policy set ALIAS>` with the destination bucket.
|
||||
- Replace :mc-cmd:`PATH <mc anonymous set ALIAS>` with the destination bucket.
|
||||
|
||||
Behavior
|
||||
--------
|
@ -1,8 +1,8 @@
|
||||
.. _minio-mc-policy-set:
|
||||
|
||||
=================
|
||||
``mc policy set``
|
||||
=================
|
||||
====================
|
||||
``mc anonymous set``
|
||||
====================
|
||||
|
||||
.. default-domain:: minio
|
||||
|
||||
@ -10,15 +10,15 @@
|
||||
:local:
|
||||
:depth: 2
|
||||
|
||||
.. mc:: mc policy
|
||||
.. mc:: mc policy set
|
||||
.. mc:: mc anonymous
|
||||
.. mc:: mc anonymous set
|
||||
|
||||
Syntax
|
||||
------
|
||||
|
||||
.. start-mc-policy-set-desc
|
||||
|
||||
The :mc:`mc policy set` command sets anonymous (i.e. unauthenticated or public)
|
||||
The :mc:`mc anonymous set` command sets anonymous (i.e. unauthenticated or public)
|
||||
access :ref:`policies <minio-policy>` for a bucket.
|
||||
|
||||
.. end-mc-policy-set-desc
|
||||
@ -29,7 +29,7 @@ and perform actions consistent with the specified policy without
|
||||
|
||||
To set anonymous bucket policies using an IAM
|
||||
:s3-docs:`JSON policy <using-iam-policies>`, use the
|
||||
:mc-cmd:`mc policy set-json` command.
|
||||
:mc-cmd:`mc anonymous set-json` command.
|
||||
|
||||
.. tab-set::
|
||||
|
||||
@ -41,9 +41,9 @@ To set anonymous bucket policies using an IAM
|
||||
.. code-block:: shell
|
||||
:class: copyable
|
||||
|
||||
mc policy set upload myminio/uploads
|
||||
mc policy set download myminio/downloads
|
||||
mc policy set public myminio/public
|
||||
mc anonymous set upload myminio/uploads
|
||||
mc anonymous set download myminio/downloads
|
||||
mc anonymous set public myminio/public
|
||||
|
||||
Applications can perform the following operations without authentication:
|
||||
|
||||
@ -80,7 +80,7 @@ Parameters
|
||||
.. mc-cmd:: ALIAS
|
||||
|
||||
*Required* The full path to the bucket or bucket prefix to which the
|
||||
command applies the specified :mc-cmd:`~mc policy set PERMISSION`.
|
||||
command applies the specified :mc-cmd:`~mc anonymous set PERMISSION`.
|
||||
|
||||
Specify the :ref:`alias <alias>` of the MinIO or other
|
||||
S3-compatible service *and* the full path to the bucket or bucket
|
||||
@ -112,21 +112,21 @@ Examples
|
||||
Set Anonymous Policy for Bucket
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Use :mc:`mc policy set` to set the anonymous policy for a
|
||||
Use :mc:`mc anonymous set` to set the anonymous policy for a
|
||||
bucket:
|
||||
|
||||
.. code-block:: shell
|
||||
:class: copyable
|
||||
|
||||
mc policy set POLICY ALIAS/PATH
|
||||
mc anonymous set POLICY ALIAS/PATH
|
||||
|
||||
- Replace :mc-cmd:`POLICY <mc policy set PERMISSION>` with a supported
|
||||
:mc-cmd:`permission <mc policy set PERMISSION>`.
|
||||
- Replace :mc-cmd:`POLICY <mc anonymous set PERMISSION>` with a supported
|
||||
:mc-cmd:`permission <mc anonymous set PERMISSION>`.
|
||||
|
||||
- Replace :mc-cmd:`ALIAS <mc policy set ALIAS>` with the
|
||||
- Replace :mc-cmd:`ALIAS <mc anonymous set ALIAS>` with the
|
||||
:mc-cmd:`alias <mc alias>` of a configured S3-compatible host.
|
||||
|
||||
- Replace :mc-cmd:`PATH <mc policy set ALIAS>` with the destination bucket.
|
||||
- Replace :mc-cmd:`PATH <mc anonymous set ALIAS>` with the destination bucket.
|
||||
|
||||
Behavior
|
||||
--------
|
Reference in New Issue
Block a user