Create Site

Description

The create site operation initializes and configures Portal for ArcGIS for use. It must be the first operation invoked after installation. Creating a new site involves:

This operation is time consuming, as the database is initialized and populated with default templates and content. If the database directory is not empty, this operation attempts to migrate the database to the current version while keeping its data intact. At the end of this operation, the web server that hosts the API is restarted.

Request Parameters

Parameter

Details

username

The initial administrator account name

password

The password for the initial administrator account

fullname

The full name for the initial administrator account

email

The account email address

description

An optional description for the account

securityQuestionIdx

The index of the secret question to retrieve a forgotten password

securityQuestionAns

The answer to the secret question

contentStore

The JSON string including the path to the location of the site's content.

f

The formatting parameter. Default is html.

Values: json | html

Example Usage

https://<portaladmin>/createNewSite
username=admin
password=admin.secret
fullname=Administrator
email=admin@email.com
description=The initial admin account
securityQuestionIdx=1
securityQuestionAns=Mumbai
contentStore={
"type": "fileStore",
"provider": "FileSystem",
"connectionString": "C:/arcgisportal/content"
}

JSON Response Example

{
    "status": "success",
    "recheckAfterSecs": 10
}

3/3/2017