Update export location retrieval APIs
Update the export location retrieval APIs for shares and share instances to do the following:
1. Restore the API-to-view-builder calling convention of index-->summary and show-->detail. In so doing, modify which values are returned by the list commands (currently, all but the timestamps). The admin context from the request determines whether the admin-only values are returned.
2. Report the UUID field from the export location table as 'id' to be consistent will all other objects returned via the Manila REST API.
3. Add the preferred flag to the output of the API. Drivers can report preferred:True or preferred:False in their export location metadata, and this standard flag will be returned via the REST interface, like this:
+------
| Property | Value |
+------
| is_admin_only | False |
| uuid | df828d44-
| share_instance_id | 1b40e873-
| path | 10.0.0.
| created_at | 2016-02-
| updated_at | 2016-02-
| preferred | True |
+------
Ideally, we could do some of this cleanup in multiple commits, but it is advantageous to do so in a single commit in order to do it in a single microversion bump. It is also more expedient at this time in the Mitaka cycle.
Blueprint information
- Status:
- Complete
- Approver:
- Ben Swartzlander
- Priority:
- Low
- Drafter:
- Clinton Knight
- Direction:
- Approved
- Assignee:
- Clinton Knight
- Definition:
- Approved
- Series goal:
- Accepted for mitaka
- Implementation:
- Implemented
- Milestone target:
- mitaka-3
- Started by
- Clinton Knight
- Completed by
- Ben Swartzlander
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Add preferred flag to export location metadata
Gerrit topic: https:/