require(["esri/ServerInfo"], function(ServerInfo) { /* code goes here */ });
Description
(Added at v2.5)
This class contains information about an ArcGIS Server and its token endpoint.
Samples
Search for
samples that use this class.
Properties
Methods
Property Details
The token service URL used to generate tokens for ArcGIS Server Admin resources. (Added at v3.0)
Version of the ArcGIS Server or Portal deployed on the server. Note: This value will be `8.4` for ArcGIS Online. (Added at v3.0)
Known values: true | false
Known values: true | false
The server URL. This value includes the path to the web adapter for Servers (e.g. https://sampleserver6.arcgisonline.com/arcgis) and Portals (e.g. https://portal.esri.com/gis).
Validity of short-lived token in minutes. (Added at v3.0)
The token service URL used to generate tokens for the secured resources on the server.
Indicates whether the server is configured to work with web tier authentication. (Added at v3.40)
Default value: null
Method Details
Return the properties of this object in JSON. (Added at v2.8)