diff options
author | Satoru Moriya <satoru.moriya.br@hitachi.com> | 2016-02-10 14:29:34 +0900 |
---|---|---|
committer | Hironori Shiina <shiina.hironori@jp.fujitsu.com> | 2017-07-03 15:51:59 +0900 |
commit | c380e05dbf84079b01fb3b0ea099ef9b293b9b3d (patch) | |
tree | aeb50deaf2fb9648dd5a0786dbb739dcef60acf1 /etc/ironic | |
parent | ddcd97714cd5b27ac43ac0ef1138c13392223b90 (diff) | |
download | ironic-c380e05dbf84079b01fb3b0ea099ef9b293b9b3d.tar.gz |
Add REST API for volume connector and volume target operation
This patch introduces following REST API endpoints to get/set volume
connector and volume target in Ironic.
- GET /v1/volume
- GET /v1/nodes/<node_uuid or name>/volume
- {GET, POST} /v1/volume/connectors
- {GET, PATCH, DELETE} /v1/volume/connectors/<volume_connector_uuid>
- GET /v1/nodes/<node_uuid or name>/volume/connectors
- {GET, POST} /v1/volume/targets
- {GET, PATCH, DELETE} /v1/volume/targets/<volume_target_uuid>
- GET /v1/nodes/<node_uuid or name>/volume/targets
This also adds CRUD notifications for volume connector and volume
target.
Co-Authored-By: Tomoki Sekiyama <tomoki.sekiyama.qu@hitachi.com>
Co-Authored-By: David Lenwell <dlenwell@gmail.com>
Co-Authored-By: Hironori Shiina <shiina.hironori@jp.fujitsu.com>
Change-Id: I328a698f2109841e1e122e17fea4b345c4179161
Partial-Bug: 1526231
Diffstat (limited to 'etc/ironic')
-rw-r--r-- | etc/ironic/policy.json.sample | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/ironic/policy.json.sample b/etc/ironic/policy.json.sample index 8a418774d..8857fdf8b 100644 --- a/etc/ironic/policy.json.sample +++ b/etc/ironic/policy.json.sample @@ -133,3 +133,15 @@ # Access IPA ramdisk functions #"baremetal:driver:ipa_lookup": "rule:public_api" +# Retrieve Volume connector and target records +#"baremetal:volume:get": "rule:is_admin or rule:is_observer" + +# Create Volume connector and target records +#"baremetal:volume:create": "rule:is_admin" + +# Delete Volume connetor and target records +#"baremetal:volume:delete": "rule:is_admin" + +# Update Volume connector and target records +#"baremetal:volume:update": "rule:is_admin" + |