Get QoS audit log
Returns audit log of performed locally (on selected Oneprovider) files operations that were result of given QoS requirement. The audit log stores logs concerning all files affected by a specific QoS requirement.
Example cURL requests
Get QoS audit log
curl -H "X-Auth-Token: $TOKEN" -X GET \
"https://$PROVIDER_HOST/api/v3/oneprovider/qos_requirements/$QOS_REQ_ID/audit_log?timestamp=1626334701662&offset=1"
{
"isLast": false,
"logEntries": [{
"index": 0,
"timestamp": 1626334701662,
"content": {
"fileId": $FILE_ID,
"severity": "info"
"status": "completed",
"description": "Local replica reconciled."
}
}]
}
Path parameters
| Parameter | Type & Description |
|---|---|
| qid required | string QoS requirement Id |
Query parameters
| Parameter | Type & Description |
|---|---|
| timestamp | integer Starting timestamp for listing - the listing will start with an entry that has an equal or greater timestamp. |
| offset | integer Offset from the beginning of the collection specifying starting point for listing relative to timestamp. |
| limit | integer Maximum number of entries that should be returned. If there are more entries, they can be retrieved using |
Request Examples
oneprovider-rest-cli getQosRequirementAuditLog qid=$QOS_REQ_ID timestamp=1626334701662 offset=1Responses
QoS requirement audit log.
| Property | Type & Description | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
isLast boolean Flag indicating whether last entry in audit log was listed. | |||||||||||||||||||||||||||||||||||||||||||
logEntries array of objects
| |||||||||||||||||||||||||||||||||||||||||||
Example
{
"isLast": false,
"logEntries": [
{
"index": 0,
"timestamp": 1626334701662,
"content": {
"fileId": "$FILE_ID",
"severity": "info",
"status": "completed",
"description": "Local replica reconciled."
}
},
{
"index": 1,
"timestamp": 1626334701672,
"content": {
"fileId": "$FILE_ID",
"severity": "error",
"status": "failed",
"description": "Failed to reconcile local replica: Operation failed with POSIX error: enoent.",
"reason": {
"description": "Operation failed with POSIX error: enoent.",
"details": {
"errno": "enoent"
},
"id": "posix"
}
}
}
]
}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
}
}
}QoS audit log 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
}
}
}