Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/support
esri/workers
Class: ServerInfo

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

NameTypeSummary
adminTokenServiceUrlStringThe token service URL used to generate tokens for ArcGIS Server Admin resources.
currentVersionNumberVersion of the ArcGIS Server REST API deployed on this server.
serverStringThe server URL.
shortLivedTokenValidityNumberValidity of short-lived token in minutes.
tokenServiceUrlStringThe token service URL used to generate tokens for the secured resources on the server.

Methods

NameReturn typeSummary
toJson()ObjectReturn the properties of this object in JSON.
Property Details

<String> adminTokenServiceUrl

The token service URL used to generate tokens for ArcGIS Server Admin resources. (Added at v3.0)

<Number> currentVersion

Version of the ArcGIS Server REST API deployed on this server. For example 10.0, 10.1 (Added at v3.0)

<String> server

The server URL. Use the following format:
scheme://host[:port]

<Number> shortLivedTokenValidity

Validity of short-lived token in minutes. (Added at v3.0)

<String> tokenServiceUrl

The token service URL used to generate tokens for the secured resources on the server.
Method Details

toJson()

Return the properties of this object in JSON. (Added at v2.8)
Return type: Object
Show Modal