domainExists

Function

Check if a domain entry exists. Different from lookupDomain in that this will return true/false, where as lookupDomain will return the domain entry or throw. However, lookupDomain can work with ArcGIS Enterprise. Will throw if used in Portal.

  • domainExists(hostname: string, hubRequestOptions: IHubRequestOptions) : Promise<boolean>

Parameters

Parameter Type Default Notes
hostname Required string

Domain entry to check for

hubRequestOptions Required IHubRequestOptions

Returns

Promise<boolean>

Function defined in packages/common/src/sites/domains/domain-exists.ts:15