POST
|
I got it to work with python 2 import json
import urllib2
from urllib import urlencode
data = {
'username': 'xyzx',
'password': 'xyzx',
'client': 'requestip',
'expiration': 15,
'f': 'json'
}
url = 'xyzx.com:6443/arcgis/admin/generateToken'
post = urlencode(data)
req = urllib2.Request(url, post)
response = urllib2.urlopen(req)
json_response = response.read()
json_response = json.loads(json_response)
token = json_response['token']
data = {
'token': token,
'folderName': 'my_test',
'f': 'json'
}
url = 'xyzx.com:6443/arcgis/admin/services/createFolder'
post = urlencode(data)
req = urllib2.Request(url, post)
response = urllib2.urlopen(req)
json_response = response.read()
json_response = json.loads(json_response) Maybe I needed to create a token first with my python 3 attempt...
... View more
01-13-2025
05:44 PM
|
0
|
0
|
378
|
POST
|
I am trying to create ArcGIS Server folders with the rest API. This is what I have tried: def create_folders(admin, password):
url = 'https://xyzx.com:6443/arcgis/admin/services/createFolder'
headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"}
payload = {'folderName': 'my_test'}
auth = (admin, password)
response = requests.post(url, headers=headers, json=payload, auth=auth)
print(response.json) The print statement is dumping out <bound method Response.json of <Response [200]>> and no folder is created. https://developers.arcgis.com/rest/enterprise-administration/server/createfolder/
... View more
01-13-2025
04:49 PM
|
0
|
1
|
405
|
POST
|
The user does have admin access. And I will look into the rest api side.
... View more
01-13-2025
04:15 PM
|
0
|
1
|
864
|
POST
|
Is it possible to create an arcgis server folder with the python API within ArcGIS 10.8.1? I have tried: gis_target = GIS(portal_url_target, portal_admin_user, portal_admin_password_target)
folder_name = "MyNewFolder"
server = gis_target.admin.servers.list()[0]
server.create_folder(folder_name) The server object does retrieve my federated AGS. But then the call to create the folder fails. AttributeError: 'Server' object has no attribute 'create_folder'
... View more
01-13-2025
02:49 PM
|
0
|
4
|
896
|
POST
|
We want move our Enterprise environment to a new servers. We want to move from 10.8.1 to 10.9.1. We are deployed on a single machine, e.g. Portal, ArcGIS Server, datastore are all installed on a single machine. I would like to edit the hosts.etc file on the target machine so I can run the import. My question is this: what is the public URL in this case and what exactly should the edit look like. Is the public URL the on configured in the portal web context? The web context is pointing to the portal web adaptor via the load balancer, e.g. https://maps.domain/portal_webadaptor. What about the server web adaptor? Do I need that as well (I would think so). Then what about the enterprise URLs that are from the machine not via the load balancer, e.g. https://machineanme.domain/webadaptor? Do I need to worry about that? I don't know maybe I just need one line in the hosts file -- IP and the load balancer URL before the web adaptors. So something like: 101.53.34.95 https://maps.domain/ Looking at some of the services json files they appear to point to https://machineanme.domain:6443/arcgis/rest/services and in other cases point to the web adaptor via the load balancer. The "url" element is pointing to the load balancer and the "privateUrl" is pointing to the machine/port url.
... View more
12-11-2024
02:19 PM
|
0
|
3
|
831
|
POST
|
Any idea if there is some publicly available high-quality elevation for the area of Garrote? I would also like a source for imagery. 9°35'11.7"N 79°34'35.9"W
... View more
12-05-2024
05:31 PM
|
0
|
0
|
363
|
POST
|
@MarceloMarques thanks for all the great feedback! I have a few follow up questions. 1. Okay, I like this. I think it is worth while moving over to this pattern from AGOL. I think it will save time on the GIS admin side and I think it will be a better experience for the end user. 2. "...you need to install the ArcGIS License Manager on the portal server or in another separate machine, I suggest to create a new VM for the LM." Why is this the recommendation? If both were on the same box and we restarted that box for work on portal it would also kill the license manager -- which is not cool. I guess it feels like a lot of resources to have it on it's own VM alone. Now we have a dev/test/prod environment for Portal/AGS does that mean I need a dev/test/prod license manager as well? I seems to me that we could get away with just one linked to the prod portal license file. But it might be nice to have a second one for testing. What do most folks choose to do? 4. "...you need to keep that ArcGIS License Manager for ArcMap users, you cannot use it for Portal Pro "Named User" licenses." Right, I understand that. My question is can I use the new ArcGIS License Manger for the named users and the concurrent ArcMap 108.1 licenses? In other words at the end of the day do I need one type of license manager for 10.8 and second type for ArcPro or can the ArcPro license manager do it all? 5. Got it. Thanks again for all the help.
... View more
10-08-2024
03:48 PM
|
0
|
1
|
2135
|
POST
|
I am building out new ArcGIS Enterprise 11.3 servers (portal, server, datastore). I see there is now an option to license ArcPro with the portal install. Right now we are doing this with ArcGIS Online. 1. What is the advantage of moving this function to portal? It seems like moving this to portal could simplify the sign in experience for the users as they could use their AD account that they use to log into portal for the ArcPro. Right now they have to use the AGOL account. 2. To get it set up I have to install the FlexNet server on my portal server? 3. The license creation process file asks for a port for the license server is there a recommended port for this? 4. We have a license manager setup on a non portal server at this time for ArcMap 10.8.1. We could move all this over to the new license manager on the portal box as well, right? We would just not be able to interact with it via portal for the desktop licenses like we would with ArcPro. 5. Does it mater when I install the FlexNet license manager on th 11.3 portal box? Do I have to install it before portal etc. or can it go after the portal has been setup. Thanks!
... View more
10-04-2024
05:39 PM
|
1
|
5
|
2250
|
POST
|
Sorry, I messed up. It published from a tile cache in a map service it is not an image service. The application calls the tiles from the service using the below format https://xyzx.com/server/rest/services/xyzx/xyzx/xyzx/tile/{0}/{2}/{1}/256/png8 where {0}, {2}, and {1} are replaced by the level, column, and row of a tile in the cache. So, will this url formant be the same at 11.3? Will the tile formant 256 png8 still be available?
... View more
08-26-2024
11:58 AM
|
0
|
2
|
1035
|
POST
|
We have an application that uses an image servers from our 10.8.1 AGS. We would like to upgrade to 11.3. So, we are wondering if the image service will still work in the application with 11.3 AGS. Are there any major changes to the way image services work at 11.3? Our image url: https://xyzx.com/server/rest/services/Imagery/xxxx_2021/ImageServer
... View more
08-21-2024
02:16 PM
|
0
|
5
|
1154
|
POST
|
I did try the ChangeDetector but it was a little bit unstable and slow with my data. https://docs.safe.com/fme/2021.2/html/FME_Desktop_Documentation/FME_Transformers/Transformers/changedetector.htm So, in the end I went with the CRC calculator. I did have to sacrifice updates on my main target table (I have a few derivative tables that do get updates basted on the output of other transformers). So, if there was any change in a row it just deletes it and then inserts it back.
... View more
08-19-2024
09:46 AM
|
0
|
0
|
915
|
Title | Kudos | Posted |
---|---|---|
1 | 10-04-2024 05:39 PM | |
1 | 07-30-2024 09:05 AM | |
1 | 07-08-2024 05:32 PM | |
1 | 03-20-2024 10:27 AM | |
6 | 03-13-2024 03:38 PM |
Online Status |
Offline
|
Date Last Visited |
3 weeks ago
|