Skip to main content

Get

Returns the specified extension of Elasticsearch cluster.

import { cloudApi, serviceClients, Session } from "@yandex-cloud/nodejs-sdk";

const GetExtensionRequest =
cloudApi.mdb.elasticsearch_extension_service.GetExtensionRequest;

(async () => {
const authToken = process.env["YC_OAUTH_TOKEN"];
const session = new Session({ oauthToken: authToken });
const client = session.client(serviceClients.ExtensionServiceClient);

const result = await client.get(
GetExtensionRequest.fromPartial({
clusterId: "clusterId",
extensionId: "extensionId",
})
);
console.log(result);
})();

GetExtensionRequest

clusterId : string

ID of the cluster.

extensionId : string

ID of the extension to return.

Extension

name : string

Name of the extension.

id : string

Unique ID of the extension.

clusterId : string

ID of the Elasticsearch cluster the extension belongs to.

version : int64

Version of the extension.

active : bool

The flag shows whether the extension is active.