Signs out from the portal that you are currently signed in to. For those organizations that would like to use ArcGIS Online behind the firewall or in their own private cloud, there is a version that you can install and use on your own computer networks. It is called Portal for ArcGIS.
You can sign-in to an ArcGIS Online portal using the Sign In To Portal tool, or in ArcMap, click File > Sign In on the main menu.
SignOutFromPortal example 1 (Python window)
Signs out from ArcGIS Online.
import arcpy arcpy.SignOutFromPortal_server()
SignOutFromPortal example 1 (stand-alone script)
The following script demonstrates a publishing workflow to ArcGIS Online.
# Name: SignInToPortal_Example1.py # Description: Use SignInToPortal to sign-in to Portal for ArcGIS and use a # service definition draft to create a service definition and then upload and # publish that service definition. # Import system modules import arcpy from arcpy import env # Sign-in to ArcGIS Online arcpy.SignInToPortal_server("username","password", "") # Set environment settings env.workspace = "C:/data" # Set local variables in_service_definition_draft = "MyMapService.sddraft" out_service_definition = "MyMapService.sd" # Execute StageService arcpy.StageService_server(in_service_definition_draft, out_service_definition) # Set local variables in_sd_file = "MyMapService.sd" in_server = "My Hosted Services" # Execute UploadServiceDefinition arcpy.UploadServiceDefinition_server(in_sd_file, in_server) # Sign out from ArcGIS Online arcpy.SignOutFromPortal_server()
This tool does not use any geoprocessing environments.
- Basic: Yes
- Standard: Yes
- Advanced: Yes