diff --git a/src/core/server/opensearch/legacy/api_types.ts b/src/core/server/opensearch/legacy/api_types.ts index 9fbbe6dd3632..6f2f5f92ab84 100644 --- a/src/core/server/opensearch/legacy/api_types.ts +++ b/src/core/server/opensearch/legacy/api_types.ts @@ -232,6 +232,7 @@ export interface LegacyAPICaller { (endpoint: 'cat.help', params: CatHelpParams, options?: LegacyCallAPIOptions): ReturnType; (endpoint: 'cat.indices', params: CatIndicesParams, options?: LegacyCallAPIOptions): ReturnType; (endpoint: 'cat.master', params: CatCommonParams, options?: LegacyCallAPIOptions): ReturnType; + (endpoint: 'cat.cluster_manager', params: CatCommonParams, options?: LegacyCallAPIOptions): ReturnType; (endpoint: 'cat.nodeattrs', params: CatCommonParams, options?: LegacyCallAPIOptions): ReturnType; (endpoint: 'cat.nodes', params: CatCommonParams, options?: LegacyCallAPIOptions): ReturnType; (endpoint: 'cat.pendingTasks', params: CatCommonParams, options?: LegacyCallAPIOptions): ReturnType; diff --git a/src/core/server/server.api.md b/src/core/server/server.api.md index 6061f78557b5..4cfe9f477e74 100644 --- a/src/core/server/server.api.md +++ b/src/core/server/server.api.md @@ -1041,9 +1041,11 @@ export interface LegacyAPICaller { (endpoint: 'cat.help', params: CatHelpParams, options?: LegacyCallAPIOptions): ReturnType; // (undocumented) (endpoint: 'cat.indices', params: CatIndicesParams, options?: LegacyCallAPIOptions): ReturnType; - // (undocumented) + // @deprecated (undocumented) (endpoint: 'cat.master', params: CatCommonParams, options?: LegacyCallAPIOptions): ReturnType; // (undocumented) + (endpoint: 'cat.cluster_manager', params: CatCommonParams, options?: LegacyCallAPIOptions): ReturnType; + // (undocumented) (endpoint: 'cat.nodeattrs', params: CatCommonParams, options?: LegacyCallAPIOptions): ReturnType; // (undocumented) (endpoint: 'cat.nodes', params: CatCommonParams, options?: LegacyCallAPIOptions): ReturnType; diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cat.cluster_manager.json b/src/plugins/console/server/lib/spec_definitions/json/generated/cat.cluster_manager.json new file mode 100644 index 000000000000..16d91c9a1d4b --- /dev/null +++ b/src/plugins/console/server/lib/spec_definitions/json/generated/cat.cluster_manager.json @@ -0,0 +1,21 @@ +{ + "cat.cluster_manager": { + "url_params": { + "format": "", + "local": "__flag__", + "master_timeout": "", + "cluster_manager_timeout": "", + "h": [], + "help": "__flag__", + "s": [], + "v": "__flag__" + }, + "methods": [ + "GET" + ], + "patterns": [ + "_cat/cluster_manager" + ], + "documentation": "https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-master/" + } +}