Get archive information
Returns the basic information about an archive.
This operation requires space_view_archives privilege.
Example cURL requests
Get the basic information about archive
curl -H "X-Auth-Token: $TOKEN" -X GET "https://$PROVIDER_HOST/api/v3/oneprovider/archives/$ARCHIVE_ID"
{
"archiveId": "ae6f78c89a97c9e78e891105f703bcb8",
"state": "preserved",
"datasetId": "1f4b762b1380946e73aeca574c77f14c",
"rootDirectoryId": "00000000006CB663736861726547756964233339643236366165646365",
"creationTime": 1576152793,
"config": {
"incremental": {"enabled": true},
"includeDip": false,
"layout": "bagit",
},
"preservedCallback": "https://example.org/preserved_archives",
"deletedCallback": null,
"description": "Archived dataset with experiment data from 2021.",
"stats": {
"filesArchived": 7940,
"filesFailed": 3,
"bytesArchived": 879245378924537
},
"baseArchiveId": "ae6f78c89a97c9e78e891105f703bcb8",
"relatedAipId": "e891105f703bcb8ae6f78c89a97c9e78",
"relatedDipId": "78e891105f703bcb8ae6f78c89a97c9e"
}
Path parameters
| Parameter | Type & Description |
|---|---|
| aid required | string Archive Id |
Request Examples
oneprovider-rest-cli getArchive aid=$ARCHIVE_IDResponses
The archive information.
| Property | Type & Description | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
archiveId string Archive Id. | |||||||||||||||
state string (ArchiveState) The state of the archive:
Enum: pendingbuildingpreservedfailedpurging | |||||||||||||||
datasetId string Id of the dataset from which the archive has been created. | |||||||||||||||
rootDirectoryId string Id of the hidden directory in the space where the archive is stored. | |||||||||||||||
creationTime integer (Timestamp) Timestamp in seconds (UNIX epoch), e.g. | |||||||||||||||
config object (ArchiveConfig) Parameters used to configure the process of creating an archive.
| |||||||||||||||
description string (ArchiveDescription) User defined description of the archive. | |||||||||||||||
preservedCallback string (ArchivePreservedCallback) URL on which POST request will be performed to notify that process of persisting an archive has finished. The callback request will include body in the following JSON format:
Requested server should response with one of | |||||||||||||||
deletedCallback string (ArchiveDeletedCallback) URL on which POST request will be performed to notify that process of purging an archive has finished. The callback request will include body in the following JSON format:
Requested server should response with one of | |||||||||||||||
stats object (ArchiveStats) Archivisation job statistics.
| |||||||||||||||
baseArchiveId string (ArchiveBase) This attribute determines which archive will be the base archive for incremental creation of a new archive
(consult description of the | |||||||||||||||
relatedAipId string Id of the related archival information package (AIP) archive. Can be null when there is no such archive. | |||||||||||||||
relatedDipId string Id of the related dissemination information package (DIP) archive. Can be null when there is no such archive. | |||||||||||||||
Example
{
"archiveId": "ae6f78c89a97c9e78e891105f703bcb8",
"state": "preserved",
"datasetId": "1f4b762b1380946e73aeca574c77f14c",
"rootDirectoryId": "00000000006CB663736861726547756964233339643236366165646365",
"creationTime": 1576152793,
"config": {
"incremental": {
"enabled": true
},
"includeDip": false,
"layout": "plain"
},
"preservedCallback": "https://example.org/preserved_archives",
"deletedCallback": "https://example.org/deleted_archives",
"description": "Archived dataset with experiment data from 2021.",
"stats": {
"filesArchived": 7940,
"filesFailed": 3,
"bytesArchived": 879245378924537
},
"baseArchiveId": "ae6f78c89a97c9e78e891105f703bcb8",
"relatedAipId": "e891105f703bcb8ae6f78c89a97c9e78",
"relatedDipId": "78e891105f703bcb8ae6f78c89a97c9e"
}Invalid request.
| Property | Type & Description | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error object (ErrorJson) Object describing an error.
| |||||||||||||||||||||||||||
Example
{
"error": {
"id": "example",
"description": "This is an example error.",
"ctx": {
"timestamp": 1750762637248,
"serviceReleaseVersion": "25.0",
"serviceId": "a7ee2722915b8bf7fb064eb65087cc61ch9357",
"serviceDomain": "dev-oneprovider-krakow.default.svc.cluster.local",
"serviceBuildVersion": "231-g8d26f953c3",
"service": "opw",
"onedataErrorsRevision": "ca3af8cb",
"module": "metadata_req",
"line": 45
}
}
}Forbidden request.
| Property | Type & Description | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error object (ErrorJson) Object describing an error.
| |||||||||||||||||||||||||||
Example
{
"error": {
"id": "example",
"description": "This is an example error.",
"ctx": {
"timestamp": 1750762637248,
"serviceReleaseVersion": "25.0",
"serviceId": "a7ee2722915b8bf7fb064eb65087cc61ch9357",
"serviceDomain": "dev-oneprovider-krakow.default.svc.cluster.local",
"serviceBuildVersion": "231-g8d26f953c3",
"service": "opw",
"onedataErrorsRevision": "ca3af8cb",
"module": "metadata_req",
"line": 45
}
}
}Archive not found.
| Property | Type & Description | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error object (ErrorJson) Object describing an error.
| |||||||||||||||||||||||||||
Example
{
"error": {
"id": "example",
"description": "This is an example error.",
"ctx": {
"timestamp": 1750762637248,
"serviceReleaseVersion": "25.0",
"serviceId": "a7ee2722915b8bf7fb064eb65087cc61ch9357",
"serviceDomain": "dev-oneprovider-krakow.default.svc.cluster.local",
"serviceBuildVersion": "231-g8d26f953c3",
"service": "opw",
"onedataErrorsRevision": "ca3af8cb",
"module": "metadata_req",
"line": 45
}
}
}Internal server error.
| Property | Type & Description | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error object (ErrorJson) Object describing an error.
| |||||||||||||||||||||||||||
Example
{
"error": {
"id": "example",
"description": "This is an example error.",
"ctx": {
"timestamp": 1750762637248,
"serviceReleaseVersion": "25.0",
"serviceId": "a7ee2722915b8bf7fb064eb65087cc61ch9357",
"serviceDomain": "dev-oneprovider-krakow.default.svc.cluster.local",
"serviceBuildVersion": "231-g8d26f953c3",
"service": "opw",
"onedataErrorsRevision": "ca3af8cb",
"module": "metadata_req",
"line": 45
}
}
}