Module Import alias alias alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad FunctionDef arguments args defaults body Assign NameStore NameLoad Assign NameStore Call NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad If NameLoad body Print Str NameLoad TryFinally body TryExcept body Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad BinOpAdd BinOpAdd Str Str Call NameLoad NameLoad Print Str Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str orelse Assign NameStore Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Str NameLoad NameLoad NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Str NameLoad NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad BinOpAdd BinOpAdd Str Str Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad BinOpAdd BinOpAdd Str Str Call NameLoad NameLoad Assign NameStore ListLoad Str Str Str Str Str Str Print Str Print Call AttributeLoad Str attr Str Str Print BinOpMult Str Num For NameStore NameLoad body Assign NameStore NameLoad If CompareIn NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad Str Print Call AttributeLoad Str attr NameLoad SubscriptLoad NameLoad Index NameLoad Print Str handlers ExceptHandler body Assign NameStore NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Assign NameStore BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Print Print Str Print BinOpAdd NameLoad Str finalbody Assign NameStore BinOpAdd BinOpAdd Str NameLoad Str If NameLoad body Print BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad orelse Print BinOpAdd BinOpAdd Str NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str If CompareLt Call NameLoad AttributeLoad NameLoad attr Num body Print BinOpAdd BinOpAdd Str NameLoad Str Print Str Print Str Print Str Print Str Print Str Print Str Print BinOpAdd BinOpAdd Str NameLoad Str Print Str Print Str Print Str Print Str Print Str Print Str Print Str Print Str Print Str Print Str Print Str Return NameLoad orelse Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareEq Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad If CompareIn Call AttributeLoad Call AttributeLoad NameLoad attr attr ListLoad Str Str Str body Assign NameStore NameLoad orelse Assign NameStore NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A sys os traceback AGSRestFunctions getServicesDirectory AGSRestFunctions editServicesDirectory N/A scriptName N/A N/A N/A os path basename N/A N/A sys argv N/A 0 N/A exitSuccessCode 0 N/A exitErrCode 1 N/A debug False main N/A N/A N/A N/A N/A totalSuccess True N/A results N/A check_args N/A N/A results N/A N/A N/A N/A sys exit exitErrCode N/A N/A server_fqdn port user password use_ssl arcgis_com_map_text results N/A debug N/A N/A Parameter values:  results N/A N/A N/A N/A N/A N/A success s_dir_props N/A getServicesDirectory server_fqdn port user password use_ssl N/A N/A success N/A N/A N/A Exception N/A N/A ERROR: Encountered issue getting current  services directory properties: 
 N/A str s_dir_props N/A 
- Setting services directory properties...
 N/A arcgis_com_map N/A N/A https://{}/arcgis/home/webmap/viewer.html format server_fqdn N/A jsapi_arcgis N/A N/A https://{}/arcgis/jsapi/jsapi/ format server_fqdn N/A jsapi_arcgis_css N/A N/A https://{}/arcgis/jsapi/jsapi/dijit/themes/tundra/tundra.css format server_fqdn N/A jsapi_arcgis_css2 N/A N/A https://{}/arcgis/jsapi/jsapi/esri/css/esri.css format server_fqdn N/A N/A N/A s_dir_props get enabled N/A N/A services_dir_enabled N/A N/A s_dir_props get enabled N/A N/A N/A N/A s_dir_props get servicesDirEnabled N/A N/A services_dir_enabled N/A N/A s_dir_props get servicesDirEnabled N/A N/A services_dir_enabled true N/A N/A success response N/A editServicesDirectory server_fqdn port user password N/A s_dir_props N/A allowedOrigins arcgis_com_map arcgis_com_map_text jsapi_arcgis jsapi_arcgis_css jsapi_arcgis_css2 N/A s_dir_props N/A jsapi.arcgis.sdk services_dir_enabled use_ssl N/A N/A success N/A N/A N/A Exception N/A N/A ERROR: Encountered issue setting services  directory properties: 
 N/A str response N/A N/A success s_dir_props N/A getServicesDirectory server_fqdn port user password use_ssl N/A N/A success N/A N/A N/A Exception N/A N/A ERROR: Encountered issue getting updated  services directory properties: 
 N/A str s_dir_props N/A props_not_altered N/A consoleLogging logLevel enabled servicesDirEnabled jsapi.arcgis.sdk allowedOrigins N/A - Services directory property values after update...
 N/A N/A N/A {:<30}{:<90} format Property Value N/A N/A - 100 N/A key s_dir_props N/A N/A keyName key N/A N/A keyName props_not_altered N/A N/A keyName N/A keyName * N/A N/A N/A {:<30}{:<90} format keyName N/A s_dir_props N/A key N/A 
* These properties are not altered. N/A N/A N/A N/A totalSuccess False N/A tb N/A N/A N/A sys exc_info N/A 2 N/A tbinfo N/A N/A N/A traceback format_tb tb N/A 0 N/A pymsg N/A N/A N/A PYTHON ERRORS:
Traceback info:
 tbinfo 
Error Info:
 N/A str N/A N/A N/A sys exc_info N/A 1 N/A N/A ***** ERROR ENCOUNTERED ***** N/A N/A pymsg N/A N/A exe_str N/A N/A 
Execution of  scriptName  completed  N/A totalSuccess N/A N/A N/A exe_str successfully. N/A N/A N/A sys exit exitSuccessCode N/A N/A N/A N/A ERROR:  exe_str unsuccessfully. N/A N/A N/A sys exit exitErrCode N/A check_args N/A N/A N/A N/A N/A arcgis_com_map_text Portal Map Viewer N/A N/A N/A len N/A sys argv 6 N/A N/A N/A N/A scriptName  <AGS_FQDN> <Port> <AdminUser> <AdminPassword> <Use_SSL: Yes|No> {ArcGIS_Map_Text} N/A 
Where: N/A 	<AGS_FQDN> (required parameter): the fully qualified domain name of the ArcGIS Server. N/A 
	<Port> (required parameter): the port number of the ArcGIS Server (specify # if no port). N/A 
	<AdminUser> (required parameter): ArcGIS Server site administrator. N/A 
	<AdminPassword> (required parameter): Password for ArcGIS Server site administrator. N/A 
	<Use_SSL: Yes|No> (required) Flag indicating if ArcGIS Server security configuration requires HTTPS. N/A N/A N/A 
	{ArcGIS_Map_Text} (optional) value for arcgis.com.map.text property; if not specified, value set to " arcgis_com_map_text ". N/A 
Purpose: N/A 	Sets the paths of the ArcGIS API for JavaScript to use the N/A 	the locally hosted JavaScript API and map viewer installed N/A 	during the installation of Portal for ArcGIS. N/A 
	Note(s): N/A 	- The properties set by this script can be examined using N/A 	the following ArcGIS Server Admin REST API URL: N/A 	https://server.domain/arcgis/admin/system/handlers/rest/servicesdirectory N/A 
	- Script does not validate property values. N/A 
	- Script is hardcoded to set the protocol on the JavaScript API URLs N/A 	to https. N/A None N/A N/A server_fqdn N/A N/A N/A N/A sys argv N/A 1 lower N/A port N/A N/A sys argv N/A 2 N/A adminuser N/A N/A sys argv N/A 3 N/A password N/A N/A sys argv N/A 4 N/A use_ssl N/A N/A sys argv N/A 5 N/A N/A N/A len N/A sys argv 7 N/A N/A arcgis_com_map_text N/A N/A sys argv N/A 6 N/A N/A N/A N/A port strip # N/A N/A port None N/A N/A N/A N/A N/A N/A use_ssl strip lower N/A yes ye y N/A N/A use_ssl True N/A N/A use_ssl False N/A N/A server_fqdn port adminuser password use_ssl arcgis_com_map_text N/A N/A N/A __name__ __main__ N/A N/A N/A main