Web Service Metadata Date

383
3
05-18-2023 04:32 PM
DMH_Hobart
New Contributor II

Is it possible to get the publication date metadata from a web service using arcpy.metadata or similar?

 

 

0 Kudos
3 Replies
DavidHoy
Esri Contributor

Hi Dean,

 you can retrieve the info about publication from from the sharing REST endpoint
e.g. https://<portal-fqdn>/portal/sharing/rest/content/items/<item-id>
You can search for the item representing your service at 
https://<portal-fqdn>/portal/sharing/rest/search

programmatically - the reference is here.
https://developers.arcgis.com/rest/users-groups-and-items/item.htm


items/[itemID]: Item—ArcGIS REST APIs | ArcGIS Developers

 

DMH_Hobart
New Contributor II

Thanks @DavidHoy very much appreciated and thanks for the very quick response 🙂

DavidHoy
Esri Contributor

@DMH_Hobart 
Dean,

the code I provided wasnt quite right - I will test and provide update shortly