)]}'
{"api-ref/source/v2/volumes-v2-types.inc":[{"author":{"_account_id":26458,"name":"Brin Zhang","email":"zhangbailin@inspur.com","username":"zhangbailin"},"change_message_id":"bbfdda651dcb90452c33bdc09754aede2c20dede","unresolved":false,"context_lines":[{"line_number":387,"context_line":"Update an encryption type for v2"},{"line_number":388,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":389,"context_line":""},{"line_number":390,"context_line":".. rest_method::  PUT /v2/{project_id}/types/{volume_type_id}/encryption/{encryption_id}"},{"line_number":391,"context_line":""},{"line_number":392,"context_line":"Update an encryption type."},{"line_number":393,"context_line":""}],"source_content_type":"text/x-c++src","patch_set":2,"id":"df87a7cf_1aa80c8b","line":390,"range":{"start_line":390,"start_character":17,"end_line":390,"end_character":21},"updated":"2017-12-07 09:01:15.000000000","message":"In OpenStack API documentation https://developer.openstack.org/api-ref/block-storage/v2/,the rest_method is POST.\nIn addition,both POST and PUT can meet the conditions,so It\u0027s necessary change POST to PUT,do you think ?","commit_id":"45b70c5dccf56c0e6b23cafe8ecbdb13c163587e"},{"author":{"_account_id":23081,"name":"Jeremy Zhang","email":"zhangjun_inspur@163.com","username":"jeremy.zhang"},"change_message_id":"2a3fd7860f558c7bac3aaa43055b209b789eae33","unresolved":false,"context_lines":[{"line_number":387,"context_line":"Update an encryption type for v2"},{"line_number":388,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":389,"context_line":""},{"line_number":390,"context_line":".. rest_method::  PUT /v2/{project_id}/types/{volume_type_id}/encryption/{encryption_id}"},{"line_number":391,"context_line":""},{"line_number":392,"context_line":"Update an encryption type."},{"line_number":393,"context_line":""}],"source_content_type":"text/x-c++src","patch_set":2,"id":"df87a7cf_b30cabec","line":390,"range":{"start_line":390,"start_character":17,"end_line":390,"end_character":21},"in_reply_to":"df87a7cf_1aa80c8b","updated":"2017-12-07 11:15:45.000000000","message":"Ditto","commit_id":"45b70c5dccf56c0e6b23cafe8ecbdb13c163587e"}],"api-ref/source/v3/volumes-v3-types.inc":[{"author":{"_account_id":26458,"name":"Brin Zhang","email":"zhangbailin@inspur.com","username":"zhangbailin"},"change_message_id":"bbfdda651dcb90452c33bdc09754aede2c20dede","unresolved":false,"context_lines":[{"line_number":532,"context_line":"Update an encryption type"},{"line_number":533,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":534,"context_line":""},{"line_number":535,"context_line":".. rest_method::  PUT /v3/{project_id}/types/{volume_type_id}/encryption/{encryption_id}"},{"line_number":536,"context_line":""},{"line_number":537,"context_line":"Update an encryption type."},{"line_number":538,"context_line":""}],"source_content_type":"text/x-c++src","patch_set":2,"id":"df87a7cf_5a1694f3","line":535,"range":{"start_line":535,"start_character":18,"end_line":535,"end_character":21},"updated":"2017-12-07 09:01:15.000000000","message":"In OpenStack API documentation https://developer.openstack.org/api-ref/block-storage/v3/,the rest_method is POST.\nIn addition,both POST and PUT can meet the conditions,so It\u0027s necessary change POST to PUT,do you think ?","commit_id":"45b70c5dccf56c0e6b23cafe8ecbdb13c163587e"},{"author":{"_account_id":23081,"name":"Jeremy Zhang","email":"zhangjun_inspur@163.com","username":"jeremy.zhang"},"change_message_id":"2a3fd7860f558c7bac3aaa43055b209b789eae33","unresolved":false,"context_lines":[{"line_number":532,"context_line":"Update an encryption type"},{"line_number":533,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":534,"context_line":""},{"line_number":535,"context_line":".. rest_method::  PUT /v3/{project_id}/types/{volume_type_id}/encryption/{encryption_id}"},{"line_number":536,"context_line":""},{"line_number":537,"context_line":"Update an encryption type."},{"line_number":538,"context_line":""}],"source_content_type":"text/x-c++src","patch_set":2,"id":"df87a7cf_5368bf85","line":535,"range":{"start_line":535,"start_character":18,"end_line":535,"end_character":21},"in_reply_to":"df87a7cf_5a1694f3","updated":"2017-12-07 11:15:45.000000000","message":"Contents below are tested in my local env\n\n1. Show a encryption type\n\n[root@allinone ~]# curl -g -i -X GET http://allinone:8776/v3/d2d0ca5dd4494918a64f1b24b557fea6/types/a8946a97-7460-4802-9366-7c8c438015b5/encryption -H \"Accept: application/json\" -H \"X-Auth-Token: $token\" -H \"OpenStack-API-Version: volume latest\"\nHTTP/1.1 200 OK\nX-Compute-Request-Id: req-c6b409cc-f4c6-4578-8039-9d6fe1ac2a89\nContent-Type: application/json\nContent-Length: 342\nOpenstack-Api-Version: volume 3.27\nVary: OpenStack-API-Version\nX-Openstack-Request-Id: req-c6b409cc-f4c6-4578-8039-9d6fe1ac2a89\nDate: Thu, 07 Dec 2017 11:05:51 GMT\n\n{\"volume_type_id\": \"a8946a97-7460-4802-9366-7c8c438015b5\", \"control_location\": \"front-end\", \"deleted\": false, \"created_at\": \"2017-11-18T06:51:59.000000\", \"updated_at\": \"2017-12-07T11:05:10.000000\", \"encryption_id\": \"c308af79-223a-4ced-ad66-9081e2703098\", \"key_size\": 128, \"provider\": \"luksxxx\", \"deleted_at\": null, \"cipher\": \"aes-xts-plain64\"}\n\n\n2. Update a encryption type with POST method\n\n[root@allinone ~]# curl -g -i -X POST http://allinone:8776/v3/d2d0ca5dd4494918a64f1b24b557fea6/types/a8946a97-7460-4802-9366-7c8c438015b5/encryption/c308af79-223a-4ced-ad66-9081e2703098 -H \"Accept: application/json\" -H \"X-Auth-Token: $token\" -H \"OpenStack-API-Version: volume latest\" -H \"Content-Type: application/json\" -d \u0027{\"encryption\":{\"key_size\": 64}}\u0027\nHTTP/1.1 404 Not Found\nContent-Length: 112\nContent-Type: application/json; charset\u003dUTF-8\nX-Openstack-Request-Id: req-775d9f23-7d3a-4dfa-819d-a5edc834af20\nDate: Thu, 07 Dec 2017 11:05:21 GMT\n\n{\"message\": \"The resource could not be found.\u003cbr /\u003e\u003cbr /\u003e\\n\\n\\n\", \"code\": \"404 Not Found\", \"title\": \"Not Found\"}\n\n\n3. Update a encryption type with PUT method\n\n[root@allinone ~]# curl -g -i -X PUT http://allinone:8776/v3/d2d0ca5dd4494918a64f1b24b557fea6/types/a8946a97-7460-4802-9366-7c8c438015b5/encryption/c308af79-223a-4ced-ad66-9081e2703098 -H \"Accept: application/json\" -H \"X-Auth-Token: $token\" -H \"OpenStack-API-Version: volume latest\" -H \"Content-Type: application/json\" -d \u0027{\"encryption\":{\"key_size\": 64}}\u0027\nHTTP/1.1 200 OK\nX-Compute-Request-Id: req-d333131f-af55-434d-a9d7-9b7da076b1ee\nContent-Type: application/json\nContent-Length: 32\nOpenstack-Api-Version: volume 3.27\nVary: OpenStack-API-Version\nX-Openstack-Request-Id: req-d333131f-af55-434d-a9d7-9b7da076b1ee\nDate: Thu, 07 Dec 2017 11:05:10 GMT\n\n{\"encryption\": {\"key_size\": 64}}","commit_id":"45b70c5dccf56c0e6b23cafe8ecbdb13c163587e"}]}
