Portal

constructor(url: String, connection: Portal.Connection = Connection.Anonymous)

Creates a portal object. Use this constructor to create a portal from an URL.

If the portal permits anonymous access and this is desired, then set Portal.connection to Connection.Anonymous. If the desired portal connection will be made through an identity, then set the Portal.connection to Connection.Authenticated, which will first issue a authentication challenge.

The supported URL formats are:

  • The URL of the portal (Example: http://www.arcgis.com)

  • The URL of the portal REST endpoint (Example: http://www.arcgis.com/sharing/rest)

  • The URL of the deprecated portal REST endpoint (Example: http://www.arcgis.com/sharing)

Since

200.0.0

Parameters

url

the URL of the Portal

connection

the connection type used while loading the portal