Skip to main content

ListLog

Returns a log for specified job.

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

const ListJobLogRequest = cloudApi.dataproc.job_service.ListJobLogRequest;

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

const result = await client.listLog(
ListJobLogRequest.fromPartial({
clusterId: "clusterId",
// jobId: "jobId",
// pageSize: 0,
// pageToken: "pageToken"
})
);
console.log(result);
})();

ListJobLogRequest

clusterId : string

ID of the cluster that the job is being created for.

jobId : string

ID of the job being created.

pageSize : int64

The maximum bytes of job log per response to return. If the number of available bytes is larger than page_size, the service returns a ListJobLogResponse.next_page_token that can be used to get the next page of output in subsequent list requests. Default value: 1048576.

pageToken : string

Page token. To get the next page of results, set page_token to the ListJobLogResponse.next_page_token returned by a previous list request.

ListJobLogResponse

content : string

Requested part of Data Proc Job log.

nextPageToken : string

This token allows you to get the next page of results for ListLog requests, if the number of results is larger than page_size specified in the request. To get the next page, specify the value of next_page_token as a value for the page_token parameter in the next ListLog request. Subsequent ListLog requests will have their own next_page_token to continue paging through the results.