Generating a list of all Portal Content that includes Size

211
6
2 weeks ago
Labels (2)
Henry
by
Occasional Contributor

Hi,

I need to somehow take a full accounting of our organization's ArcGIS Enterprise 10.8.1 Portal Content.

This may have been posted or suggested elsewhere, but I'm having some trouble finding any similar posts. Is there a way to generate a report or list of all items that includes the name, type, and size? Either through Portal or Portal Admin? I know that you can generate user reports in 10.9, at least: Work with usage reports—Portal for ArcGIS | Documentation for ArcGIS Enterprise And I'm aware of the 10.8.1 Usage Report, but it doesn't present the information I need.

I'm frustrated that the only real way to view an item's size is to manually select the item and navigate towards its Item Details. My user account has 598 items, and according to the 10.8.1 Usage Report or Organization has 1,504 Total Items stored. That's too many for me to go through one by one.

Any tips/tricks out there?

Thank you,

Henry
Tags (2)
6 Replies
DavinWalker2
Esri Contributor

You could use the REST API to get a list of your items.

https://machine.domain.com/webadaptor/sharing/rest/content/users/portaladmin?f=pjson&

Then parse the JSON to create a report of the name of each item and it's size.

0 Kudos
Henry
by
Occasional Contributor

Thanks Davin,

I still have some trouble navigating the REST API, a bit of a newbie so forgive me if I'm heading the wrong direction with this. Even when I've signed in as the Portal Administrator/User Account that owns the items or have generated a token from the Server Administrator directory when trying to get to the user content json I want to take a look at, I still receive the following error message in my browser:

{"error":{"code":403,"messageCode":"GWM_0003","message":"You do not have permissions to access this resource or perform this operation.","details":[]}}

I understand I may need to generate a different token per this topic: Solved: "You do not have permissions to access this resour... - Esri Community but I'm not really using the same program to access the REST API, I'm just trying to navigate to it through my browser on the Virtual Machine that's hosting our Enterprise deployment. So I'm not entirely sure which token to generate where and where to put it.

I've used the portal token before at one point during our latest Enterprise upgrade but its been a while and I've lost some of the context.

Henry
0 Kudos
DavinWalker2
Esri Contributor

Hi Henry,

Can you navigate to https://machine.domain.com/webadaptor/sharing/rest/ and try to login using portaladmin?

 

0 Kudos
Henry
by
Occasional Contributor

Hmm when I navigate to that location I see a bar mentioning the ArcGIS Portal Directory and a link for API Reference, but none of the other login options.

Henry
0 Kudos
DavinWalker2
Esri Contributor

Hi Henry,

Are you able to access it from the portal machine https://portal.domain.com:7443/arcgis/sharing/rest?

 

0 Kudos
Henry
by
Occasional Contributor

Unfortunately, even when going through the 7443 port I still only see the blank Portal.

I'm able to get a response for {"currentVersion": "8.2"} when I end the url https://portal.domain.com:7443/arcgis/sharing/rest with ?f=json.

Henry
0 Kudos