Skip to main content

Get

Returns the specified resource preset.

To get the list of available resource presets, make a List request.

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

const GetResourcePresetRequest =
cloudApi.dataproc.resource_preset_service.GetResourcePresetRequest;

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

const result = await client.get(
GetResourcePresetRequest.fromPartial({
resourcePresetId: "resourcePresetId",
})
);
console.log(result);
})();

GetResourcePresetRequest

resourcePresetId : string

ID of the resource preset to return.

To get the resource preset ID, use a ResourcePresetService.List request.

ResourcePreset

A ResourcePreset resource for describing hardware configuration presets.

id : string

ID of the resource preset.

zoneIds : string

IDs of availability zones where the resource preset is available.

cores : int64

Number of CPU cores for an Elasticsearch node created with the preset.

memory : int64

RAM volume for an Elasticsearch node created with the preset, in bytes.