- URL:
- https://<root>/portals/[portalID]/security/secureconfigs/create
- Methods:
POST- Version Introduced:
- 12.2
Example usage
The following is a sample POST request for the create operation:
POST /<context>/sharing/rest/portals/0123456789ABCDEF/security/secureconfigs/create HTTP/1.1
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: [ ]
name=G3DTiles Credentials&description=To be used for Google 3D Photorealistic Basemap&credentialType=AGOL_CREDENTIALS&usagePurpose=G3DTiles&configJson={"authenticationProperties": {"username":"userG3D","authenticationUrl":"https://www.arcgis.com/sharing/rest/generateToken"},"authenticationSecrets": {"password": "samplePassword"}}&token=<token>Description
The create operation creates a new set of configured ArcGIS Online administrative credentials that are stored for use in an ArcGIS Enterprise organization. At ArcGIS Enterprise 12.2, this operation only supports configuring credentials for use with the Google Photorealistic 3D basemap, which provides access to Google Maps Platform’s photorealistic 3D tiles as basemaps in ArcGIS. Prior to performing this operation, an ArcGIS Online organization must be set up to support the use of Google Photorealistic 3D basemap in an ArcGIS Enterprise organization. For more information, see the the Configure maps and scenes documentation. While this operation can be performed from the Portal Directory API, its recommended that these credentials are added to the organization from the portal site's organization settings page, under Map and scene.
Request parameters
| Parameter | Details |
|---|---|
(Required) | A user-specified name for the configuration. |
(Optional) | An optional user-specified description for the configuration. |
(Required) | The type of credentials being stored. At ArcGIS Enterprise 12.2, the only supported type is Values: |
(Required) | The organization feature the credentials are used for. At ArcGIS Enterprise 12.2, the only supported purpose is Values: |
(Required) | A JSON object that contains the authentication properties needed to access the ArcGIS Online account, including the account's username and password as well as a URL that points to the specified authentication method for the ArcGIS Online account. Syntax: Example: |