Get dataset information
Returns the basic information about a dataset.
Example cURL requests
Get the basic information about dataset
curl -H "X-Auth-Token: $TOKEN" -X GET "https://$PROVIDER_HOST/api/v3/oneprovider/datasets/$DATASET_ID"
{
"state": "attached",
"datasetId": "1f4b762b1380946e73aeca574c77f14c",
"parentId": null,
"rootFileId": "00000000006CB663736861726547756964233339643236366165646365...",
"rootFileType": "DIR",
"rootFilePath": "/MySpace/dir",
"rootFileDeleted": false,
"protectionFlags": ["data_protection"],
"effectiveProtectionFlags": ["data_protection", "metadata_protection"],
"creationTime": 1576152793,
"archiveCount": 5
}
Path parameters
| Parameter | Type & Description |
|---|---|
| did required | string Dataset Id |
Request Examples
oneprovider-rest-cli getDataset did=$DATASET_IDResponses
The dataset information.
| Property | Type & Description |
|---|---|
state string (DatasetState) The state of the dataset:
Enum: attacheddetached | |
datasetId string Dataset Id. | |
parentId string Parent dataset Id or | |
rootFileId string Id of file or directory being the dataset root. Once the dataset has been established the root file can no longer be changed. Even after detaching dataset it can be reattached only to the same file and only if it still exists. | |
rootFileType string (FileType) The type of the file:
Enum: REGDIRSYMLNK | |
rootFilePath string Path to the file or directory in the virtual file system. For datasets in | |
rootFileDeleted boolean Flag informing whether dataset's root file has been deleted. Only relevant for detached datasets. If the root file has been deleted, it is no longer possible to reattach the dataset. | |
protectionFlags array of strings Dataset protection flags:
NOTE: the file/directory can be deleted if Requests to modify the data/metadata when protection is enabled will be rejected with the EPERM POSIX error. The protection flags are ignored when the dataset is in Changing the protection flags may not have an immediate effect, especially for files that were already opened before the change. Note however that some basic readonly file attributes (such as e.g. | |
effectiveProtectionFlags any | |
creationTime integer (Timestamp) Timestamp in seconds (UNIX epoch), e.g. | |
archiveCount integer Number of archives created from the dataset. | |
Example
{
"state": "attached",
"datasetId": "1f4b762b1380946e73aeca574c77f14c",
"parentId": null,
"rootFileId": "00000000006CB663736861726547756964233339643236366165646365...",
"rootFileType": "DIR",
"rootFilePath": "/MySpace/dir",
"protectionFlags": [
"metadata_protection"
],
"effectiveProtectionFlags": [
"data_protection",
"metadata_protection"
],
"creationTime": 1576152793,
"archiveCount": 5
}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
}
}
}Dataset 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
}
}
}