diff --git a/api-ref/source/v3/attachments.inc b/api-ref/source/v3/attachments.inc index fde3cc47065..97435dbd3c3 100644 --- a/api-ref/source/v3/attachments.inc +++ b/api-ref/source/v3/attachments.inc @@ -180,7 +180,7 @@ Creates an attachment. Available starting in the 3.27 microversion. -Normal response codes: 202 +Normal response codes: 200 Error response codes: badRequest(400), itemNotFound(404) @@ -285,7 +285,7 @@ Complete an attachment for a cinder volume. Available starting in the 3.44 microversion. -Normal response codes: 202 +Normal response codes: 204 Error response codes: badRequest(400), itemNotFound(404) diff --git a/cinder/api/v3/attachments.py b/cinder/api/v3/attachments.py index 4d3bdbb1635..d807c933fc6 100644 --- a/cinder/api/v3/attachments.py +++ b/cinder/api/v3/attachments.py @@ -97,7 +97,7 @@ class AttachmentsController(wsgi.Controller): sort_direction=sort_dirs) @wsgi.Controller.api_version(mv.NEW_ATTACH) - @wsgi.response(202) + @wsgi.response(200) @validation.schema(attachment.create) def create(self, req, body): """Create an attachment. @@ -258,7 +258,7 @@ class AttachmentsController(wsgi.Controller): attachments = self.volume_api.attachment_delete(context, attachment) return attachment_views.ViewBuilder.list(attachments) - @wsgi.response(202) + @wsgi.response(204) @wsgi.Controller.api_version(mv.NEW_ATTACH_COMPLETION) @wsgi.action('os-complete') def complete(self, req, id, body):