Skip to main content

UpdateSupportStatus

Currently used to update support job status.

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

const SupportJob_Status = cloudApi.dataproc.manager_job.SupportJob_Status;
const UpdateSupportJobStatusRequest =
cloudApi.dataproc.manager_job_service.UpdateSupportJobStatusRequest;

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

const result = await client.updateSupportStatus(
UpdateSupportJobStatusRequest.fromPartial({
// clusterId: "clusterId",
// jobId: "jobId",
// status: SupportJob_Status.PROVISIONING
})
);
console.log(result);
})();

UpdateSupportJobStatusRequest

clusterId : string

Required. ID of the Data Proc cluster.

jobId : string

Required. ID of the Data Proc job to update.

status : SupportJob.Status

Required. New status of the job.

UpdateJobStatusResponse