Skip to main content

Get

Returns the specified storage types.

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

const GetStorageTypeRequest =
cloudApi.ydb.storage_type_service.GetStorageTypeRequest;

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

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

GetStorageTypeRequest

storageTypeId : string

Required. ID of the storage type to return.

StorageType

id : string
deviceType : string
redundancyType : string