Skip to main content

Get

Returns the specified GPU cluster.

To get the list of available GPU clusters, make a List request.

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

const GetGpuClusterRequest =
cloudApi.compute.gpu_cluster_service.GetGpuClusterRequest;

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

const result = await client.get(
GetGpuClusterRequest.fromPartial({
// gpuClusterId: "gpuClusterId"
})
);
console.log(result);
})();

GetGpuClusterRequest

gpuClusterId : string

ID of the GPU cluster to return.

To get a GPU cluster ID, make a GpuClusterService.List request.

GpuCluster

A GPU cluster. For details about the concept, see documentation.

Status

  • STATUS_UNSPECIFIED

  • CREATING

    GPU cluster is being created.

  • READY

    GPU cluster is ready to use.

  • ERROR

    GPU cluster encountered a problem and cannot operate.

  • DELETING

    GPU cluster is being deleted.

id : string

ID of GPU cluster.

folderId : string

ID of the folder that the GPU cluster belongs to.

createdAt : google.protobuf.Timestamp

Creation timestamp.

name : string

Name of the GPU cluster.

The name is unique within the folder.

description : string

Description of the GPU cluster.

labels : string

GPU cluster labels as key:value pairs.

status : Status

Status of the GPU cluster.

zoneId : string

ID of the availability zone where the GPU cluster resides.

interconnectType : GpuInterconnectType

Type of interconnect used for this GPU cluster.