Skip to main content

ExecuteAlias

Executes NodeAlias requests.

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

const AliasExecutionRequest =
cloudApi.datasphere.node_service.AliasExecutionRequest;

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

const result = await client.executeAlias(
AliasExecutionRequest.fromPartial({
// folderId: "folderId",
// aliasName: "aliasName",
// input: {}
})
);
console.log(result);
})();

AliasExecutionRequest

folderId : string

ID of the folder that will be matched with Alias ACL

aliasName : string

Name of the Alias to perform request on

input : google.protobuf.Struct

Input data for the execution

AliasExecutionResponse

output : google.protobuf.Struct

Result of the execution