getPortalSettings
FunctiongetPortalSettings(id?: string, requestOptions?: IRequestOptions): Promise<IPortalSettings>
Fetch the settings for the current portal by id. If no id is passed, portals/self/settings will be called
import { getPortalSettings } from "@esri/arcgis-rest-portal";
getPortalSettings()
getPortalSettings("fe8")
getPortalSettings(null, { portal: "https://custom.maps.arcgis.com/sharing/rest/" })
Parameters
Parameter | Type | Notes |
---|---|---|
id | string | |
request | IRequestOptions |
Returns
Promise<IPortalSettings>