Description
🐛 Bug Report
This typescript client is missing required type for the creating Snapshot repo (S3).
and it is missing require field like:
bucket,
base_path,
client
Reference:
https://www.elastic.co/guide/en/elasticsearch/reference/8.9/repository-s3.html
the most 3 important fields to successfully create the snapshot repo
To Reproduce
Current interface
export interface SnapshotRepositorySettings {
chunk_size?: string;
compress?: string | boolean;
concurrent_streams?: string | integer;
location: string;
read_only?: string | boolean;
readonly?: string | boolean;
}
Which will cause the Repository failed to create,
Error:
ResponseError: repository_verification_exception
Caused by:
i_o_exception: Exception when listing blobs by prefix [index-]
Root causes:
repository_verification_exception: [xxx-xx-xx] path is not accessible on master node
Paste your code here:
const resquest = client.snapshot.createRepository({
type: 's3',
name: repo,
settings:{
location: 'dev/abc',
read_only: true,
readonly: true,
},
})
Expected behavior
Create the s3 snapshot repo with no issue
Paste the results here:
After manually modify the SnapshotRepositorySettings in type.ts under src/api/type.ts
it will create with no issue
export interface SnapshotRepositorySettings {
chunk_size?: string;
compress?: string | boolean;
concurrent_streams?: string | integer;
location: string;
read_only?: string | boolean;
readonly?: string | boolean;
client: string;
base_path: string;
bucket: string;
}
Your Environment
- node version: 6,8,10
@elastic/elasticsearch
version: >=7.0.0- os: Mac, Windows, Linux
- any other relevant information