In [1]:
from arcgis.gis import GIS
gis = GIS("https://ags-enterprise4.aeroterra.com/arcgis/", "PythonApi", "test123456")
my_map = gis.map('Argentina',5)
my_map

In [2]:
from IPython.display import display

items = gis.content.search('title:track')
for item in items:
    display(item)
    display(item.id)


TRACK_date
TRACK DatesMap Image Layer by PythonApi
Last Modified: Mayo 09, 2017
0 comments, 19 views
'b2c97de923214dfca44ee71420a56e54'
TRACK_LINES
TRACKSFeature Layer Collection by pdiazm
Last Modified: Mayo 09, 2017
0 comments, 0 views
'7f87cabe5b384d97a8beaffe0953bb69'
SHIP_TRACK
SHIPFeature Layer Collection by pdiazm
Last Modified: Mayo 08, 2017
0 comments, 0 views
'796e509d65b04aacbe248e662cbc91dc'
SHIP_TRACK
SHIPService Definition by pdiazm
Last Modified: Mayo 08, 2017
0 comments, 0 views
'63af3620f99240ba8f05b10242124e42'
TRACK_LINES
TRACKSService Definition by pdiazm
Last Modified: Mayo 09, 2017
0 comments, 0 views
'7e950a59e12c468ea16befb361afe30a'

In [3]:
item = gis.content.get('b2c97de923214dfca44ee71420a56e54')

In [4]:
item.title


Out[4]:
'TRACK_date'

In [5]:
item.tags


Out[5]:
['TRACK']

In [6]:
item.update(item_properties={'tags':'TRACK'})


Out[6]:
True

In [7]:
item.tags


Out[7]:
['TRACK']

In [8]:
item.download_metadata(save_folder=r'C:\temp')


Out[8]:
'C:\\temp\\metadata.xml'

In [9]:
item.download_thumbnail(save_folder= r'C:\temp')


Out[9]:
'C:\\temp\\thumbnail.JPEG'

In [ ]:
my_map.add_layer(item)

In [ ]:
my_map.center = [-34.58,-58.42]

In [ ]:
my_map.zoom = 12
my_map

In [ ]:
me = gis.users.me
me

In [ ]:
me.access

In [ ]:
user_groups = me.groups
print("Miembro de " + str(len(user_groups)) + " grupo/s")

# groups are returned as a dictionary. Lets print the first dict as a sample
user_groups[0]