In ArcGIS, a self
request to the portal allows you to access organizational settings through the ArcGIS Portal Directory. This allows administrators to learn various capabilities of the portal. To make a self-call using the portal service, you need to send a request to the ArcGIS REST API endpoint.
Example
This example shows how to execute a self
request using the portal service.
Request
POST arcgis.com/sharing/rest/portals/self HTTP/1.1
Content-Type: application/x-www-form-urlencoded
&f=json
&token=<ACCESS_TOKEN>
Response
{
"2DStylesGroupQuery": "title:\"Esri 2D Styles\" AND owner:esri_en",
"3DBasemapGalleryGroupQuery": "title:\"ArcGIS Online 3D Basemaps\" AND owner:esri_en",
"access": "public",
"allSSL": true,
"allowedRedirectUris": [],
"analysisLayersGroupQuery": "title:\"Living Atlas Analysis Layers\" AND owner:esri",
"authorizedCrossOriginDomains": [],
"availableCredits": 5.0018196E7,
Example portal settings
Listed are some of the important portal settings and description.
Credits
Credits are the currency used for specific transactions and types of storage in your organization. They are consumed for activities like storing features, performing analytics, and using premium content. Most actions do not require credits, such as using basemaps, exporting data, or performing basic searches. Credits do not apply to ArcGIS Enterprise or ArcGIS Location Platform.
"analysisLayersGroupQuery": "title:\"Living Atlas Analysis Layers\" AND owner:esri",
"authorizedCrossOriginDomains": [],
"availableCredits": 5.0018196E7,
"basemapGalleryGroupQuery": "title:\"United States Basemaps\" AND owner:Esri_cy_US",
"canListApps": false,
"canListConsultingServices": false,
Basemaps
Basemaps serve as foundational maps that provide data layers and visualizing geospatial information. They are authoritative maps curated by Esri, updated regularly with new data, and can be customized or created to suit specific mapping needs.
Property | Description |
---|---|
base | An array of basemap layers available in the portal. |
"defaultBasemap": {
"baseMapLayers": [
{
"url": "https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer",
"layerType": "ArcGISTiledMapServiceLayer",
"resourceInfo": {
"currentVersion": 10.3,
"mapName": "Layers",
"supportsDynamicLayers": false,
"layers": [
{
"id": 0,
"name": "Citations",
"parentLayerId": -1,
"defaultVisibility": false,
"subLayerIds": null,
"minScale": 0,
"maxScale": 0
}
],
Layers
A layer is a collection of geographic data used to create maps, scenes, and conduct geospatial analysis. It is used to visualize spatial information and can include various types of data such as features, imagery, and elevation.
Property | Description |
---|---|
id | The layer id, as a numeric value. |
name | The name of the layer. |
parent | If working with nested layers, this is the numeric value indicating the layer id of the next layer (parent) directly above the current referenced layer. |
default | Default visibility of the layers in the map service. |
sub | Integer value indicating the layer id. |
min | A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator. |
max | A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator. |
url | A URL to a service that should be used for all queries against the layer. |