2016-05-06 13:33:09 +00:00
|
|
|
.. -*- rst -*-
|
|
|
|
|
|
|
|
==============================
|
|
|
|
User messages (since API 2.37)
|
|
|
|
==============================
|
|
|
|
|
|
|
|
Lists, shows and deletes user messages.
|
|
|
|
|
2017-08-11 12:41:16 +00:00
|
|
|
User messages are automatically created when an asynchronous action fails on a
|
|
|
|
resource. In such situations an error is logged in the appropriate log file but
|
|
|
|
end users may not have access to the log files. User messages can be used by
|
|
|
|
users to get error details for failed actions. This is handy for example when
|
|
|
|
creating shares - if a share creation fails because a scheduling filter doesn't
|
|
|
|
find suitable back-end host for the share, this share will end up in error
|
|
|
|
state, but from user messages API users can get details about the last
|
|
|
|
executed filter which helps them identify the issue and perhaps re-attempt the
|
|
|
|
creation request with different parameters.
|
|
|
|
|
2016-05-06 13:33:09 +00:00
|
|
|
|
|
|
|
List user messages
|
|
|
|
==================
|
|
|
|
|
2018-12-07 18:55:30 +00:00
|
|
|
.. rest_method:: GET /v2/{project_id}/messages
|
2016-05-06 13:33:09 +00:00
|
|
|
|
2019-03-27 03:14:42 +00:00
|
|
|
.. versionadded:: 2.37
|
|
|
|
|
2016-05-06 13:33:09 +00:00
|
|
|
Lists all user messages.
|
|
|
|
|
|
|
|
|
2018-03-22 10:38:36 +00:00
|
|
|
Response codes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
|
|
|
|
- 200
|
|
|
|
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
|
|
|
|
- 400
|
|
|
|
- 401
|
|
|
|
- 403
|
2016-05-06 13:33:09 +00:00
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2018-12-07 18:55:30 +00:00
|
|
|
- project_id: project_id_path
|
2016-05-06 13:33:09 +00:00
|
|
|
- limit: limit
|
|
|
|
- offset: offset
|
|
|
|
- sort_key: sort_key_messages
|
|
|
|
- sort_dir: sort_dir
|
|
|
|
- action_id: action_id
|
|
|
|
- detail_id: detail_id
|
|
|
|
- message_level: message_level
|
|
|
|
- project_id: project_id_messages
|
|
|
|
- request_id: request_id
|
|
|
|
- resource_id: resource_id
|
|
|
|
- resource_type: resource_type
|
|
|
|
|
|
|
|
Response parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- action_id: action_id_body
|
|
|
|
- detail_id: detail_id_body
|
|
|
|
- message_level: message_level_body
|
|
|
|
- project_id: project_id_messages_body
|
|
|
|
- request_id: request_id_body
|
|
|
|
- resource_id: resource_id_body
|
|
|
|
- resource_type: resource_type_body
|
|
|
|
- message_members_links: message_members_links
|
|
|
|
|
|
|
|
|
|
|
|
Response example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: samples/user-messages-list-response.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Show user message details
|
|
|
|
=========================
|
|
|
|
|
2018-12-07 18:55:30 +00:00
|
|
|
.. rest_method:: GET /v2/{project_id}/messages/{message_id}
|
2016-05-06 13:33:09 +00:00
|
|
|
|
2019-03-27 03:14:42 +00:00
|
|
|
.. versionadded:: 2.37
|
|
|
|
|
2016-05-06 13:33:09 +00:00
|
|
|
Shows details for a user message.
|
|
|
|
|
2018-03-22 10:38:36 +00:00
|
|
|
Response codes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
|
|
|
|
- 200
|
|
|
|
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
|
|
|
|
- 400
|
|
|
|
- 401
|
|
|
|
- 403
|
|
|
|
- 404
|
2016-05-06 13:33:09 +00:00
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2018-12-07 18:55:30 +00:00
|
|
|
- project_id: project_id_path
|
2016-05-06 13:33:09 +00:00
|
|
|
- message_id: message_id
|
|
|
|
|
|
|
|
Response parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- action_id: action_id_body
|
|
|
|
- detail_id: detail_id_body
|
|
|
|
- message_level: message_level_body
|
|
|
|
- project_id: project_id_messages_body
|
|
|
|
- request_id: request_id_body
|
|
|
|
- resource_id: resource_id_body
|
|
|
|
- resource_type: resource_type_body
|
|
|
|
- message_links: message_links
|
|
|
|
|
|
|
|
|
|
|
|
Response example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: samples/user-message-show-response.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Delete message
|
|
|
|
==============
|
|
|
|
|
2018-12-07 18:55:30 +00:00
|
|
|
.. rest_method:: DELETE /v2/{project_id}/messages/{message_id}
|
2016-05-06 13:33:09 +00:00
|
|
|
|
2019-03-27 03:14:42 +00:00
|
|
|
.. versionadded:: 2.37
|
|
|
|
|
2016-05-06 13:33:09 +00:00
|
|
|
Deletes a user message.
|
|
|
|
|
2018-03-22 10:38:36 +00:00
|
|
|
Response codes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
|
|
|
|
- 202
|
|
|
|
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
|
|
|
|
- 400
|
|
|
|
- 401
|
|
|
|
- 403
|
|
|
|
- 404
|
2016-05-06 13:33:09 +00:00
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2018-12-07 18:55:30 +00:00
|
|
|
- project_id: project_id_path
|
2016-05-06 13:33:09 +00:00
|
|
|
- message_id: message_id
|