Skip to main content

Get

Returns the specified export.

To get the list of all available exports, make a List request.

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

const GetExportRequest = cloudApi.logging.export_service.GetExportRequest;

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

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

GetExportRequest​

exportId : string​

ID of the export to return.

To get a export ID make a ExportService.List request.

Export​

id : string​

Export ID.

folderId : string​

Export folder ID.

cloudId : string​

Export cloud ID.

createdAt : google.protobuf.Timestamp​

Export creation time.

name : string​

Export name.

description : string​

Export description.

labels : string​

Export lables.

groupId : string​

Group logs are exported from.

sinkId : string​

Sink logs are exported to.

params : ExportParams​

Parameters of logs filtration.

ExportParams​

resourceTypes : string​
resourceIds : string​
streamNames : string​
levels : LogLevel.Level​
filter : string​