Get
Returns the specified extension of Elasticsearch cluster.
- TypeScript
- Python
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);
})();
import os
import grpc
import yandexcloud
from yandex.cloud.mdb.elasticsearch.v1.extension_service_pb2_grpc import ExtensionServiceStub
from yandex.cloud.mdb.elasticsearch.v1.extension_service_pb2 import GetExtensionRequest
token = os.getenv("YC_OAUTH_TOKEN")
sdk = yandexcloud.SDK(token=token)
service = sdk.client(ExtensionServiceStub)
response = service.Get(GetExtensionRequest(cluster_id="clusterId", extension_id="extensionId"))
print(response)
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.