How to get Quota infomation and set Quota maxsize from Automation API or REST API?
Is there any guide or example about set Quota Info and get Quota Info from API?
I can get workspace Quota information such as Total Size and Trash Size from dashboard. As is shown in the figure. I want to get the same information from java client. Currently my code is like this:
NuxeoClient nuxeoClient = new NuxeoClient(url, "XXXXXX", "XXXXX");
nuxeoClient = nuxeoClient.schemas("*");
Document root = nuxeoClient.repository().fetchDocumentByPath("/default-domain/workspaces/test");
In the root variable, I can not find any size information. How should get the size information of workspace in java client?
In order to get it, you just have to ask for the right schemas when calling for a document or documents. about POST, I do not think those field are supposed to be modified as they are computed by the platform
"entity-type": "document",
"repository": "default",
"uid": "7371208a-71bb-42a5-b6a2-4bdba72a2fed",
"path": "/default-domain/workspaces/Demo/myNewDoc",
"type": "File",
"state": "project",
"parentRef": "743cc809-3629-4f04-88ff-2a0f17b6b756",
"isCheckedOut": false,
"isVersion": false,
"isProxy": false,
"changeToken": "1505802214007",
"title": "rest doc",
"lastModified": "2017-09-19T06:23:34.00Z",
"facets": [
"Versionable",
"DocumentsSizeStatistics",
"Publishable",
"Commentable",
"HasRelatedText",
"Thumbnail"
]
}
"schemas" is an option when instantiating Nuxeo in Javascript client, ex :
this.instance = new nuxeo({
baseURL: `https://my.nuxeo/nuxeo/`,
auth: {
username: 'nuxeo',
password: 'nuxeo',
method: 'basic'
},
schemas: ['*']
});