API: Add ``all_tenants`` parameter

When administrarots query snapshots, share networks, or security
services, they may set ``all_tenants`` to true to get records for all
OpenStack projects.

Change-Id: Ia208dec102295f1021ce5c4da88397e7946c8dba
This commit is contained in:
shaoxj 2018-02-12 09:42:52 +08:00 committed by Goutham Pacha Ravi
parent a7cf5117bc
commit cdf1470879
4 changed files with 11 additions and 3 deletions

View File

@ -126,9 +126,11 @@ action_id:
The ID of the action during which the message was created.
all_tenants:
description: |
(Admin only). Defines whether to list shares or share groups for
all tenants. Set to ``1`` to list shares or sharegroups for all tenants.
Set to ``0`` to list shares or share groups only for the current tenant.
(Admin only). Defines whether to list the requested resources for
all projects. Set to ``1`` to list resources for all projects.
Set to ``0`` to list resources only for the current tenant. Examples
of resources include shares, snapshots, share networks, security services
and share groups.
in: query
required: false
type: boolean

View File

@ -60,6 +60,7 @@ Request
.. rest_parameters:: parameters.yaml
- tenant_id: tenant_id_path
- all_tenants: all_tenants
Response parameters
-------------------
@ -104,6 +105,7 @@ Request
.. rest_parameters:: parameters.yaml
- tenant_id: tenant_id_path
- all_tenants: all_tenants
Response parameters
-------------------

View File

@ -63,6 +63,7 @@ Request
.. rest_parameters:: parameters.yaml
- tenant_id: tenant_id_path
- all_tenants: all_tenants
- name~: name_inexact_query
- description~: description_inexact_query
@ -108,6 +109,7 @@ Request
.. rest_parameters:: parameters.yaml
- tenant_id: tenant_id_path
- all_tenants: all_tenants
- name~: name_inexact_query
- description~: description_inexact_query

View File

@ -64,6 +64,7 @@ Request
.. rest_parameters:: parameters.yaml
- tenant_id: tenant_id_path
- all_tenants: all_tenants
- name~: name_inexact_query
- description~: description_inexact_query
@ -107,6 +108,7 @@ Request
.. rest_parameters:: parameters.yaml
- tenant_id: tenant_id_path
- all_tenants: all_tenants
- name~: name_inexact_query
- description~: description_inexact_query