Delete a Role
-------------
-To delete a role, execute the following::
+To delete a role, run a command of the following form:
- radosgw-admin role delete --role-name={role-name}
+.. prompt:: bash
+
+ radosgw-admin role delete --role-name={role-name}
Request Parameters
~~~~~~~~~~~~~~~~~~
:Description: Name of the role.
:Type: String
-For example::
+For example:
+
+.. prompt:: bash
- radosgw-admin role delete --role-name=S3Access1
+ radosgw-admin role delete --role-name=S3Access1
-Note: A role can be deleted only when it doesn't have any permission policy attached to it.
+Note: A role can be deleted only when it has no permission policy attached to
+it.
Get a Role
----------
-To get information about a role, execute the following::
+To get information about a role, run a command of the following form:
- radosgw-admin role get --role-name={role-name}
+.. prompt:: bash
+
+ radosgw-admin role get --role-name={role-name}
Request Parameters
~~~~~~~~~~~~~~~~~~
:Description: Name of the role.
:Type: String
-For example::
+For example:
+
+.. prompt:: bash
- radosgw-admin role get --role-name=S3Access1
+ radosgw-admin role get --role-name=S3Access1
.. code-block:: javascript
List Roles
----------
-To list roles with a specified path prefix, execute the following::
+To list roles with a specified path prefix, run a command of the following form:
- radosgw-admin role list [--path-prefix ={path prefix}]
+.. prompt:: bash
+
+ radosgw-admin role list [--path-prefix ={path prefix}]
Request Parameters
~~~~~~~~~~~~~~~~~~
``path-prefix``
-:Description: Path prefix for filtering roles. If this is not specified, all roles are listed.
+:Description: Path prefix for filtering roles. If this is not specified, all
+ roles are listed.
:Type: String
-For example::
+For example:
+
+.. prompt:: bash
- radosgw-admin role list --path-prefix="/application"
+ radosgw-admin role list --path-prefix="/application"
.. code-block:: javascript
}
]
-
Update Assume Role Policy Document of a role
--------------------------------------------
POST "<hostname>?Action=DeleteRole&RoleName=S3Access"
-Note: A role can be deleted only when it doesn't have any permission policy attached to it.
+Note: A role can be deleted only when it doesn't have any permission policy
+attached to it. If you intend to delete a role, you must first delete any
+policies attached to it.
Get a Role
----------