arcgis-python-api
arcgis-python-api copied to clipboard
fixed Identify Items That Use Insecure URLs sample notebook
resolves #9781
Note:
this notebook scans the whole organization and identifies items that use insecure URLs,
some of the output had to be edited because some items are not working - for example - gis.content.get('88282a83d8b445b89a5225039c65616a')
the user who will consume the sample notebook can log in to their AGOL and Enterprise organization and if all the items in their organization are good, then they'll not face any errors running this sample notebook
Testing instructions:
Step 1: In the get_items_to_check()
method definition please put max_items=2
Step 2: In the main()
method definition please replace the following statement:
for item in get_items_to_check():
with
item1 = gis.content.get('bc6a732940e84e67a07b4dc299e0f5cf')
item2 = gis.content.get('8ace59c5a8be401bbddaccfae0a39305')
item_array = [item1, item2]
for item in item_array:
Please don't run the Post Processing
section since that output has been created and edited and will only work if all items in the organization are good and running fine
Please add comments if you face issues
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
Looks good to me. I just have one question - where in the notebook are we adding the note/disclaimer that the end user needs to run this off their own workspace?
thanks @ManushiM for the review, we don't need to specify that a user needs to setup their own workspace path since I have added a ./
before arcgis/home
so it will create a arcgis/home
directory at the current path, so it will not give Directory not found error
Looks good to me. I just have one question - where in the notebook are we adding the note/disclaimer that the end user needs to run this off their own workspace?
thanks @ManushiM for the review, we don't need to specify that a user needs to setup their own workspace path since I have added a
./
beforearcgis/home
so it will create aarcgis/home
directory at the current path, so it will not giveDirectory not found error
That's fair, cool this works then.