150 Commits

Author SHA1 Message Date
Zuul
50336e2ed4 Merge "Correct json format in api-ref" 2019-08-14 00:21:48 +00:00
zhangqing
fe43d281f9 Correct json format in api-ref
Update symbols in api-ref/samples with correct json format.

Change-Id: If4ea56324e6187e0eaab70503afc5ad7944c9024
2019-08-13 17:05:33 +08:00
Zuul
cc830350f9 Merge "[api-ref] Correct share metadata API ref" 2019-07-27 10:30:28 +00:00
Goutham Pacha Ravi
b39bc70093 [api-ref] Correct share metadata API ref
- Clarify the difference between PUT and POST
  on the /shares/<ID>/metadata URL
- Add ref for API to retrieve a single metadata
  item
- Add more notes regarding API behavior

Partial-Bug: #1760644
Change-Id: Ic976e0436584b86938c96db571022e96b4592d1f
2019-07-26 15:13:41 -07:00
Goutham Pacha Ravi
e5582cc5a6 [api-ref] Use relative links and fix grammar
When referring to documents that are published
from the same folder, we can use relative links.

Change-Id: I431e20713e1b91be3bf9fa2f57a9c9b88519d6b4
2019-07-22 12:50:43 -07:00
Andreas Jaeger
7916986e64 Update api-ref location
The api documentation is now published on docs.openstack.org instead
of developer.openstack.org. Update all links that are changed to the
new location.

Note that the location API location /shared-file-system and not
/shared-file-systems.

Note that redirects will be set up as well but let's point now to the
new location.

For details, see:
http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007828.html

Change-Id: I86f50af83be699fa7e0fb064abb20324e2d87b86
2019-07-22 19:15:50 +02:00
pengyuesheng
5c1f27f69f Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

This will show other versions of the doc, too.

Change-Id: I2f8e4fec3aa48b91d6ab636504ecc90553a4b802
2019-07-01 15:30:47 +08:00
Zuul
595c4e34d7 Merge "[api-ref] Update JSON samples for scheduler-stats API" 2019-05-20 22:18:22 +00:00
Goutham Pacha Ravi
f1042ed49b [api-ref] Update JSON samples for scheduler-stats API
The pools API responses have evolved quite a bit, and
the current state must be reflected in our docs.

Change-Id: I43fb5617911abdab45cce4352dc3377b5b10badf
2019-05-06 17:31:45 -07:00
shaoxj
2736d4adcc The parameters of 'list shares' are optional
Only 'project_id' in the path is required,
other parameters are not required

Partial-Bug: #1760644
Change-Id: I8f5735f8b828f33c95139e5a963f56b5b6e9105a
2019-04-04 19:03:38 +00:00
Goutham Pacha Ravi
4ffca949c2 [api-ref] Delete unused parameters
TrivialFix
Related-Bug: #1760644
Change-Id: I0eb4282b9162ba8ab83abb925828d5b1cfb333b2
2019-04-04 16:00:08 +00:00
Goutham Pacha Ravi
5bf0337396 [api-ref] De-duplicate name and description parameters
Many resources in manila have user-defined
names and descriptions. All of them have the
same restrictions that apply, so represent them
as the fewest parameters needed.

Having common parameters is easier to maintain in
the documentation.

Change-Id: Ib175e8d78e4240bf40d87a47af2459ac520fb24a
Partial-Bug: #1760644
2019-04-04 16:00:02 +00:00
Goutham Pacha Ravi
f185ff0f44 [api-ref] De-duplicate date and time parameters
Many APIs present information when the resource
in question was 'created_at' and 'updated_at'.

Having common parameters is easier to maintain in
the documentation since the description is the same
across the board.

Change-Id: Ia5d4ac399fe0d7983c61f5c5e0245d0987e97d6a
Partial-Bug: #1760644
2019-04-04 15:59:32 +00:00
Thomas Bechtold
d7140ffe09 [api-ref] Replace "tenant" terminology with "project"
Nowadays "project" and "project_id" are used instead of "tenant" in
the OpenStack world. See [1] and [2].

- Replace "tenant_id" in the API paths to "project_id"
- For most manila resources, the "project_id" in an API response body
  refers to the project that owns the resource. So, create a unified
  parameter and share that across the APIs.
- Fix path variable names, and their order
- Fix usage of "UUID" to refer to project and user IDs
- Fix query parameters

[1] https://docs.openstack.org/operations-guide/ops-projects-users.html
[2] https://developer.openstack.org/api-ref/identity/v3/index.html#projects

Partial-Bug: #1760644
Co-Authored-By: Goutham Pacha Ravi <gouthampravi@gmail.com>
Change-Id: I64e4ef8ad258d07c7d80d11a4d015c4b82156722
2019-04-04 08:58:01 -07:00
Zuul
fb4a1b81f4 Merge "[doc][api-ref] snapshot user_id and project_id fields" 2019-04-04 15:45:49 +00:00
Zuul
04d4bbd6a6 Merge "[doc][api-ref] Fix annotation and missing parameters" 2019-03-28 01:18:59 +00:00
Zuul
5db9e3ef32 Merge "Add api-ref for manage/unmanage with DHSS=True" 2019-03-27 20:26:13 +00:00
Goutham Pacha Ravi
41d243c394 [doc][api-ref] Fix annotation and missing parameters
- Call out the maximum API version in Stein (2.49)
- Add parameter 'cast_rules_to_readonly' to share instance API ref
- Remove parameters 'export_location' and 'export_locations' from
  share instance API ref.
- Add "min_version" and "max_version" annotations on parameters
  where missing.
- Add "versionadded" annotation to APIs
- Add "DEPRECATED" annotation to deprecated APIs along with
  a warning message.

Identical changes to the manage/unmanage APIs are handled
in https://review.openstack.org/#/c/647973/

Partial-Bug: #1760644
Change-Id: I5342cc26d1cbeea8ca3d55868e0f69d525333421
2019-03-27 20:09:29 +00:00
silvacarloss
3fe22863db Add api-ref for manage/unmanage with DHSS=True
This patch updates the manila api-ref adding content to the
manage/unmanage of share servers with DHSS=True feature.

Partial-Bug: #1818758
Change-Id: Ia63762df5cfb2c4b47cf59186ceb571b4c79c31b
2019-03-27 11:45:38 -07:00
Goutham Pacha Ravi
5cd643785d [doc][api-ref] Clarify manage/unmanage APIs
Clarify the usage of these APIs wrt DHSS=True/False
drivers.

Partial-Bug: #1818758
Partial-Bug: #1760644
Change-Id: I0fb239a44dee5b2c8da1d469ae761e780d14b4b2
2019-03-26 23:54:05 -07:00
Goutham Pacha Ravi
f8ddadba8d [doc][api-ref] snapshot user_id and project_id fields
Patch addresses a documentation gap.

Change-Id: Ia07218201322fa222474e39e3b44d9dcd68c60aa
Closes-Bug: #1594372
2019-03-22 17:59:02 +00:00
Zuul
c3d697e514 Merge "NetApp ONTAP: allow multiple DNS IPs" 2019-03-07 17:29:56 +00:00
zhongjun2
22656d097c Add api ref for access rule metadata feature
Partially-implements: bp metadata-for-access-rule
Change-Id: Icbac8ec427e23f6a781a7d3e682fe4852fa16179
2019-02-14 17:15:31 -08:00
Maurice Schreiber
192b4d128d NetApp ONTAP: allow multiple DNS IPs
The security service dns_ip parameter also takes a list of
comma separated DNS IPs for vserver dns configuration.
Allows HA setup, where DNS can be down for maintenance.

Change-Id: I1da99d0b44778d3ccaaff5871dfcb175b8cdbc02
2019-01-30 16:55:28 +00:00
Goutham Pacha Ravi
53918308c8 Separate APIs for share & replica export locations
Users of replicated shares expect to see primary
export locations when viewing information regarding
the share. Because we collate exports of all replicas
within the export locations APIs, it becomes hard for
users to discern which exports belong to the primary
share. For secondary replicas, users would also need
additional information (availability zone, state of the
replication) to work with.

Introduce micro-version 2.47 from which the export locations
API (GET /v2/{tenant_id}/shares/{share_id}/export_locations)
no longer provides export locations of non-active share
replicas. A new API has been introduced to provide export
location details for share replicas, both active and non-active.
(GET /v2/{tenant_id}/share-replicas/{share_replica_id}/export-locations)

The new API provides the replica's state and availability zone
in addition to the export location information.

APIImpact
Implements: bp export-locations-az
Change-Id: I0a1d9dd00b4c13ac01988e30ca2b7d7ce4a747d1
2019-01-07 01:51:16 -08:00
Maurice Schreiber
a84423a1be
[api-ref] Added share servers show and corrected path to details
Change-Id: Idc0fbd9f786b50dd4899258337aa5bcb61c4ab0a
Closes-Bug: #1795604
2018-11-20 11:34:27 +01:00
wangqiangbj
515d61d46f adjust response code in 'service.inc'
TrivialFix
Change-Id: I7c164b1942a485e1206f76d8700135cbb888303c
2018-08-16 08:48:33 +08:00
Zuul
65076ffba8 Merge "Api-ref: Add min_version in the API parameters" 2018-08-04 02:03:25 +00:00
Zuul
3abfbef591 Merge "Retrieve is_default value to fix empty display in CLI" 2018-07-24 19:31:55 +00:00
Zuul
f8360539c0 Merge "Api-ref: change fix `extra-spec-key` key in path" 2018-07-24 18:39:56 +00:00
lijunbo
fb7ac9b8bf Api-ref: Add min_version in the API parameters
TrivialFix:

Change-Id: Idc29bb1744e4760f72be706c03eb6451465d5d59
Closes-bug: #1614955
2018-07-24 23:15:46 +08:00
lijunbo
cf677f2603 Retrieve is_default value to fix empty display in CLI
This bug is from path[1], when we use manila client to create
a share type or share group type, the is_default value is always
empty, so add the is_default value when we create each share type
or share group type.

Closes-bug: #1743941
[1] Ib264d8422fe57701f990cbbf7ea5d1e90b8b0008

Change-Id: Ia8bcb632591fc0b5438847b22ec59c2039ecf5f1
2018-07-24 12:00:58 +08:00
Zuul
c204daa5ee Merge "Api-ref: Add missing parameter in the version api" 2018-07-17 19:09:25 +00:00
junboli
7b8e6af033 Api-ref: Add missing parameter in the version api
Add missing updated parameter in the version api.
besides, change media-types parameter in body and
required.

Change-Id: Ib0123f16a969ecc98f5dccd2a03eab621e02d8c8
2018-07-17 15:36:41 +00:00
Goutham Pacha Ravi
2f42c984e5 Allow setting test API microversions in gate tests
Add MANILA_TEMPEST_MIN_API_MICROVERSION and
MANILA_TEMPEST_MAX_API_MICROVERSION to the ci
post_test_hook. These options default to
the values specified in the api_version_request.py
file.

Also add the API Version History to the api-ref.

Change-Id: I21b3a705986216afb0ce73ca1f92571dda757408
Closes-Bug: #1781671
2018-07-16 08:41:03 -07:00
junboli
d3d7e4c69a Api-ref: change fix `extra-spec-key` key in path
TrivialFix:
In the API Unset an extra spec:
/v2/{tenant_id}/types/{share_type_id}/extra_specs/{extra-spec-key}
the key extra-spec-key should be in path, but it is in body, this
is to fix this.

Change-Id: Ia6f01a6bca369ca4b922a45e8e6ece4f583528c7
2018-07-16 14:10:10 +08:00
Zuul
32f7688bce Merge "API: Add `all_tenants` parameter" 2018-06-21 13:34:28 +00:00
Zuul
361ba5eac7 Merge "[API] Doc snapshot and share net deletion preconditions" 2018-06-21 03:46:15 +00:00
shaoxj
cdf1470879 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
2018-06-20 07:00:39 +00:00
Zuul
d7bbfce472 Merge "[Doc] Add 'gateway' and 'mtu' in share network api-ref" 2018-06-20 06:18:40 +00:00
shaoxj
ec629ec0b5 [API] Doc snapshot and share net deletion preconditions
1. Share snapshot state must be ``available`` or ``error``.
2. Share network must not be in use by any shares or share groups.

Change-Id: I4bc81ed3677c8d65059b47b22aec2edbecf2c55f
2018-06-18 19:55:49 +00:00
shaoxj
901308d12d Document the preconditions for deleting a share
Document both the share status that allows deletion and
dependencies of the share that prevent share deletion.

Change-Id: I5f076112e66a2d50394639dce50390d8cfb4922b
2018-06-12 17:31:45 +00:00
zhiguo.li
7ebbf8dd75 [Doc] Add 'gateway' and 'mtu' in share network api-ref
The attributes "gateway" and "mtu" are already added in Shared File
Systems API since version 2.18 and 2.20. This patch provides description
about them in response parameters, and adds them to response examples.

Change-Id: I55e3a04453a9edd20b5ca4e1627ae8c3ae5601cc
2018-06-09 22:21:43 +00:00
Maurice Schreiber
1bd9a1e8f4 Add ou to security service
Allows to configure in which organizational unit the share ends up

APIImpact

Change-Id: I70fd4e0ea7898e85dff59a927b3cb086d5e408ac
Needed-By: I77d87c8e6f98054f2f02bc4202c14314ff321964
Partial-Bug: #1696669
2018-04-24 15:04:40 -07:00
Zuul
fdd6f34599 Merge "Support filter search for share type API" 2018-04-21 10:12:28 +00:00
junboli
d80596b508 Support filter search for share type API
Add support for extra_specs filter search in type list API.

Change-Id: I43fbef2a32489f2064586a3674eb34329f3503c4
Implements: blueprint support-filter-search-for-share-type
2018-03-25 18:19:38 +08:00
Zuul
b62af449ae Merge "Move openstackdocstheme to extensions in api-ref" 2018-03-25 03:31:47 +00:00
junboli
acf8c99e9b Use rest_status_code for api-ref response codes
Rather than our freeform way of listing response codes in our
api-ref, we should be using the os-api-ref extension option to
get nicely formatted response code listings.

https://docs.openstack.org/os-api-ref/latest/usage.html#rest-status-code

Change-Id: Ibafafa2f9c3b301b5cdd9b1cb3b8b6d678faa731
2018-03-24 01:07:16 +00:00
junboli
cc4afb9aad Add docs for quota_class_set API
We have implemented quota-classes-show and quota-classes-update
api, but no api-ref is documented. This patch is to add api-ref
in the docs.

Change-Id: I275ee4fe048607a49368c4f985c055ab3a3bbfb6
Closes-bug: #1751683
2018-02-27 10:10:40 +08:00
leiyashuai
8639d9b69f Move openstackdocstheme to extensions in api-ref
Move openstackdocstheme to extensions. According to the guide below:
https://docs.openstack.org/openstackdocstheme/latest/

Change-Id: Iba6c11d432cdfc397f2cd2165c1fae7e7e0813fc
2018-02-12 17:17:25 +08:00