I am using node.js utility of google cloud transfer api to transfer data from s3 bucket to my Google Cloud bucket using
#1
storagetransfer.transferJobs.create(request, function (err, response)
And once it is completed i want to proceed with with some functionality. To check the status of transfer Job there is an api
#2
storagetransfer.transferOperations.get(request, function(err, response)
which takes
var request = {
// The name of the operation resource.
name: 'transferOperations/my-transfer-operation',
auth: authClient,
};
as parameter. I cant seem to find what is the value that need to be input'ed in place of "my-transfer-operation"
The response received from "storagetransfer.transferJobs.create" has a data object with {name: 'transferJobs/2469904309496821948'}, but this value is not working for "my-transfer-operation" value.
I need to get value of "my-transfer-operation" which can be used a parameter for getting status of my transfer job using #2 api.
source : https://cloud.google.com/storage-transfer/docs/reference/rest/v1/transferOperations/get