c380e05dbf
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
148 lines
4.2 KiB
Plaintext
148 lines
4.2 KiB
Plaintext
# Legacy rule for cloud admin access
|
|
#"admin_api": "role:admin or role:administrator"
|
|
|
|
# Internal flag for public API routes
|
|
#"public_api": "is_public_api:True"
|
|
|
|
# Show or mask secrets within node driver information in API responses
|
|
#"show_password": "!"
|
|
|
|
# Show or mask secrets within instance information in API responses
|
|
#"show_instance_secrets": "!"
|
|
|
|
# May be used to restrict access to specific projects
|
|
#"is_member": "(project_domain_id:default or project_domain_id:None) and (project_name:demo or project_name:baremetal)"
|
|
|
|
# Read-only API access
|
|
#"is_observer": "rule:is_member and (role:observer or role:baremetal_observer)"
|
|
|
|
# Full read/write API access
|
|
#"is_admin": "rule:admin_api or (rule:is_member and role:baremetal_admin)"
|
|
|
|
# Retrieve Node records
|
|
#"baremetal:node:get": "rule:is_admin or rule:is_observer"
|
|
|
|
# Retrieve Node boot device metadata
|
|
#"baremetal:node:get_boot_device": "rule:is_admin or rule:is_observer"
|
|
|
|
# View Node power and provision state
|
|
#"baremetal:node:get_states": "rule:is_admin or rule:is_observer"
|
|
|
|
# Create Node records
|
|
#"baremetal:node:create": "rule:is_admin"
|
|
|
|
# Delete Node records
|
|
#"baremetal:node:delete": "rule:is_admin"
|
|
|
|
# Update Node records
|
|
#"baremetal:node:update": "rule:is_admin"
|
|
|
|
# Request active validation of Nodes
|
|
#"baremetal:node:validate": "rule:is_admin"
|
|
|
|
# Set maintenance flag, taking a Node out of service
|
|
#"baremetal:node:set_maintenance": "rule:is_admin"
|
|
|
|
# Clear maintenance flag, placing the Node into service again
|
|
#"baremetal:node:clear_maintenance": "rule:is_admin"
|
|
|
|
# Change Node boot device
|
|
#"baremetal:node:set_boot_device": "rule:is_admin"
|
|
|
|
# Change Node power status
|
|
#"baremetal:node:set_power_state": "rule:is_admin"
|
|
|
|
# Change Node provision status
|
|
#"baremetal:node:set_provision_state": "rule:is_admin"
|
|
|
|
# Change Node RAID status
|
|
#"baremetal:node:set_raid_state": "rule:is_admin"
|
|
|
|
# Get Node console connection information
|
|
#"baremetal:node:get_console": "rule:is_admin"
|
|
|
|
# Change Node console status
|
|
#"baremetal:node:set_console_state": "rule:is_admin"
|
|
|
|
# List VIFs attached to node
|
|
#"baremetal:node:vif:list": "rule:is_admin"
|
|
|
|
# Attach a VIF to a node
|
|
#"baremetal:node:vif:attach": "rule:is_admin"
|
|
|
|
# Detach a VIF from a node
|
|
#"baremetal:node:vif:detach": "rule:is_admin"
|
|
|
|
# Inject NMI for a node
|
|
#"baremetal:node:inject_nmi": "rule:is_admin"
|
|
|
|
# Retrieve Port records
|
|
#"baremetal:port:get": "rule:is_admin or rule:is_observer"
|
|
|
|
# Create Port records
|
|
#"baremetal:port:create": "rule:is_admin"
|
|
|
|
# Delete Port records
|
|
#"baremetal:port:delete": "rule:is_admin"
|
|
|
|
# Update Port records
|
|
#"baremetal:port:update": "rule:is_admin"
|
|
|
|
# Retrieve Portgroup records
|
|
#"baremetal:portgroup:get": "rule:is_admin or rule:is_observer"
|
|
|
|
# Create Portgroup records
|
|
#"baremetal:portgroup:create": "rule:is_admin"
|
|
|
|
# Delete Portgroup records
|
|
#"baremetal:portgroup:delete": "rule:is_admin"
|
|
|
|
# Update Portgroup records
|
|
#"baremetal:portgroup:update": "rule:is_admin"
|
|
|
|
# Retrieve Chassis records
|
|
#"baremetal:chassis:get": "rule:is_admin or rule:is_observer"
|
|
|
|
# Create Chassis records
|
|
#"baremetal:chassis:create": "rule:is_admin"
|
|
|
|
# Delete Chassis records
|
|
#"baremetal:chassis:delete": "rule:is_admin"
|
|
|
|
# Update Chassis records
|
|
#"baremetal:chassis:update": "rule:is_admin"
|
|
|
|
# View list of available drivers
|
|
#"baremetal:driver:get": "rule:is_admin or rule:is_observer"
|
|
|
|
# View driver-specific properties
|
|
#"baremetal:driver:get_properties": "rule:is_admin or rule:is_observer"
|
|
|
|
# View driver-specific RAID metadata
|
|
#"baremetal:driver:get_raid_logical_disk_properties": "rule:is_admin or rule:is_observer"
|
|
|
|
# Access vendor-specific Node functions
|
|
#"baremetal:node:vendor_passthru": "rule:is_admin"
|
|
|
|
# Access vendor-specific Driver functions
|
|
#"baremetal:driver:vendor_passthru": "rule:is_admin"
|
|
|
|
# Send heartbeats from IPA ramdisk
|
|
#"baremetal:node:ipa_heartbeat": "rule:public_api"
|
|
|
|
# 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"
|
|
|