-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] V2.5 OpenSearch Node.js client documentation for "Get Snapshot" describes parameters not supported by V2.12 OpenSearch API #728
Comments
Thanks @geraintwjones. Which version of OpenSearch Cluster did your client run against? |
I've created an issue in the spec, which is the source of the problem, to fix this: |
@nhtruong Ran against OS 2.11.1. |
The |
@nhtruong Looking at the newer v2.13 OpenSearch API documentation, the only documented params are:
Also looking at the newer v2.6 OpenSearch Node.js client documentation, if the params documented here are NOT documented in the API doc, shouldn't they be? Please note that I haven't been able to test with the latest versions yet. |
What is the bug?
The version 2.5 OpenSearch Node.js client documentation for
SnapshotApi#get(params, options, callback)
in the API-Snapshot namespace documents a number of parameters that are not supported by the latest OpenSearch API version 2.12.According to the v2.5 OpenSearch Node.js client documentation, the parameters supported by "SnapshotApi#get" are:
According to the v2.12 OpenSearch API documentation, the parameters supported by "Get Snapshot" are:
In other words, the following parameters documented in the OpenSearch Node.js client documentation are NOT supported:
When I attempt to use any of these, I get a 400 Bad Request response, the error type is
illegal_argument_exception
, and the reason given is e.g.request [/_snapshot/<redacted-repository>/<redacted-index-name>] contains unrecognized parameter: [index_details]
How can one reproduce the bug?
My code looks like this:
What is the expected behavior?
The parameters documented in the OpenSearch Node.js client documentation should manipulate the response in the way that the documentation describes.
What is your host/environment?
Kubernetes.
Do you have any screenshots?
No.
Do you have any additional context?
No.
The text was updated successfully, but these errors were encountered: