Looking at Bulk API 2.0 and Bulk API Developer Guide, I did the following:
I am now interested in knowing how many batches have been created for the job. The problem is that for Bulk API v2 that information is not available.
Only thing I saw was
But that is for v1 bulk API and will not get the batch info for v2 bulk api jobs.
The only thing I have to use is:
But that does not give batch count info.
Going crazy I even looked at the limits endpoint for
DailyBulkApiBatches and that gives no indication or breakdown of batches. Just limits as it says :)
I saw a similar question at how to query job batches info bulk api 2.0 but that does not seem like the right answer as that is getting info about bulk api query jobs only.
And between the 3 API's that are provided dealing with Bulk API jobs, this inconsistency by Salesforce is a bit odd.