Skip to content
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

Add _resolve/cluster API #2427

Merged
merged 3 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
249 changes: 246 additions & 3 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 47 additions & 0 deletions specification/_json_spec/indices.resolve_cluster.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"indices.resolve_cluster": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-cluster-api.html",
"description": "Resolves the specified index expressions to return information about each cluster, including the local cluster, if included."
},
"stability": "stable",
"visibility": "public",
"headers": {
"accept": ["application/json"]
},
"url": {
"paths": [
{
"path": "/_resolve/cluster/{name}",
"methods": ["GET"],
"parts": {
"name": {
"type": "list",
"description": "A comma-separated list of cluster:index names or wildcard expressions"
}
}
}
]
},
"params": {
"ignore_unavailable": {
"type": "boolean",
"description": "Whether specified concrete indices should be ignored when unavailable (missing or closed)"
},
"ignore_throttled": {
"type": "boolean",
"description": "Whether specified concrete, expanded or aliased indices should be ignored when throttled"
},
"allow_no_indices": {
"type": "boolean",
"description": "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)"
},
"expand_wildcards": {
"type": "enum",
"options": ["open", "closed", "hidden", "none", "all"],
"default": "open",
"description": "Whether wildcard expressions should get expanded to open or closed indices (default: open)"
}
}
}
}
10 changes: 10 additions & 0 deletions specification/_types/Base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ export class ElasticsearchVersionInfo {
number: string
}

/**
* Reduced (minimal) info ElasticsearchVersion
*/
export class ElasticsearchVersionMinInfo {
build_flavor: string
minimum_index_compatibility_version: VersionString
minimum_wire_compatibility_version: VersionString
number: string
}

/**
* The response returned by Elasticsearch when request execution did not succeed.
*/
Expand Down
Loading
Loading