Skip to main content

Execute

Executes deployed Node.

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

const NodeExecutionRequest =
cloudApi.datasphere.node_service.NodeExecutionRequest;

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

const result = await client.execute(
NodeExecutionRequest.fromPartial({
// folderId: "folderId",
// nodeId: "nodeId",
// input: {}
})
);
console.log(result);
})();

NodeExecutionRequest

folderId : string

ID of the folder that will be matched with Node ACL.

nodeId : string

ID of the Node to perform request on.

input : google.protobuf.Struct

Input data for the execution.

NodeExecutionResponse

output : google.protobuf.Struct

Result of the execution.