You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Aravindan Vijayan (Jira)" <ji...@apache.org> on 2021/08/04 17:58:00 UTC

[jira] [Created] (HDDS-5541) Namespace summary endpoint can carry basic information on the entity as well.

Aravindan Vijayan created HDDS-5541:
---------------------------------------

             Summary: Namespace summary endpoint can carry basic information on the entity as well.
                 Key: HDDS-5541
                 URL: https://issues.apache.org/jira/browse/HDDS-5541
             Project: Apache Ozone
          Issue Type: Sub-task
          Components: Ozone Recon
    Affects Versions: 1.2.0
            Reporter: Aravindan Vijayan


Currently, the /namsepace/summary endpoint carries only count data. Since it is a summary endpoint at the path level, we could make it more useful with other information as well.


Sample volume and bucket summary API responses

{code}
{
	"path": "/s3v",
	"type": "VOLUME",
	"counts": {
		"volumes": 0,
		"buckets": 1,
		"directories": 3,
		"object-store-prefixes": 0,
		"keys": 2
	},
	"dbinfo": {
		"metadata": {},
		"name": "s3v",
		"admin": "hadoop",
		"owner": "hadoop",
		"quotaInBytes": -1,
		"quotaInNamespace": -1,
		"usedNamespace": 1,
		"creationTime": "2021-07-27T18:21:40.251Z",
		"modificationTime": "2021-07-27T18:21:40.251Z",
		"acls": []
	},
	"status": "OK"
}
{code}


{code}
{
	"path": "/s3v/s3bucket",
	"type": "BUCKET",
	"counts": {
		"volumes": 0,
		"buckets": 0,
		"directories": 3,
		"object-store-prefixes": 0,
		"keys": 20
	},
	"dbinfo": {
		"metadata": {
			"ozone.om.metadata.layout": "PREFIX",
			"ozone.om.enable.filesystem.paths": "true"
		},
		"volumeName": "s3v",
		"name": "s3b",
		"storageType": "DISK",
		"versioning": false,
		"usedBytes": 536870912,
		"usedNamespace": 2,
		"creationTime": "2021-07-27T19:33:54.574Z",
		"modificationTime": "2021-07-27T19:33:54.574Z",
		"encryptionKeyName": null,
		"sourceVolume": null,
		"sourceBucket": null,
		"quotaInBytes": -1,
		"quotaInNamespace": -1
	},
	"status": "OK"
}
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org