diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-07-13 00:59:19 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-07-13 00:59:19 +0000 |
commit | a2f97a41f396ae2f232a994e2b4c9bb01e612e0b (patch) | |
tree | 3a86b0fcb4fc523945f5a65ed7f743fc01c732c0 /api-ref | |
parent | 418b65ad7ce119ac769534ee8edb0636f6904054 (diff) | |
parent | 9fbd7861dd5c8b49b3a9fe96c03d45234a55a6b6 (diff) | |
download | nova-a2f97a41f396ae2f232a994e2b4c9bb01e612e0b.tar.gz |
Merge "api-ref: Add X-Openstack-Request-Id description"
Diffstat (limited to 'api-ref')
-rw-r--r-- | api-ref/source/index.rst | 1 | ||||
-rw-r--r-- | api-ref/source/parameters.yaml | 41 | ||||
-rw-r--r-- | api-ref/source/request-ids.inc | 24 |
3 files changed, 62 insertions, 4 deletions
diff --git a/api-ref/source/index.rst b/api-ref/source/index.rst index e573c4b646..3e651881b2 100644 --- a/api-ref/source/index.rst +++ b/api-ref/source/index.rst @@ -12,6 +12,7 @@ the `API guide <http://developer.openstack.org/api-guide/compute/index.html>`_. .. include:: versions.inc .. include:: urls.inc +.. include:: request-ids.inc .. include:: servers.inc .. include:: servers-actions.inc .. include:: servers-action-fixed-ip.inc diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index 1c26e2e770..48229c7931 100644 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -26,14 +26,47 @@ tag_location: required: true type: string min_version: 2.26 -x-openstack-request-id: +x-compute-request-id_resp: description: | - A unique ID for tracking the request. The request ID associated with the request - appears in the log lines for that request. By default, the middleware configuration - ensures that the request ID appears in the log files. + The local request ID, which is a unique ID generated automatically + for tracking each request to nova. + It is associated with the request and appears in the log lines + for that request. + By default, the middleware configuration + ensures that the local request ID appears in the log files. + + .. note:: + + This header exists for backward compatibility. + in: header + required: true + type: string +x-openstack-request-id_req: + description: | + The global request ID, which is a unique common ID + for tracking each request in OpenStack components. + The format of the global request ID must be ``req-`` + UUID (UUID4). + If not in accordance with the format, it is ignored. + It is associated with the request and appears in the log lines + for that request. + By default, the middleware configuration ensures that + the global request ID appears in the log files. + in: header + required: false + type: string + min_version: 2.46 +x-openstack-request-id_resp: + description: | + The local request ID, which is a unique ID generated automatically + for tracking each request to nova. + It is associated with the request and appears in the log lines + for that request. + By default, the middleware configuration + ensures that the local request ID appears in the log files. in: header required: true type: string + min_version: 2.46 # variables in path agent_build_id: diff --git a/api-ref/source/request-ids.inc b/api-ref/source/request-ids.inc new file mode 100644 index 0000000000..76c0efafed --- /dev/null +++ b/api-ref/source/request-ids.inc @@ -0,0 +1,24 @@ +.. -*- rst -*- + +=========== +Request IDs +=========== + +Users can specify the global request ID in the request header. +Users can receive the local request ID in the response header. + +For more details about Request IDs, please reference: `Faults +<https://developer.openstack.org/api-guide/compute/faults.html>`_ + +**Request** + +.. rest_parameters:: parameters.yaml + + - X-Openstack-Request-Id: x-openstack-request-id_req + +**Response** + +.. rest_parameters:: parameters.yaml + + - X-Compute-Request-Id: x-compute-request-id_resp + - X-Openstack-Request-Id: x-openstack-request-id_resp |