Get archive process batch details by its archiveGUID
get
/ArchiveService/api/v1/archives/{archiveGUID}/batches
Request
Path Parameters
-
archiveGUID(required): string
Example:
5289446E-A8AB-4D7D-80F6-A81CE6335522
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Successfull retrieved archival process batch details
Nested Schema : items
Type:
Show Source
object
-
archiveGUID: string
Example:
5289446E-A8AB-4D7D-80F6-A81CE6335522
-
batchID: integer
Example:
100
-
batchStatus: string
Example:
COMPLETED
-
createdDate: string
Example:
2016-03-05
-
endTime: string
Example:
2022-11-03
-
failedEntities: array
failedEntities
-
startTime: string
Example:
2022-11-03
Nested Schema : failedEntities
Type:
Show Source
array
-
Array of:
array ArchivalBatchEntityResponse
Archival Batch Entity Response Schema
Nested Schema : ArchivalBatchEntityResponse
Type:
array
Archival Batch Entity Response Schema
Show Source
Nested Schema : items
Type:
Show Source
object
-
entityGuid: string
Example:
E2AA95FE-67DA-49F4-8903-EA37D5405BB7
-
status: string
Example:
COMPLETED
404 Response
No archival process batch details found for the archiveGUID
Examples
This example describes how to the service will provide all the batch details of an Archival job.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl \ -X GET \ -H "Content-Type: application/json" \ -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \ -L "http://server:port/ArchiveService/api/v1/archives/{archiveGUID}/batches"
Example Response Body
The following shows an example of the response body in JSON format:
[ { "archiveGUID": "E28FAF74-7971-4169-8A46-2ED526A7037C", "batchID": 1, "batchStatus": "FAILED", "createdDate": "2023-06-06", "endTime": "2023-06-06T09:40:37.199Z", "failedEntities": [ { "entityGuid": "62946103-F951-444F-B4BA-1D2D32B1D584", "status": "FAILED" } ], "startTime": "2023-06-06T09:40:37.117Z" }, { "archiveGUID": "E28FAF74-7971-4169-8A46-2ED526A7037C", "batchID": 2, "batchStatus": "COMPLETED", "createdDate": "2023-06-06", "endTime": "2023-06-06T09:40:37.288Z", "failedEntities": [], "startTime": "2023-06-06T09:40:37.203Z" } ]