Generate Token

URL:
https://<notebookserveradmin>/generateToken
Methods:
GET
Version Introduced:
10.7

Description

This operation generates an ArcGIS token that can be used by clients when working with the ArcGIS Notebook Server Administrator API.

Request parameters

ParameterDetails

username

The case-sensitive username of the user who wants to get a token.

Example

1
username=testAdmin89

password

The password of the user who wants to get a token.

Example

1
password=test1234

client

The client identification type for which the token is to be generated. Users can specify whether the token will be generated for a client application's base URL, a user-specified IP address, or the IP address that is making the request.

Values: referer | ip | requestip

referer

The base URL of the web app that will invoke the request to access a secured resource. This parameter must be specified if the value of the client parameter is referer .

Example

1
referer=https://myserver/mywebapp

ip

The IP address of the machine that will invoke the request to access a secured resource. This parameter must be specified if the value of the client parameter is ip .

Example

1
ip=###.###.###.###

expiration

The token expiration time in minutes. The default is 60 minutes (one hour). The maximum value of the expiration time is controlled by the server. Requests for tokens larger than this time will return a token for the maximum allowed expiration time. Applications are responsible for renewing expired tokens; expired tokens will be rejected by the server on subsequent requests that use the token.

Example

1
expiration=60

f

The response format. The default response format is html .

Values: html | json | pjson

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close