diff --git a/cinder_v3/api_extensions/list_api_extensions.template b/cinder_v3/api_extensions/list_api_extensions.template new file mode 100644 index 0000000..9684645 --- /dev/null +++ b/cinder_v3/api_extensions/list_api_extensions.template @@ -0,0 +1,3 @@ +GET /v3/{|project_id|}/extensions HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/limits/limits_get.template b/cinder_v3/limits/limits_get.template new file mode 100644 index 0000000..311ea6d --- /dev/null +++ b/cinder_v3/limits/limits_get.template @@ -0,0 +1,3 @@ +GET /v3/{|project_id|}/limits HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/meta.json b/cinder_v3/meta.json new file mode 100644 index 0000000..2df47d5 --- /dev/null +++ b/cinder_v3/meta.json @@ -0,0 +1,5 @@ +{ + "token": {"type": "function", "val": "syntribos.extensions.identity.client:get_scoped_token_v3", "args":["user"], "fuzz": false}, + "project_id": {"type": "function", "val": "syntribos.extensions.identity.client:get_project_id_v3"}, + "rand_uuid": {"type": "function", "val": "syntribos.extensions.random_data.client:get_uuid"} +} \ No newline at end of file diff --git a/cinder_v3/os_quota_sets/default_quotas_get.template b/cinder_v3/os_quota_sets/default_quotas_get.template new file mode 100644 index 0000000..e13f0a6 --- /dev/null +++ b/cinder_v3/os_quota_sets/default_quotas_get.template @@ -0,0 +1,3 @@ +GET /v3/{|rand_uuid|}/os-quota-sets/defaults HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/os_quota_sets/quotas_delete.template b/cinder_v3/os_quota_sets/quotas_delete.template new file mode 100644 index 0000000..1b38867 --- /dev/null +++ b/cinder_v3/os_quota_sets/quotas_delete.template @@ -0,0 +1,3 @@ +DELETE /v3/{|rand_uuid|}/os-quota-sets/{|rand_uuid|} HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/os_quota_sets/quotas_user_delete.template b/cinder_v3/os_quota_sets/quotas_user_delete.template new file mode 100644 index 0000000..72c4de8 --- /dev/null +++ b/cinder_v3/os_quota_sets/quotas_user_delete.template @@ -0,0 +1,3 @@ +DELETE /v3/{|rand_uuid|}/os-quota-sets/{|rand_uuid|}/{|rand_uuid|} HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/os_quota_sets/show_details_user_get.template b/cinder_v3/os_quota_sets/show_details_user_get.template new file mode 100644 index 0000000..783ae0d --- /dev/null +++ b/cinder_v3/os_quota_sets/show_details_user_get.template @@ -0,0 +1,3 @@ +GET /v3/{|rand_uuid|}/os-quota-sets/{|rand_uuid|}/detail/{|rand_uuid|} HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/os_quota_sets/show_get.template b/cinder_v3/os_quota_sets/show_get.template new file mode 100644 index 0000000..9103f38 --- /dev/null +++ b/cinder_v3/os_quota_sets/show_get.template @@ -0,0 +1,3 @@ +GET /v3/{|rand_uuid|}/os-quota-sets/{|rand_uuid|} HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/os_quota_sets/show_quotas_get.template b/cinder_v3/os_quota_sets/show_quotas_get.template new file mode 100644 index 0000000..eeff3b0 --- /dev/null +++ b/cinder_v3/os_quota_sets/show_quotas_get.template @@ -0,0 +1,3 @@ +GET /v3/{|rand_uuid|}/os-quota-sets/{|rand_uuid|}/{|rand_uuid|} HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/os_quota_sets/update_put.template b/cinder_v3/os_quota_sets/update_put.template new file mode 100644 index 0000000..1d6ecae --- /dev/null +++ b/cinder_v3/os_quota_sets/update_put.template @@ -0,0 +1,10 @@ +PUT /v3/{|rand_uuid|}/os-quota-sets/{|rand_uuid|} HTTP/1.1 +Accept: application/json +Content-type: application/json +X-Auth-Token: |token| + +{ + "quota_set": { + "snapshots": 45 + } +} diff --git a/cinder_v3/os_quota_sets/update_quota_put.template b/cinder_v3/os_quota_sets/update_quota_put.template new file mode 100644 index 0000000..8810aab --- /dev/null +++ b/cinder_v3/os_quota_sets/update_quota_put.template @@ -0,0 +1,10 @@ +PUT /v3/{|rand_uuid|}/os-quota-sets/{|rand_uuid|}/{|rand_uuid|} HTTP/1.1 +Accept: application/json +Content-type: application/json +X-Auth-Token: |token| + +{ + "quota_set": { + "snapshots": 45 + } +} diff --git a/cinder_v3/os_volume_manage/manage_existing_volume_post.template b/cinder_v3/os_volume_manage/manage_existing_volume_post.template new file mode 100644 index 0000000..15ccbd7 --- /dev/null +++ b/cinder_v3/os_volume_manage/manage_existing_volume_post.template @@ -0,0 +1,23 @@ +POST /v3/{|rand_uuid|}/os-volume-manage HTTP/1.1 +Accept: application/json +Content-type: application/json +X-Auth-Token: |token| + +{ + "volume": { + "host": "geraint-VirtualBox", + "ref": { + "source-name": "existingLV", + "source-id": "1234" + }, + "name": "New Volume", + "availability_zone": "az2", + "description": "Volume imported from existingLV", + "volume_type": null, + "bootable": true, + "metadata": { + "key1": "value1", + "key2": "value2" + } + } +} diff --git a/cinder_v3/pools/pools_get.template b/cinder_v3/pools/pools_get.template new file mode 100644 index 0000000..5e7bfa1 --- /dev/null +++ b/cinder_v3/pools/pools_get.template @@ -0,0 +1,3 @@ +GET /v3/{|project_id|}/scheduler-stats/get_pools HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/qos/associate_qosvolume_get.template b/cinder_v3/qos/associate_qosvolume_get.template new file mode 100644 index 0000000..6157b50 --- /dev/null +++ b/cinder_v3/qos/associate_qosvolume_get.template @@ -0,0 +1,3 @@ +GET /v3/{|rand_uuid|}/qos-specs/{|rand_uuid|}/associate HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/qos/associations_qos_get.template b/cinder_v3/qos/associations_qos_get.template new file mode 100644 index 0000000..8654240 --- /dev/null +++ b/cinder_v3/qos/associations_qos_get.template @@ -0,0 +1,3 @@ +GET /v3/{|rand_uuid|}/qos-specs/{|rand_uuid|}/associations HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/qos/create_qos_post.template b/cinder_v3/qos/create_qos_post.template new file mode 100644 index 0000000..4f44572 --- /dev/null +++ b/cinder_v3/qos/create_qos_post.template @@ -0,0 +1,12 @@ +POST /v3/{|rand_uuid|}/qos-specs HTTP/1.1 +Accept: application/json +Content-type: application/json +X-Auth-Token: |token| + +{ + "qos_specs": { + "availability": "100", + "name": "reliability-spec", + "numberOfFailures": "0" + } +} diff --git a/cinder_v3/qos/disassociate_qos_get.template b/cinder_v3/qos/disassociate_qos_get.template new file mode 100644 index 0000000..abaeb2a --- /dev/null +++ b/cinder_v3/qos/disassociate_qos_get.template @@ -0,0 +1,3 @@ +GET /v3/{|rand_uuid|}/qos-specs/{|rand_uuid|}/disassociate_all HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/qos/disassociate_qosvolume_get.template b/cinder_v3/qos/disassociate_qosvolume_get.template new file mode 100644 index 0000000..2be491a --- /dev/null +++ b/cinder_v3/qos/disassociate_qosvolume_get.template @@ -0,0 +1,3 @@ +GET /v3/{|rand_uuid|}/qos-specs/{|rand_uuid|}/disassociate HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/qos/list_qos_get.template b/cinder_v3/qos/list_qos_get.template new file mode 100644 index 0000000..de13c98 --- /dev/null +++ b/cinder_v3/qos/list_qos_get.template @@ -0,0 +1,3 @@ +GET /v3/{|rand_uuid|}/qos-specs HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/qos/qos_specification_delete.template b/cinder_v3/qos/qos_specification_delete.template new file mode 100644 index 0000000..5309668 --- /dev/null +++ b/cinder_v3/qos/qos_specification_delete.template @@ -0,0 +1,3 @@ +DELETE /v3/{|rand_uuid|}/qos-specs/{|rand_uuid|} HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/qos/set_keys_put.template b/cinder_v3/qos/set_keys_put.template new file mode 100644 index 0000000..12a08fe --- /dev/null +++ b/cinder_v3/qos/set_keys_put.template @@ -0,0 +1,10 @@ +PUT /v3/{|rand_uuid|}/qos-specs/{|rand_uuid|} HTTP/1.1 +Accept: application/json +Content-type: application/json +X-Auth-Token: |token| + +{ + "qos_specs": { + "delay": "1" + } +} diff --git a/cinder_v3/qos/show_qosdetails_get.template b/cinder_v3/qos/show_qosdetails_get.template new file mode 100644 index 0000000..2a96de6 --- /dev/null +++ b/cinder_v3/qos/show_qosdetails_get.template @@ -0,0 +1,3 @@ +GET /v3/{|rand_uuid|}/qos-specs/{|rand_uuid|} HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/qos/unset_keys_put.template b/cinder_v3/qos/unset_keys_put.template new file mode 100644 index 0000000..80f1da8 --- /dev/null +++ b/cinder_v3/qos/unset_keys_put.template @@ -0,0 +1,10 @@ +PUT /v3/{|rand_uuid|}/qos-specs/{|rand_uuid|}/delete_keys HTTP/1.1 +Accept: application/json +Content-type: application/json +X-Auth-Token: |token| + +{ + "keys": [ + "key1" + ] +} diff --git a/cinder_v3/vol-image-data/vol-image-data_get.template b/cinder_v3/vol-image-data/vol-image-data_get.template new file mode 100644 index 0000000..fd55f1c --- /dev/null +++ b/cinder_v3/vol-image-data/vol-image-data_get.template @@ -0,0 +1,3 @@ +GET /v3/{|project_id|}/os-vol-image-meta HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/volume_type_access/add_private_volume_post.template b/cinder_v3/volume_type_access/add_private_volume_post.template new file mode 100644 index 0000000..bc6d1f4 --- /dev/null +++ b/cinder_v3/volume_type_access/add_private_volume_post.template @@ -0,0 +1,10 @@ +POST /v3/{|rand_uuid|}/types/{volume_type_id:CALL_EXTERNAL|syntribos.extensions.cinder.client:get_volume_type_id:[]|}/action HTTP/1.1 +Accept: application/json +Content-type: application/json +X-Auth-Token: |token| + +{ + "addProjectAccess": { + "project": "|rand_uuid|" + } +} diff --git a/cinder_v3/volume_type_access/list_private_volume_type_access_details.template b/cinder_v3/volume_type_access/list_private_volume_type_access_details.template new file mode 100644 index 0000000..9af8905 --- /dev/null +++ b/cinder_v3/volume_type_access/list_private_volume_type_access_details.template @@ -0,0 +1,3 @@ +GET /v3/{|rand_uuid|}/types/{volume_type_id:CALL_EXTERNAL|syntribos.extensions.cinder.client:get_volume_type_id:[]|}/os-volume-type-access HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/volume_type_access/remove_private_volume_post.template b/cinder_v3/volume_type_access/remove_private_volume_post.template new file mode 100644 index 0000000..fa5b251 --- /dev/null +++ b/cinder_v3/volume_type_access/remove_private_volume_post.template @@ -0,0 +1,10 @@ +POST /v3/{|rand_uuid|}/types/{volume_type_id:CALL_EXTERNAL|syntribos.extensions.cinder.client:get_volume_type_id:[]|}/action HTTP/1.1 +Accept: application/json +Content-type: application/json +X-Auth-Token: |token| + +{ + "removeProjectAccess": { + "project": "|rand_uuid|" + } +} diff --git a/cinder_v3/volumetransfer/volumetransfer_accept_post.template b/cinder_v3/volumetransfer/volumetransfer_accept_post.template new file mode 100644 index 0000000..a643c45 --- /dev/null +++ b/cinder_v3/volumetransfer/volumetransfer_accept_post.template @@ -0,0 +1,9 @@ +POST /v3/{|project_id|}/os-volume-transfer/{transfer_id:5b363906-6967-463c-bc05-6d284cf875ee}/accept HTTP/1.1 +Content-type: application/json +X-Auth-Token: |token| + +{ + "accept": { + "auth_key": "9266c59563c84664" + } +} diff --git a/cinder_v3/volumetransfer/volumetransfer_delete.template b/cinder_v3/volumetransfer/volumetransfer_delete.template new file mode 100644 index 0000000..4024c1b --- /dev/null +++ b/cinder_v3/volumetransfer/volumetransfer_delete.template @@ -0,0 +1,3 @@ +DELETE /v3/{|project_id|}/os-volume-transfer/{transfer_id:5b363906-6967-463c-bc05-6d284cf875ee}/accept HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/volumetransfer/volumetransfer_details_get.template b/cinder_v3/volumetransfer/volumetransfer_details_get.template new file mode 100644 index 0000000..1b3f5ef --- /dev/null +++ b/cinder_v3/volumetransfer/volumetransfer_details_get.template @@ -0,0 +1,3 @@ +GET /v3/{|project_id|}/os-volume-transfer/detail HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/volumetransfer/volumetransfer_get.template b/cinder_v3/volumetransfer/volumetransfer_get.template new file mode 100644 index 0000000..b56803a --- /dev/null +++ b/cinder_v3/volumetransfer/volumetransfer_get.template @@ -0,0 +1,3 @@ +GET /v3/{|project_id|}/os-volume-transfer/{transfer_id:5b363906-6967-463c-bc05-6d284cf875ee} HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/volumetransfer/volumetransfer_list_get.template b/cinder_v3/volumetransfer/volumetransfer_list_get.template new file mode 100644 index 0000000..32d5ec3 --- /dev/null +++ b/cinder_v3/volumetransfer/volumetransfer_list_get.template @@ -0,0 +1,3 @@ +GET /v3/{|project_id|}/os-volume-transfer HTTP/1.1 +Accept: application/json +X-Auth-Token: |token| diff --git a/cinder_v3/volumetransfer/volumetransfer_post.template b/cinder_v3/volumetransfer/volumetransfer_post.template new file mode 100644 index 0000000..236c4cb --- /dev/null +++ b/cinder_v3/volumetransfer/volumetransfer_post.template @@ -0,0 +1,10 @@ +POST /v3/{|project_id|}/os-volume-transfer HTTP/1.1 +Content-type: application/json +X-Auth-Token: |token| + +{ + "transfer": { + "volume_id": "c86b9af4-151d-4ead-b62c-5fb967af0e37", + "name": "first volume" + } +}