dd630c3929
For quite some time, OpenStack services have wanted to be able to send messages to API end users (by user I do not mean the operator, but the user that is interacting with the client). This patch implements basic user messages with the following APIs. GET /messages GET /messages/<message_id> DELETE /messages/<message_id> Implements the basic /messages resource and tempest tests The patch is aligned with related cinder patch where possible: I8a635a07ed6ff93ccb71df8c404c927d1ecef005 DocImpact APIImpact Needed-By: I5ffb840a271c518f62ee1accfd8e20a97f45594d Needed-By: I9ce096eebda3249687268e361b7141dea4032b57 Needed-By: Ic7d25a144905a39c56ababe8bd666b01bc0d0aef Partially-implements: blueprint user-messages Co-Authored-By: Jan Provaznik <jprovazn@redhat.com> Change-Id: Ia0cc524e0bfb2ca5e495e575e17e9911c746690b
25 lines
1.0 KiB
JSON
25 lines
1.0 KiB
JSON
{
|
|
"message": {
|
|
"links": [
|
|
{
|
|
"href": "http://192.168.122.180:8786/v2/2e3de76b49b444fd9dc7ca9f7048ce6b/messages/4b319d29-d5b7-4b6e-8e7c-8d6e53f3c3d5",
|
|
"rel": "self"
|
|
}, {
|
|
"href": "http://192.168.122.180:8786/2e3de76b49b444fd9dc7ca9f7048ce6b/messages/4b319d29-d5b7-4b6e-8e7c-8d6e53f3c3d5",
|
|
"rel": "bookmark"
|
|
}
|
|
],
|
|
"resource_id": "351cc796-2d79-4a08-b878-a8ed933b6b68",
|
|
"message_level": "ERROR",
|
|
"user_message": "allocate host: No storage could be allocated for this share request. Trying again with a different size or share type may succeed.",
|
|
"expires_at": "2017-07-10T10:27:43.000000",
|
|
"id": "4b319d29-d5b7-4b6e-8e7c-8d6e53f3c3d5",
|
|
"created_at": "2017-07-10T10:26:43.000000",
|
|
"detail_id": "002",
|
|
"request_id": "req-24e7ccb6-a7d5-4ddd-a8e4-d8f72a4509c8",
|
|
"project_id": "2e3de76b49b444fd9dc7ca9f7048ce6b",
|
|
"resource_type": "SHARE",
|
|
"action_id": "001"
|
|
}
|
|
}
|